<?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 Re: Installing MQX on custom board in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Installing-MQX-on-custom-board/m-p/180274#M2661</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you the response. I have tried what you suggested and now the when my debug session starts the pointer stops in the vectors.c file at the following code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define DEFAULT_VECTOR&amp;nbsp; _int_kernel_isr&lt;/P&gt;&lt;P&gt;#else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; static void __boot_exception(void) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(1); // pointer starts off here &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I press the debug button again, it goes into the cortex_boot.s file at the following code ( in the _boot function)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASM_LABEL(__boot)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; disable interrupts and clear pending flags&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ldr r0, =0xe000e180&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; NVIC_ICER0 - Interrupt Clear-Enable Registers&amp;nbsp;&amp;nbsp; // pointer moves here &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ldr r1, =0xe000e280&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; NVIC_ICPR0 - Interrupt Clear-Pending Registers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ldr r2, =0xffffffff&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mov r3, #8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I pres the debug button again it switches back to the vectors.c file at the code I pasted above.&amp;nbsp; Basically, now it just skips between these files at the same code location. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you provide any ideas as to what I might be doing wrong? &lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 24 Nov 2012 07:56:01 GMT</pubDate>
    <dc:creator>syedr</dc:creator>
    <dc:date>2012-11-24T07:56:01Z</dc:date>
    <item>
      <title>Installing MQX on custom board</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Installing-MQX-on-custom-board/m-p/180271#M2658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently working with the TWR-K60N512 dev kit ( with a PK60N512VMD100 chip) and MQX 3.8 and have a custom board with the MK60DN512LVQ10 chip. My code works and flashes without any problems on the dev kit.But whenever I try to debug the code on my custom board with the MQX I run into problems. First off my code is able to flash on the custom board, but the pointer immediately jumps to the dispatch.s file in the _int_kernel_isr function, it stops right at the "cpsid.n i" instruction. When I press the debug button again the pointer moves cortext_boot.s file at this assembly instruction:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ldr r0, =0xe000e180&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; NVIC_ICER0 - Interrupt Clear-Enable Registers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I keep pressing the resume button on my debugger the pointer keeps moving back and forth between these two files. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried changing the MQX settings in my user_config.h file for MQX_ROM_VECTORS from true to false. When I have it set to true the above problem is encountered and when I set it to false the pointer starts off in the vectors.c file at the following while loop:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; static void __boot_exception(void) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also at random times during debug, the code starts off at the mqx_main.c file but ends up in the cortex_boot.s file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an idea that the problem is related to some interrupt but cannot point out how to debug this problem since I can't seem to bypass this issue during debugging. Also on a side-note&amp;nbsp; I have compiled non MQX based code and flashed it to my custom board, and that worked without any problems and I was able to debug and step through my code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help on this would be greatly appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2012 04:20:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Installing-MQX-on-custom-board/m-p/180271#M2658</guid>
      <dc:creator>syedr</dc:creator>
      <dc:date>2012-11-19T04:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Installing MQX on custom board</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Installing-MQX-on-custom-board/m-p/180272#M2659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have had the same problem to change MQX_ROM_VECTORS from true to false. In my case, I solved the problem disabling TAD option in: Run --&amp;gt; Debug Configurations --&amp;gt; tab "Debugger" --&amp;gt; OS Awareness --&amp;gt; Option: "None".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure but I think that the origin of problem is an insufficient RAM memory using TCP/IP Stack (RTCS).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I've been helpful for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2012 11:30:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Installing-MQX-on-custom-board/m-p/180272#M2659</guid>
      <dc:creator>Angelillo</dc:creator>
      <dc:date>2012-11-23T11:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Installing MQX on custom board</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Installing-MQX-on-custom-board/m-p/180273#M2660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more thing: MQX_SPARSE_ISR_TABLE = TRUE for optimizing RAM memory with interrupts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2012 11:37:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Installing-MQX-on-custom-board/m-p/180273#M2660</guid>
      <dc:creator>Angelillo</dc:creator>
      <dc:date>2012-11-23T11:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Installing MQX on custom board</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Installing-MQX-on-custom-board/m-p/180274#M2661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you the response. I have tried what you suggested and now the when my debug session starts the pointer stops in the vectors.c file at the following code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define DEFAULT_VECTOR&amp;nbsp; _int_kernel_isr&lt;/P&gt;&lt;P&gt;#else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; static void __boot_exception(void) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(1); // pointer starts off here &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I press the debug button again, it goes into the cortex_boot.s file at the following code ( in the _boot function)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASM_LABEL(__boot)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; disable interrupts and clear pending flags&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ldr r0, =0xe000e180&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; NVIC_ICER0 - Interrupt Clear-Enable Registers&amp;nbsp;&amp;nbsp; // pointer moves here &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ldr r1, =0xe000e280&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; NVIC_ICPR0 - Interrupt Clear-Pending Registers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ldr r2, =0xffffffff&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mov r3, #8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I pres the debug button again it switches back to the vectors.c file at the code I pasted above.&amp;nbsp; Basically, now it just skips between these files at the same code location. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you provide any ideas as to what I might be doing wrong? &lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Nov 2012 07:56:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Installing-MQX-on-custom-board/m-p/180274#M2661</guid>
      <dc:creator>syedr</dc:creator>
      <dc:date>2012-11-24T07:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Installing MQX on custom board</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Installing-MQX-on-custom-board/m-p/180275#M2662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've had a similar problem. I think that your ISR vector installation hasn't succeeded and now the CPU is running the Default_ISR vector (CPU always execute _int_default_isr for all unhandled interrupts). In my case, I've had a problem with my included paths of my project when I'm using my custom BSP. I recommend you that you use the default BSP. When your ISR is running well you will be able to change to custom BSP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ángel G.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 07:28:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Installing-MQX-on-custom-board/m-p/180275#M2662</guid>
      <dc:creator>Angelillo</dc:creator>
      <dc:date>2012-12-05T07:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Installing MQX on custom board</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Installing-MQX-on-custom-board/m-p/180276#M2663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you clone the BSP, the "user_config.h" file is cloned exactly the same as the original. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;So here is my workaround, try to disable any options in "user_config.h" which are not intended to be used in your custom board.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't dug deeper enough to find the root cause of this problem but it works for me for now. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;:smileyplain:&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 10:22:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Installing-MQX-on-custom-board/m-p/180276#M2663</guid>
      <dc:creator>chiasyan</dc:creator>
      <dc:date>2013-04-16T10:22:20Z</dc:date>
    </item>
  </channel>
</rss>

