<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic MK10DN128VFT5 fires ISR7 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10DN128VFT5-fires-ISR7/m-p/1189719#M58950</link>
    <description>&lt;LI-CODE lang="c"&gt;#define ISR(x) \
		static void ISR_ ## x () \
		{ \
		__asm volatile ("bkpt #0\n") ; \
		}

ISR(7)
ISR(8)
ISR(9)
ISR(10)
ISR(11)
ISR(13)
ISR(14)
ISR(15)

void (* const g_pfnVectors[])(void) =
{
	// Core Level - CM3
	(void *)&amp;amp;_vStackTop -1,					// The initial stack pointer
	ResetISR,								// The reset handler
	NMI_Handler,							// The NMI handler
	HardFault_Handler,						// The hard fault handler
	MemManage_Handler,						// The MPU fault handler
	BusFault_Handler,						// The bus fault handler
	UsageFault_Handler,						// The usage fault handler
	ISR_7,										// Reserved
	ISR_8,										// Reserved
	ISR_9,										// Reserved
	ISR_10,										// Reserved
//	vPortSVCHandler,                        // SVCall handler
	ISR_11,
	DebugMon_Handler,						// Debug monitor handler
	ISR_13,										// Reserved
//	xPortPendSVHandler,                     // The PendSV handler
	ISR_14,
//	xPortSysTickHandler,                    // The SysTick handler
	ISR_15,
//16
.....&lt;/LI-CODE&gt;&lt;P&gt;I have such code and after second pass trough crt0 ISR_7 is fired. Can I safely ignore this interrupt or it shows some error in code which I should address? Reference manual of mcu says that this interrupt is reserved.&lt;/P&gt;&lt;P&gt;CRT0 does:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;disables interrupts&lt;/LI&gt;&lt;LI&gt;disables watchdog&lt;/LI&gt;&lt;LI&gt;setup stack pointer&lt;/LI&gt;&lt;LI&gt;zero bss&lt;/LI&gt;&lt;LI&gt;fill stack with canar value&lt;/LI&gt;&lt;LI&gt;copy data to ram&lt;/LI&gt;&lt;LI&gt;copy isr table to ram&lt;/LI&gt;&lt;LI&gt;set pointer to isr table so they run from ram&lt;/LI&gt;&lt;LI&gt;enables fpu in CPACR&lt;/LI&gt;&lt;LI&gt;enables PORT clocks&lt;/LI&gt;&lt;LI&gt;setups clock from external RTC clock&lt;/LI&gt;&lt;LI&gt;NVIC_SetPriorityGrouping(0)&lt;/LI&gt;&lt;LI&gt;goes to main function which enables interrupts&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Thu, 26 Nov 2020 12:03:38 GMT</pubDate>
    <dc:creator>korneliuszosmen</dc:creator>
    <dc:date>2020-11-26T12:03:38Z</dc:date>
    <item>
      <title>MK10DN128VFT5 fires ISR7</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10DN128VFT5-fires-ISR7/m-p/1189719#M58950</link>
      <description>&lt;LI-CODE lang="c"&gt;#define ISR(x) \
		static void ISR_ ## x () \
		{ \
		__asm volatile ("bkpt #0\n") ; \
		}

ISR(7)
ISR(8)
ISR(9)
ISR(10)
ISR(11)
ISR(13)
ISR(14)
ISR(15)

void (* const g_pfnVectors[])(void) =
{
	// Core Level - CM3
	(void *)&amp;amp;_vStackTop -1,					// The initial stack pointer
	ResetISR,								// The reset handler
	NMI_Handler,							// The NMI handler
	HardFault_Handler,						// The hard fault handler
	MemManage_Handler,						// The MPU fault handler
	BusFault_Handler,						// The bus fault handler
	UsageFault_Handler,						// The usage fault handler
	ISR_7,										// Reserved
	ISR_8,										// Reserved
	ISR_9,										// Reserved
	ISR_10,										// Reserved
//	vPortSVCHandler,                        // SVCall handler
	ISR_11,
	DebugMon_Handler,						// Debug monitor handler
	ISR_13,										// Reserved
//	xPortPendSVHandler,                     // The PendSV handler
	ISR_14,
//	xPortSysTickHandler,                    // The SysTick handler
	ISR_15,
//16
.....&lt;/LI-CODE&gt;&lt;P&gt;I have such code and after second pass trough crt0 ISR_7 is fired. Can I safely ignore this interrupt or it shows some error in code which I should address? Reference manual of mcu says that this interrupt is reserved.&lt;/P&gt;&lt;P&gt;CRT0 does:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;disables interrupts&lt;/LI&gt;&lt;LI&gt;disables watchdog&lt;/LI&gt;&lt;LI&gt;setup stack pointer&lt;/LI&gt;&lt;LI&gt;zero bss&lt;/LI&gt;&lt;LI&gt;fill stack with canar value&lt;/LI&gt;&lt;LI&gt;copy data to ram&lt;/LI&gt;&lt;LI&gt;copy isr table to ram&lt;/LI&gt;&lt;LI&gt;set pointer to isr table so they run from ram&lt;/LI&gt;&lt;LI&gt;enables fpu in CPACR&lt;/LI&gt;&lt;LI&gt;enables PORT clocks&lt;/LI&gt;&lt;LI&gt;setups clock from external RTC clock&lt;/LI&gt;&lt;LI&gt;NVIC_SetPriorityGrouping(0)&lt;/LI&gt;&lt;LI&gt;goes to main function which enables interrupts&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Thu, 26 Nov 2020 12:03:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10DN128VFT5-fires-ISR7/m-p/1189719#M58950</guid>
      <dc:creator>korneliuszosmen</dc:creator>
      <dc:date>2020-11-26T12:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: MK10DN128VFT5 fires ISR7</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10DN128VFT5-fires-ISR7/m-p/1189912#M58954</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have never heard of a reserved interrupt firing and don't think that there is any actual interrupt behind it.&lt;/P&gt;&lt;P&gt;If you are hitting this code it may be that your code is running into it (from another fault) so check the call-stack to see whether it is really arriving there from an interrupt and try stepping back out of the code/interrupt to see where it came from.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mark&lt;BR /&gt;&lt;EM&gt;[uTasker project developer for Kinetis and i.MX RT]&lt;/EM&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Contact me by personal message or on the uTasker web site to discuss professional training, solutions to problems or product development requirements&lt;BR /&gt;&lt;BR /&gt;For professionals searching for faster, problem free Kinetis and i.MX RT 10xx developments the uTasker project holds the key&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 23:35:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10DN128VFT5-fires-ISR7/m-p/1189912#M58954</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2020-11-26T23:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: MK10DN128VFT5 fires ISR7</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10DN128VFT5-fires-ISR7/m-p/1190183#M58955</link>
      <description>&lt;P&gt;Backtrace:&lt;/P&gt;&lt;P&gt;(gdb) bt&lt;BR /&gt;#0 ISR_7 () at /&amp;lt;redacted&amp;gt;/crt0.c:291&lt;BR /&gt;#1 &amp;lt;signal handler called&amp;gt;&lt;BR /&gt;#2 main () at /&amp;lt;redacted&amp;gt;/main.cpp:71&lt;/P&gt;&lt;P&gt;main from line 65:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;	asm("CPSIE if");

	//*(uint8_t *)0xFFFFFFFF = (1&amp;lt;&amp;lt;1);

	uint32_t zegar=3000000ul;
	volatile uint32_t i;
	for(i=0;i&amp;lt;zegar/4;i++);&lt;/LI-CODE&gt;&lt;P&gt;Interrupt fires in busy loop&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 08:40:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10DN128VFT5-fires-ISR7/m-p/1190183#M58955</guid>
      <dc:creator>korneliuszosmen</dc:creator>
      <dc:date>2020-11-27T08:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: MK10DN128VFT5 fires ISR7</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10DN128VFT5-fires-ISR7/m-p/1191045#M58964</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/21139"&gt;@korneliuszosmen&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Usually, for the reserved interrupts, in the&amp;nbsp;g_pfnVectors array is not define:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Alexis_A_0-1606755545770.png" style="width: 551px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/131359i48196D1C6D5E9B34/image-dimensions/551x261?v=v2" width="551" height="261" role="button" title="Alexis_A_0-1606755545770.png" alt="Alexis_A_0-1606755545770.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Alexis Andalon&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 17:02:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10DN128VFT5-fires-ISR7/m-p/1191045#M58964</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-11-30T17:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: MK10DN128VFT5 fires ISR7</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10DN128VFT5-fires-ISR7/m-p/1191336#M58974</link>
      <description>&lt;P&gt;When I had ISR_7 not definied, I was getting HardFaults&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 06:49:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10DN128VFT5-fires-ISR7/m-p/1191336#M58974</guid>
      <dc:creator>korneliuszosmen</dc:creator>
      <dc:date>2020-12-01T06:49:04Z</dc:date>
    </item>
  </channel>
</rss>

