<?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 usb bootloader and UART printf in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/usb-bootloader-and-UART-printf/m-p/561742#M16447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by renan on Mon Apr 26 10:34:22 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm modifing the RDB1768 USB bootloader.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And I need to see what's in the buffer before write it to flash.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I'm trying to use the example RDB1768cmsis_UART_printf to print parts of the buffer through UART.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is: when I try to delete the file I get a HardFault_Handler.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is only one printf, in the begining of the main file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
int main (void)
{
&amp;nbsp;&amp;nbsp; UART0_Init(115200); // Setup UART0 to 9600 baud
&amp;nbsp;&amp;nbsp; printf("test");
...
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any tip?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Renan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 02:15:08 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T02:15:08Z</dc:date>
    <item>
      <title>usb bootloader and UART printf</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/usb-bootloader-and-UART-printf/m-p/561742#M16447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by renan on Mon Apr 26 10:34:22 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm modifing the RDB1768 USB bootloader.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And I need to see what's in the buffer before write it to flash.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I'm trying to use the example RDB1768cmsis_UART_printf to print parts of the buffer through UART.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is: when I try to delete the file I get a HardFault_Handler.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is only one printf, in the begining of the main file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
int main (void)
{
&amp;nbsp;&amp;nbsp; UART0_Init(115200); // Setup UART0 to 9600 baud
&amp;nbsp;&amp;nbsp; printf("test");
...
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any tip?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Renan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:15:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/usb-bootloader-and-UART-printf/m-p/561742#M16447</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: usb bootloader and UART printf</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/usb-bootloader-and-UART-printf/m-p/561743#M16448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Mon Apr 26 12:57:45 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;The problem is: when I try to delete the file I get a HardFault_Handler.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;Sorry, can you explain in more detail what you mean by "delete the file"?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CodeRedSupport&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:15:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/usb-bootloader-and-UART-printf/m-p/561743#M16448</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: usb bootloader and UART printf</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/usb-bootloader-and-UART-printf/m-p/561744#M16449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by renan on Tue Apr 27 04:25:15 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for not posting enough information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By "delete the file", I mean when there is only the second bootloader in flash, or when you press the joystick button, the windows explorer opens showing me the contents of the flash in a file called "firnware.bin".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Renan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:15:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/usb-bootloader-and-UART-printf/m-p/561744#M16449</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: usb bootloader and UART printf</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/usb-bootloader-and-UART-printf/m-p/561745#M16450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Tue Apr 27 05:09:48 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok, thanks for the confirmation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've just tried merging code from the RDB1768cmsis_UART_print example into the RDB1768cmsis_usb_bootloader, so that I get an initial printf displaying to the terminal on my PC when the bootloader begins running. And deleting firmware.bin still works fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are getting a hard fault, then you can tell where in your sources this is being caused by looking at the VECTPC pseudo-register that is displayed in the Core Register view when the hard fault is trapped. If you hover your mouse over VECTPC, it will do a lookup on the address and the tooltip will show you where in your code that is.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully from there, you should be able to find and fix the cause of the fault.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CodeRedSupport&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:15:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/usb-bootloader-and-UART-printf/m-p/561745#M16450</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: usb bootloader and UART printf</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/usb-bootloader-and-UART-printf/m-p/561746#M16451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by renan on Thu May 27 13:50:00 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Well, I didn't have much time to work on that bootloader.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yesterday I restarted the job on it, and the problem didn't happened anymore.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Renan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:15:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/usb-bootloader-and-UART-printf/m-p/561746#M16451</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:15:10Z</dc:date>
    </item>
  </channel>
</rss>

