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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

2,595 次查看
keerthana_r
Contributor II

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; }
标记 (3)
6 回复数

2,340 次查看
keerthana_r
Contributor II

Hi jeremyzhou,

What if we don't use flash magic(PC)  for ISP, So can we trigger ISP with only a single controller?

Have a great day,

Thank you

0 项奖励
回复

2,340 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi Keerthana R,

Thanks for your reply.
1) What if we don't use flash magic(PC)  for ISP, So can we trigger ISP with only a single controller?
-- No, you can't.
Hope it helps.

Have a great day,
TIC

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

2,340 次查看
keerthana_r
Contributor II

Thank you :smileyhappy:

0 项奖励
回复

2,340 次查看
keerthana_r
Contributor II

Hi jeremyzhou,

Thank you for the information, it is sufficient to know the device is in ISP mode or not but for the device to send ISP commands and to flash the device i.e, to upgrade the new firmware, do we need secondary boot loader for ISP mode?

Have a great day,

Thank you

0 项奖励
回复

2,340 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi Keerthana R,

Thanks for your reply.
1) Do we need secondary boot loader for ISP mode?
-- No.
Hope it helps.

Have a great day,
TIC

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

2,340 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi Keerthana R,

Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
Actually, you can use the Flash Magic to connect the LPC1759 chip to confirm whether it enters the ISP mode or not.

Flash Magic - Welcome 

Have a great day,
TIC

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复