We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I are puzzled about LPC2300 bootloader,please give me some guidance, thanks!
1) bootloader in lpc2368 flash, Is it possible be earsed by Uvision3 IDE or the other flash utility? 2) in case the bootloader is earsed, how to restore it, 3) in uVision3 IDE, I selected Flash | Erase after this operating, i can't erase or programming the flash anymore, can i assert the bootloader in this LPC2368 is destroyed?
Hi did you solve the problem? If yes, how did you? I have the same problem with some of my LPC2368.
No the bootloader cannot be erased unless you try some brute force .
The reason for you not able to program/erase flash can be due to your code you had downloaded. for example If the code is setting PLL out of specified range their are chances that the jtag communiation fails.
You can try to use ISP pin and use flash magic to erase the chip. When you use ISP pin during power up the micro will go to the bootloader and will not execute your code. Flash magic can then communicate to the micro and allow you to erase / program the micro. You will need to use UART0 of the micro for this.
Suvidh
Well, the reason for my question is the following: A few weeks ago I programmed 15 boards (LPC2368) using FlashMagic and everything went well. Now, on another 25 boards 10 out of them are not able to program this way, but they are programmable using ULINK2. Two persons had doublechecked all parts and wiring and they could not find any error. After replacing the cpu on one of the boards, FlashMagic was working. Now it looks like there are any flaw cpus. BTW all of them have the same date code. Is there anybody with the same experiance and/or any solution?
I have a problem where some boards with lpc2366 only program at 19200 baud.
Some support up to 57600baud and some 115200baud. Perfect signals, same PC, same program...
The only thing that I can think about that differs is the internal RC oscillator in the processor. But the transmissions looks ok.
the internal RC oscillator
Well, that would easily explain any such failures. High RS232 signal bitrates and RC oscillators just don't mix.
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(means this micro can be operated by FlashMagic and ulink), in principle, empty flash also can forced cpu enters ISP mode, but i found pull down p2_10 is necessary.
The problem you had encountered is different, but hope my experiences is helpful to you.