How to enter into ISP mode through 'reinvoke ISP' in LPC1759

by Keerthana R   Last Updated February 06, 2019 09:25 AM

In LPC1759, I entered ISP through "reinvoke ISP" with the following steps

  1. Disable PLL
  2. Reset timer 1
  3. Re-map interrupt vectors
  4. Set watch dog timeout
  5. Reinvoke ISP

After entering into ISP, What exactly happens in the controller? How to check if it is in ISP Mode? After entering ISP, How to get out?

void init(void){

Chip_Clock_DisablePLL(SYSCTL_MAIN_PLL, SYSCTL_PLL_CONNECT);

Chip_TIMER_Reset(LPC_TIMER1);

Chip_SYSCTL_Map(REMAP_BOOT_LOADER_MODE);

}

int main(void)
 {

uint32_t wdtFreq;
wdtFreq = Chip_Clock_GetPeripheralClockRate(SYSCTL_PCLK_WDT) / 4;

init();

Chip_WWDT_Init(LPC_WWDT);

Chip_WWDT_SetTimeOut(LPC_WWDT, wdtFreq / 10);

Chip_IAP_ReinvokeISP();


DEBUGSTR("HELLO\n\r");

return 0;
}


Related Questions




Bootloader in MCU

Updated October 31, 2017 19:25 PM


Bootloader clarification for microchip

Updated March 02, 2018 05:25 AM