What to do while watchdog is ON while loading flash image to microcontroller?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

What to do while watchdog is ON while loading flash image to microcontroller?

2,463 Views
chetansantoki
Contributor II

Hi,

I have two images in my controller.

1. Bootloader image and 2. Application Image.

I am enabling watchdog in bootloader image(it must required as per our application) which execute once in boot up and I am feeding watchdog in my application image. There are not any issue with application oriented its working fine.

But while i am downloading application image watch dog would be ON so after timeout of watchdog time its getting reset in between of downloading flash. What can i do for abort watchdog reset while programming?

Notes: I cant consider increase watchdog time due to my flash image is large so i cant afford it. 

Please help to come out of this.

Regards,

Chetan Santoki.

5 Replies

1,815 Views
lpcxpresso_supp
NXP Employee
NXP Employee

If you want to program your application into flash over a debug connection, then try booting your part into ISP mode before making the debug connection. For details see: https://community.nxp.com/message/630748 

Regards,

LPCXpresso Support

0 Kudos

1,815 Views
chetansantoki
Contributor II

In my application:

on Start up:

Boot loader application: after checking is there any new updates available it Initialize watchdog and start it. After starting watchdog it jumps to main application.

In application: I am feeding watchdog. even downloading image in application firmware so there are not any issue with OTA downloading or my application.

now if i am downloading any image through JTAG program should passed through boot loader code means watchdog is started. and now i am trying to program application sections using JTAG then i am facing watch dog reset in between due to application is erased so cant feed watchdog.

0 Kudos

1,815 Views
uditsalunke
Contributor III

Chetan,

as watchdog is enabled, boot loader code should feed watchdog during Application image download and programming.

or you could disable watchdog before starting application download - I will not recommend this.

1,815 Views
chetansantoki
Contributor II

Sorry but i did not mention that i facing issue while downloading image through JTAG , LPCexpresso. How can i feed while image is downloading through JTAG.

0 Kudos

1,815 Views
uditsalunke
Contributor III

So on hardware, you have Boot Loader in execution and Application image is being programmed using JTAG and during this process you are getting watchdog reset.  is that the case? 

is this a software watchdog or external hardware? 

"" which execute once in boot up and I am feeding watchdog in my application image. There are not any issue with application oriented its working fine " I have some Q's here ...

what is sequence to pass control to Application from Boot Loader? does boot loader de-init watchdog timer?

how application knows the information about time interval to feed the watchdog ? 

0 Kudos