<?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: Getting an error &amp;quot; No source available for &amp;quot;0xFFFFFFFE (0xFFFFFFFE)() &amp;quot; &amp;quot; porting k60 bootloader from AN4368 to k20 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Getting-an-error-quot-No-source-available-for-quot-0xFFFFFFFE/m-p/356521#M17784</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On a normal application after reset Program Counter goes to address 0x0 and here it will find the vector table, the first vector will init the Stack Pointer. If the application has been relocated the debugger will force the program counter to main function but the Stack Pointer will not be initialized and its reset values is 0xFFFFFFFF. This is the reason of the error.&lt;/P&gt;&lt;P&gt;You can initialize the SP with the debugger by configuring init_kinetis.tcl, just add the following function in the file and call it at the end of the file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc init_stack_pointer {} {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; reg SP = 0x2000FFF8&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 17 Aug 2014 05:09:51 GMT</pubDate>
    <dc:creator>Carlos_Musich</dc:creator>
    <dc:date>2014-08-17T05:09:51Z</dc:date>
    <item>
      <title>Getting an error " No source available for "0xFFFFFFFE (0xFFFFFFFE)() " " porting k60 bootloader from AN4368 to k20</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Getting-an-error-quot-No-source-available-for-quot-0xFFFFFFFE/m-p/356520#M17783</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;&amp;nbsp;&amp;nbsp; We have been following AN4368 for porting the k60 bootloader to the k20 (on a TWR-K20D72M.) The project compiles however when we go to debug there is this error&lt;/P&gt;&lt;P&gt;"No source available for "0xFFFFFFFE (0xFFFFFFFE)() " " (debug stops on main, then just after pressing the resume button this happens.)&lt;/P&gt;&lt;P&gt;[We are using codewarrior 10.6, windows XP]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The disassembly listing lists the following:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;0xFFFFFFFa: movs r0, r0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;0xFFFFFFFc: movs r0, r0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;0xFFFFFFFe: movs r0, r0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This has happened after adjusting the memory map in the Bootloader.h file (as directed in AN4368)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define MIN_RAM1_ADDRESS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x1FFF0000&lt;/P&gt;&lt;P&gt;#define MAX_RAM1_ADDRESS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x20007FFF&lt;/P&gt;&lt;P&gt;#define MIN_FLASH1_ADDRESS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&lt;/P&gt;&lt;P&gt;#define MAX_FLASH1_ADDRESS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0003FFFF&lt;/P&gt;&lt;P&gt;#define IMAGE_ADDR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ((uint_32_ptr)0x10000)&lt;/P&gt;&lt;P&gt;#define ERASE_SECTOR_SIZE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (0x800)&amp;nbsp; /* 2K bytes*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Likewise in the *.lcf file we have modified it to:&lt;/P&gt;&lt;P&gt;MEMORY {&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_interrupts&amp;nbsp; (RX) : ORIGIN = 0x00010000, LENGTH = 0x00000400&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_cfmprotrom&amp;nbsp; (RX) : ORIGIN = 0x00010400, LENGTH = 0x00000010&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_text&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RX) : ORIGIN = 0x00010410, LENGTH = 0x0006FBF0-0x00000800&lt;/P&gt;&lt;P&gt;&amp;nbsp; vectorram (RWX) : ORIGIN = 0x1FFF0000, LENGTH = 0x00000400&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_data&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RW) : ORIGIN = 0x1FFF8000, LENGTH = 0x00010000-0x00000200&lt;/P&gt;&lt;P&gt;&amp;nbsp; m_bdt&amp;nbsp; (RW) : ORIGIN = 0x20007E00, LENGTH = 0x200&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;.vectorram :&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;{&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;___VECTOR_RAM = .;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;} &amp;gt; vectorram&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thread indicates the program counter value is causing the program to jump to the end of memory because there is nothing there otherwise.&lt;/P&gt;&lt;P&gt;We are just trying to get the bootloader running by itself (there is no application on top of the bootloader yet.)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Other threads indicate it could be a setting the debugger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a memory issue from the memory table or does this have to do with a debugger setting? Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 22:19:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Getting-an-error-quot-No-source-available-for-quot-0xFFFFFFFE/m-p/356520#M17783</guid>
      <dc:creator>rhana</dc:creator>
      <dc:date>2014-08-13T22:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Getting an error " No source available for "0xFFFFFFFE (0xFFFFFFFE)() " " porting k60 bootloader from AN4368 to k20</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Getting-an-error-quot-No-source-available-for-quot-0xFFFFFFFE/m-p/356521#M17784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On a normal application after reset Program Counter goes to address 0x0 and here it will find the vector table, the first vector will init the Stack Pointer. If the application has been relocated the debugger will force the program counter to main function but the Stack Pointer will not be initialized and its reset values is 0xFFFFFFFF. This is the reason of the error.&lt;/P&gt;&lt;P&gt;You can initialize the SP with the debugger by configuring init_kinetis.tcl, just add the following function in the file and call it at the end of the file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc init_stack_pointer {} {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; reg SP = 0x2000FFF8&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Aug 2014 05:09:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Getting-an-error-quot-No-source-available-for-quot-0xFFFFFFFE/m-p/356521#M17784</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2014-08-17T05:09:51Z</dc:date>
    </item>
  </channel>
</rss>

