lpcware

Missing Chip_IAP_ReinvokeISP() Bootloader selection

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by R2D2 on Thu May 01 04:52:40 MST 2014
The original IAP 57 (Reinvoke ISP) function isn't able to set the desired bootloader   :O

/* Reinvoke ISP */
uint8_t Chip_IAP_ReinvokeISP()
{
uint32_t command[5], result[4];

command[0] = IAP_REINVOKE_ISP_CMD;
iap_entry(command, result);

return result[0];
}


LPC15 is able to select it  :bigsmile:

Sample:
/* IAP 57 Bootloader  */
#define BOOT_HARDWARE0
#define BOOT_UART1
#define BOOT_USB2
#define BOOT_CAN3


/* Reinvoke ISP Bootloader */
uint8_t Chip_IAP_ReinvokeISP(uint8_t bootloader)
{
uint32_t command[5], result[4];
command[0] = IAP_REINVOKE_ISP_CMD;
[color=#f00]command[1] = bootloader;[/color]
iap_entry(command, result);
return result[0];
}


Function call:

Chip_IAP_ReinvokeISP([color=#f00]BOOT_CAN[/color]);//invoke ISP CAN
 

Outcomes