<?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: Chip_IAP_SetBootFlashBank  in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Chip-IAP-SetBootFlashBank/m-p/568792#M17784</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by danny_com on Wed Jan 13 04:36:10 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;In the first post I put: However, next time I whant to change the boot from flash bank A, executing in this application the Chip_IAP_SetBootFlashBank(IAP_FLASH_BANK_B) and reset the LPC4357, this change is not happening, and the boot remains in flash bank B.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but it is: However, next time I whant to change the boot from flash bank A, executing in this application the Chip_IAP_SetBootFlashBank(IAP_FLASH_BANK_A) and reset the LPC4357, this change is not happening, and the boot remains in flash bank B.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:54:46 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:54:46Z</dc:date>
    <item>
      <title>Chip_IAP_SetBootFlashBank</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Chip-IAP-SetBootFlashBank/m-p/568791#M17783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by danny_com on Wed Jan 13 04:29:56 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a problem when I am traing to change from my application the boot to second flash bank.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I made a simple application which is loaded in both flash banks of a LPC4357. The application is first running from bank A and when I send a command it execute the Chip_IAP_SetBootFlashBank(IAP_FLASH_BANK_B) and reset the LPC4357. After reste the LPC4357 runs the application from falsh bank B. However, next time I whant to change the boot from flash bank A, executing in this application the Chip_IAP_SetBootFlashBank(IAP_FLASH_BANK_B) and reset the LPC4357, this change is not happening, and the boot remains in flash bank B.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:54:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Chip-IAP-SetBootFlashBank/m-p/568791#M17783</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Chip_IAP_SetBootFlashBank</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Chip-IAP-SetBootFlashBank/m-p/568792#M17784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by danny_com on Wed Jan 13 04:36:10 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;In the first post I put: However, next time I whant to change the boot from flash bank A, executing in this application the Chip_IAP_SetBootFlashBank(IAP_FLASH_BANK_B) and reset the LPC4357, this change is not happening, and the boot remains in flash bank B.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but it is: However, next time I whant to change the boot from flash bank A, executing in this application the Chip_IAP_SetBootFlashBank(IAP_FLASH_BANK_A) and reset the LPC4357, this change is not happening, and the boot remains in flash bank B.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:54:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Chip-IAP-SetBootFlashBank/m-p/568792#M17784</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Chip_IAP_SetBootFlashBank</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Chip-IAP-SetBootFlashBank/m-p/568793#M17785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by michele sponchiado on Thu Jan 14 07:33:39 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi, I was using this sequence too, and this is the code which works for me:&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;void set_bootable_bankA(void)
{
unsigned int retcode;
Chip_IAP_Init();
console_uart_log(enum_console_log_info,__func__,"set bank A bootable");
TIM_Waitms(300);
__disable_irq();
retcode = Chip_IAP_SetBootFlashBank(0);
if (retcode != IAP_CMD_SUCCESS) {
console_uart_log(enum_console_log_error,__func__,"Command Chip_IAP_SetBootFlashBank failed to execute, return code is: %x", retcode);
}
TIM_Waitms(300);
__enable_irq();
}&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I wasn't calling the Chip_IAP_Init(), sometimes the setboot... won't succeed, maybe this is the point?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW, right now, I use no more the switch between bank A and bank B via Chip_IAP_SetBootFlashBank because I have managed to have a fixed boot bank, from where my application always boots, and an application bank where I switch to after the boot has done his checks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:54:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Chip-IAP-SetBootFlashBank/m-p/568793#M17785</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Chip_IAP_SetBootFlashBank</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Chip-IAP-SetBootFlashBank/m-p/568794#M17786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by danny_com on Thu Jan 14 09:22:48 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes this was the problem!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:54:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Chip-IAP-SetBootFlashBank/m-p/568794#M17786</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:54:47Z</dc:date>
    </item>
  </channel>
</rss>

