Hi, i am working on LPC2148. i am facing a problem while burning the code. in my board i am having options for RST and P0.14 pins. with these two switches iam trying to burn the code. Please help me out. Keil MCB2140 schematic is taken as reference.
Thanks in Advance.
Regards,
Kiranmai G
I will help you out: Do specify what problem you have. "A problem" isn't very descriptive. Or maybe it is. Maybe it is a description of how little time you have spent on your own trying to figure out what is wrong?
Are you able to reach the boot loader?
Hi, The actual problem is, i am struggling a lot to enter in to boot loader mode. After trying a lot i am able to enter into boot loader mode burning the code, and executing it successfully. But if i want to enter into boot loader mode again for the second time i am unable to enter. Again after trying for so many times in so many permutations and combination's with all the jumper settings and switches provided in the board i am entering in to boot loader mode.
so, I need the actually procedure for entering in to boot loader mode and returning back to running mode.
Regards
Keep P0.14 low. Activate the reset. Deactivate the reset. Then release P0.14. That should be enough to enter the boot loader, unless you have activated any copy protection forbidding boot loader activation. Before you deactivate P0.14, you should make sure that your application has a command to activate the boot loader that way instead.
By the way - is this related to this thread: http://www.keil.com/forum/docs/thread15687.asp
yes it is related to http://www.keil.com/forum/docs/thread15687.asp
i dint get any response so i have created a new thread.
"i dint get any response so i have created a new thread."
Incorrect. I responded to this thread way before you created your new thread. But you did not respond to my comment about you having supplied too little information.
Creating multiple threads is not the way to get help. You get help by making sure that you supply the information you are required to. And by responding with feedback if someone do post an answer to your thread.
ok. I wont repeat it again...
"Before you deactivate P0.14, you should make sure that your application has a command to activate the boot loader that way instead"
i am not clear regarding this point. Can you tell details.
You can protect the chip from external access to the boot loader. But if you do so, you should consider an alternative method of either upgrading the firmware or entering the boot loader.
If you deactivate both the JTAG interface and deactivate the use of P0.14 pin from entering the boot loader, and there is a bug in your program - how will you then update your program?
how can i post a .jpg file in this form which contains my p0.14 & Reset circuitry.
You can't. The best you can do is post a link to an image uploaded somewhere.
But do you have any "p0.14 circuitry"? Normally, it is enough to have a 10k pull-up resistor to Vcc and a push-button to ground. Keep the button pressed until the processor is out of the reset.
http://www.keil.com/mcb2140/mcb2140-schematics.pdf
this is the schematic which is taken as reference design. Have a glance over it.
Flash Magic isn't always so good with automagically running the handshake signals.
To manually control the download: - Connect J7 - Disconnect J1 - Press S2 and keep pressed - Press and release S1 - Release S2 - Start a transfer from FlashMagic
Thanks for your valuable suggestion. I am able to burn and run the code successfully.
could you please explain me what is the need of jumpers J1 and J10 in the schematic.
J1 enableds FlashMagic to remote-control P0.14 using a handshake signal on the RS232 connector.
J10 enables FlashMagic to remote-control reset using another handshake signal on the RS232 connector.
FlashMagic can in effect automagically press the two buttons to reset the chip and get it into boot loader mode before starting the transfer.
There is a special setting in FlashMagic to tell that your board supports this feature. But at least earlier, FlashMagic did not do a good job actually controlling these signals. When FlashMagic was done using the serial port after the programming, it released the serial port without considering the state of the signals - obviously not so good when one signal is connected to an interrupt input, and the other is connected to the reset.
Thank you very much... Now my board is working properly.
Now i need to use JTAG. SO can i use ARM-JTAG wiggler with my keil compiler. If not which JTAG can i use with keil MDK compiler.