This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how to satisfy watchdog when using isp commands

Hello, I am making a flash programming utility for the LPC2368 using the ISP commands. (I'm aware this has been done many times before flasmagic nxp utility etc... but I have to create my own ) I'm curious how to satisfy the watchdog during usage of the isp commands.
thanks for any help
Pache

  • I think you are misunderstanding this paragraph of the user manual .

         3.2.7 Interrupts during IAP
    The on-chip flash memory is not accessible during erase/write operations. When the user
    application code starts executing the interrupt vectors from the user flash area are active.
    The user should either disable interrupts, or ensure that user interrupt vectors are active in
    RAM and that the interrupt handlers reside in RAM, before making a flash erase/write IAP
    call. The IAP code does not use or disable interrupts.
    

    Notice it clearly says IAP and not ISP.
    There is no such problem with ISP simply because the user code isn't running, ISP is done by the on chip bootloader right ? Or did you write the whole protocol yourself ? It is of course possible but then it is IAP and not ISP.

    So user code is not running and hasn't indeed even boot, so the watchdog hasn't been configured and enabled and then what's your problem ?

  • Forgive me, I should have stated I plan to use the IAP command "reinvoke isp" . I'm assuming the watchdog WDTC register would have to be increased > duration of the flash erase load process to prevent WD time out interrupting the flash prog process. hmmm.
    thanks for the response btw

  • I don't think it matters because you should disable all interrupts before reinvoking ISP.

    /!\ I don't know if the NXP's application note AN10356 have been updated since, but they are knowed issues with the re-invoke ISP scheme :

    www.motherboardpoint.com/invoke-bootloader-isp-mode-lpc2368-t249961.html

    forum.flashmagictool.com/index.php