<?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 Stuck in systemInit() for keyboardhost.c in LPCUSBLib in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Stuck-in-systemInit-for-keyboardhost-c-in-LPCUSBLib/m-p/550393#M14004</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by grtester on Wed Feb 25 17:04:28 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to compile the LPCUSBLib example projects, which failed for the LPC4357 on the MCB4300 board. It wouldn't compile because of not enough RAM, so I set IRAM1 size to 0xC000. Now it compiles and downloads to the board.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I try to debug it, I cannot enter the main() function. It appears it's stuck in the systemInit() function:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;void SystemInit(void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#if defined(CORE_M3) || defined(CORE_M4)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;unsigned int *pSCB_VTOR = (unsigned int *) 0xE000ED08;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;*pSCB_VTOR = (unsigned int) &amp;amp;__Vectors;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#endif&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once I try to step over this line,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;unsigned int *pSCB_VTOR = (unsigned int *) 0xE000ED08;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the debugger enters a hardfault, and the command window states "cannot access memory"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My guess is the address 0xE000ED08 is out of bounds, but other projects with the same systeminit runs fine. Perhaps I should lower the RAM size? But then the program won't compile.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have any ideas to solve this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:34:48 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:34:48Z</dc:date>
    <item>
      <title>Stuck in systemInit() for keyboardhost.c in LPCUSBLib</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Stuck-in-systemInit-for-keyboardhost-c-in-LPCUSBLib/m-p/550393#M14004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by grtester on Wed Feb 25 17:04:28 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to compile the LPCUSBLib example projects, which failed for the LPC4357 on the MCB4300 board. It wouldn't compile because of not enough RAM, so I set IRAM1 size to 0xC000. Now it compiles and downloads to the board.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I try to debug it, I cannot enter the main() function. It appears it's stuck in the systemInit() function:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;void SystemInit(void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#if defined(CORE_M3) || defined(CORE_M4)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;unsigned int *pSCB_VTOR = (unsigned int *) 0xE000ED08;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;*pSCB_VTOR = (unsigned int) &amp;amp;__Vectors;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#endif&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once I try to step over this line,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;unsigned int *pSCB_VTOR = (unsigned int *) 0xE000ED08;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the debugger enters a hardfault, and the command window states "cannot access memory"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My guess is the address 0xE000ED08 is out of bounds, but other projects with the same systeminit runs fine. Perhaps I should lower the RAM size? But then the program won't compile.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have any ideas to solve this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:34:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Stuck-in-systemInit-for-keyboardhost-c-in-LPCUSBLib/m-p/550393#M14004</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:34:48Z</dc:date>
    </item>
  </channel>
</rss>

