<?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: Debug Fails When Application is Offset in Flash in MCUXpresso IDE</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/Debug-Fails-When-Application-is-Offset-in-Flash/m-p/1240965#M6773</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/21218"&gt;@MarcoGiammarini&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;you can modify the automatic linker script with using Freemarker scripts. See for example I do this with for a bootloader: &lt;A href="https://mcuoneclipse.com/2019/10/06/linking-bootloader-applications-with-eclipse-and-freemarker-scripts/" target="_blank" rel="noopener"&gt;https://mcuoneclipse.com/2019/10/06/linking-bootloader-applications-with-eclipse-and-freemarker-scripts/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Another usage is here: &lt;A href="https://mcuoneclipse.com/2017/08/29/tutorial-porting-blenrf-kinetis-design-studio-project-to-mcuxpresso-ide/" target="_blank"&gt;https://mcuoneclipse.com/2017/08/29/tutorial-porting-blenrf-kinetis-design-studio-project-to-mcuxpresso-ide/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The folder needs to be named 'linkscripts' and then you can place your 'overrrides' into it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
    <pubDate>Fri, 05 Mar 2021 11:55:57 GMT</pubDate>
    <dc:creator>ErichStyger</dc:creator>
    <dc:date>2021-03-05T11:55:57Z</dc:date>
    <item>
      <title>Debug Fails When Application is Offset in Flash</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Debug-Fails-When-Application-is-Offset-in-Flash/m-p/877590#M3722</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 MCUXpresso 10.1.0 and an LPC Link 2 debug adaptor connected to my application hardware which is based upon an LPC1766 microcontroller. The debug connection is SWD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My main application is located at an 0x3000 offset in flash in order to leave room for a boot application at 0x0000. This seems to cause a problem for MCUXpresso!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to migrate from an existing IAR Embedded Workbench tool that has absolutely no problem loading, running and debugging my main application at the offset. However MCUXpresso simply refuses to do so automatically. The failure is normally 'Wire ACK fault in DAP access' and at the same time it manages to find its way to the Hardware Fault vector routine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I change my code and memory map in order to run the application from a 0 offset in flash instead then the problem does not arise. So there is obviously nothing wrong with the probe or my hardware or my code. But I'd rather not fiddle around like this, changing everything, depending upon whether I'm building for debug or release!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because running from offset 0 seems to work, I expected that if I first wrote my boot application to flash (i.e. at offset 0) then, when I requested a main debug, the boot would run and route to my main application as its designed to do. Unfortunately not - same failure which I've come to suspect is when the debug has no source to match what is running. So I tried adding my boot application source/symbols to the main debug which resulted in some success in that the 'Wire Ack fault' is eliminated but still the hard fault.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An interesting work around I've found is to simply copy the vector table from my compiled main application binary and write it to flash at 0 offset. This seems to be enough to get me to my main application 'main' without any fault. Again I don't really want to have to do this every time I compile and debug! However it does support the feeling that MCUXpresso is not itself coping with finding an offset application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help please? Am I missing something, doing something wrong? Or can MCUXpresso simply not do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2019 15:28:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Debug-Fails-When-Application-is-Offset-in-Flash/m-p/877590#M3722</guid>
      <dc:creator>billherring</dc:creator>
      <dc:date>2019-01-16T15:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Debug Fails When Application is Offset in Flash</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Debug-Fails-When-Application-is-Offset-in-Flash/m-p/877591#M3723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="334132" data-username="billherring" href="https://community.nxp.com/people/billherring"&gt;Bill Herring&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;It seems the MCUXpresso debug probe doesn't include this function about directly jump to&lt;/P&gt;&lt;P&gt;the offset address (eg. 0x3000) .&lt;/P&gt;&lt;P&gt;The reset address is 0x0000, while in your case there is no data at this memory, so debug crash.&lt;/P&gt;&lt;P&gt;If want to debug project directly from 0x3000, you can add some jump code at 0x00 address,&lt;/P&gt;&lt;P&gt;make SP = 0x3000, PC = 0x3004 .&lt;/P&gt;&lt;P&gt;For example add the below code in to your project (just a suggestion, maybe more complex than change start address to 0x00)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//*****************************************************************************&lt;/P&gt;&lt;P&gt;load&amp;nbsp; these code in 0x00 address:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;__attribute__ ((used, section(".isr_vector_test")))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;void (* const g_pfnVectors_alice[])(void) = &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;_vStackTop,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;reset_alice,&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;__attribute__ ((section(".after_vectors_test")))&lt;BR /&gt;reset_alice()&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;jump_test(*((unsigned long*)0x3000), *((unsigned long*)(0x3000+4)));&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;__attribute__ ((section(".after_vectors_test_2")))&lt;BR /&gt;void jump_test(long int userSP, long int userStartup)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;// set up stack pointer&lt;BR /&gt;&amp;nbsp; __asm("msr msp, r0");&lt;BR /&gt;&amp;nbsp; __asm("msr psp, r0");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; // Jump to PC (r1)&lt;BR /&gt;&amp;nbsp; __asm("mov pc, r1");&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;in linker file :&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;nbsp;/* Define each memory region */&lt;BR /&gt; Flash_00 (rx) : ORIGIN = 0x0, LENGTH = 0x3000 &lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; .text_Flash2 : ALIGN(8)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FILL(0xff)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; KEEP(*(.isr_vector_test))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; KEEP(*(.after_vectors_test))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; KEEP(*(.after_vectors_test_2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &amp;gt; Flash_00&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2019 16:07:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Debug-Fails-When-Application-is-Offset-in-Flash/m-p/877591#M3723</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2019-01-21T16:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Debug Fails When Application is Offset in Flash</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Debug-Fails-When-Application-is-Offset-in-Flash/m-p/877592#M3724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice_Yang,&lt;/P&gt;&lt;P&gt;Thank you for your suggestion which I agree should work. I do already have very similar code to yours that I've tried writing to flash 0 but I still get trapped by the hard fault interrupt handler when I try to debug the main application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've decided I need to make progress with my development and so for now I've created a 'Debug' build that locates my main application at flash 0 and this obviously allows me to debug it without fault. I then have a separate 'Release' build that correctly locates the application&amp;nbsp;at&amp;nbsp;flash 0x3000 and generates a binary that can be used away from the debugger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2019 12:21:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Debug-Fails-When-Application-is-Offset-in-Flash/m-p/877592#M3724</guid>
      <dc:creator>billherring</dc:creator>
      <dc:date>2019-01-22T12:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Debug Fails When Application is Offset in Flash</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Debug-Fails-When-Application-is-Offset-in-Flash/m-p/877593#M3725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bill,&lt;/P&gt;&lt;P&gt;OK, I think your idea is excellent , thanks for your sharing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2019 08:24:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Debug-Fails-When-Application-is-Offset-in-Flash/m-p/877593#M3725</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2019-01-23T08:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Debug Fails When Application is Offset in Flash</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Debug-Fails-When-Application-is-Offset-in-Flash/m-p/877594#M3726</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;For anyone that might be interested I've now got to the bottom of my problem. It was my fault.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was using similar 'boot' code to that suggested by Alice (above). At least it had the same intent but it was different. It had compiled fine with my old IAR compiler but I hadn't noticed (until looking more closely) that mcuxpresso was optimising an important element of it away, causing the hard fault every time my boot attempted to jump to my main application. I've now modified it to look more like Alice's suggested code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, if your application is offset in flash and you need to debug it there, I can now vouch for the fact that a reasonable approach is to first flash your boot code (or something similar to Alice's suggestion) into place at 0x0. Subsequent application debugs then work fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2019 13:11:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Debug-Fails-When-Application-is-Offset-in-Flash/m-p/877594#M3726</guid>
      <dc:creator>billherring</dc:creator>
      <dc:date>2019-02-22T13:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Debug Fails When Application is Offset in Flash</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Debug-Fails-When-Application-is-Offset-in-Flash/m-p/1240937#M6772</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/27788"&gt;@Alice_Yang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just a question: how I can put a code into linker file whether it is auto-generated?&lt;/P&gt;&lt;P&gt;Reagrds&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 10:59:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Debug-Fails-When-Application-is-Offset-in-Flash/m-p/1240937#M6772</guid>
      <dc:creator>MarcoGiammarini</dc:creator>
      <dc:date>2021-03-05T10:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Debug Fails When Application is Offset in Flash</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Debug-Fails-When-Application-is-Offset-in-Flash/m-p/1240965#M6773</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/21218"&gt;@MarcoGiammarini&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;you can modify the automatic linker script with using Freemarker scripts. See for example I do this with for a bootloader: &lt;A href="https://mcuoneclipse.com/2019/10/06/linking-bootloader-applications-with-eclipse-and-freemarker-scripts/" target="_blank" rel="noopener"&gt;https://mcuoneclipse.com/2019/10/06/linking-bootloader-applications-with-eclipse-and-freemarker-scripts/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Another usage is here: &lt;A href="https://mcuoneclipse.com/2017/08/29/tutorial-porting-blenrf-kinetis-design-studio-project-to-mcuxpresso-ide/" target="_blank"&gt;https://mcuoneclipse.com/2017/08/29/tutorial-porting-blenrf-kinetis-design-studio-project-to-mcuxpresso-ide/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The folder needs to be named 'linkscripts' and then you can place your 'overrrides' into it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 11:55:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Debug-Fails-When-Application-is-Offset-in-Flash/m-p/1240965#M6773</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2021-03-05T11:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Debug Fails When Application is Offset in Flash</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Debug-Fails-When-Application-is-Offset-in-Flash/m-p/1241113#M6774</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/17173"&gt;@ErichStyger&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply. I read your article, but I don't understand why there is two flash section with the same address. Flash and PROGRAM_FLASH are equal!&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;/* Define a symbol for the top of each memory region */&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;__base_PROGRAM_FLASH&lt;/STRONG&gt;&lt;/SPAN&gt; = 0x0+__BOOTLOADER_APPLICATION_OFFSET ; &lt;SPAN&gt;/* PROGRAM_FLASH */&lt;/SPAN&gt; &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;__base_Flash&lt;/STRONG&gt;&lt;/SPAN&gt; = 0x0+__BOOTLOADER_APPLICATION_OFFSET ; &lt;SPAN&gt;/* Flash */&lt;/SPAN&gt; &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;__top_PROGRAM_FLASH&lt;/STRONG&gt;&lt;/SPAN&gt; = 0x0 + 0x40000 ; &lt;SPAN&gt;/* 256K bytes */&lt;/SPAN&gt; &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;__top_Flash&lt;/STRONG&gt;&lt;/SPAN&gt; = 0x0 + 0x40000 ; &lt;SPAN&gt;/* 256K bytes */&lt;/SPAN&gt; &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;__base_SRAM&lt;/STRONG&gt;&lt;/SPAN&gt; = 0x1fffe000&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;; &lt;SPAN&gt;/* SRAM */&lt;/SPAN&gt; &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;__base_RAM&lt;/STRONG&gt;&lt;/SPAN&gt; = 0x1fffe000 ; &lt;SPAN&gt;/* RAM */&lt;/SPAN&gt; &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;__top_SRAM&lt;/STRONG&gt;&lt;/SPAN&gt; = 0x1fffe000 + 0x8000 ; &lt;SPAN&gt;/* 32K bytes */&lt;/SPAN&gt; &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;__top_RAM&lt;/STRONG&gt;&lt;/SPAN&gt; = 0x1fffe000 + 0x8000 ; &lt;SPAN&gt;/* 32K bytes */&lt;/SPAN&gt; &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;Marco&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 16:46:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Debug-Fails-When-Application-is-Offset-in-Flash/m-p/1241113#M6774</guid>
      <dc:creator>MarcoGiammarini</dc:creator>
      <dc:date>2021-03-05T16:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Debug Fails When Application is Offset in Flash</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Debug-Fails-When-Application-is-Offset-in-Flash/m-p/1241129#M6775</link>
      <description>&lt;P&gt;I try to follow your article, but my application doesn't start and goes into hard fault. I had also the following code, but nothing. Do you have any ideas? I am working on KL27.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;#if&lt;/STRONG&gt;&lt;/SPAN&gt; defined(APPLICATION_HAS_BOOTLOADER)&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;#define&lt;/STRONG&gt;&lt;/SPAN&gt; ISR_VECTOR_ADDRESS&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;(0x4000)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;// Set VTOR register in SCB first thing we do.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;SCB-&amp;gt;&lt;SPAN&gt;VTOR&lt;/SPAN&gt; = ISR_VECTOR_ADDRESS;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;__set_MSP(((&lt;SPAN&gt;uint32_t&lt;/SPAN&gt;*)ISR_VECTOR_ADDRESS)[0]);&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;__set_PSP(((&lt;SPAN&gt;uint32_t&lt;/SPAN&gt;*)ISR_VECTOR_ADDRESS)[0]);&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#endif&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 17:11:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Debug-Fails-When-Application-is-Offset-in-Flash/m-p/1241129#M6775</guid>
      <dc:creator>MarcoGiammarini</dc:creator>
      <dc:date>2021-03-05T17:11:23Z</dc:date>
    </item>
  </channel>
</rss>

