a target board's bootloader is confirm destroyed, after erasing all flash via JTAG.
I have tried to load application programme into flash via JTAG. the error message in output window is Erased failed.
Is JTAG separated to bootloader? If JTAG can load firmware to flash, Is bootloader loaded into flash automatically?
if you have some idea about these, please give me guidance. thanks
In theory yes, but probably not.
When you download new firmware into the chip, Keil downloads a little application to RAM, and it this little application that takes each block of data and programs it. I believe that the downloaded program calls the IAP interface of the built-in NXP boot program to do the programming. With the boot program erased, the flashing will then fail.
If, on the other hand, the downloaded little application do perform the flashing on it's own, then it should be possible to program the chip even when the NXP boot loader is missing.
Dear Per Westermark,
The detail procedures are as below, although i solved this problem, but have not a reasonable explanation.
let's introduce my tools first, uVision3 IDE V3.53, FlashMagic V4.15, uLink2 MCB2300 Eval board, Target board(LPC2366)
1) connection pc-usb-ulink2, ulink2-JTAG-target board , target board-RS232-pc 2) select Flash | Erase in IDE message "Full Chip Erased" appears in output window. if selcet Flash | Download, everything are OK if reset target board's power after erasing full chip, Flash | Download can't be done anymore a message window shows "Error:Flash Download failed-ARM7TDMI" if try again, IDE lose JTAG reset ulink and target board power, JTAG can be detected, if try to Download or erase, JTAG lost again, the above procedures are repeatable. 3) Connect P2_10 to GND, use FlashMagic load firmware to flash, target board is working again. in principal, empty flash also can forced cpu enters ISP mode, but i found pull down p2_10 is necessary
so many puzzles need your help,Thanks