Re:Download fail with Keil and LM3S811
Hi all,
I have seen the same problem. One important thing is to make sure that you don't accidently chang those "jtag pins" into GPIOs. If you do, you won't be able to get its jtag function back. It is almost impossible! You do need some mechanism to prevent this happens if you intend to do so.
After learning the lesson, I used one pin as input with a jumper to select connecting to +3.3V or GND. At the beginning of my code, it checks the logic level of the pin; if it's logic 0, don't configure those "jtag pins" as GPIOs and hang there waiting for being reprogrammed. If it's logic 1, configure "jtag pins" as GPIOs and continue normal code run. This is slightly different from the example code provided by Luminary Micro, which uses interrupt.
If the error message pops up, you need to close Keil and restart it to make programming flash work.
So far, this method works well for me. I don't have any problem flashing my target board using the LM3S811 Eval board.
cheers, jc
login or register to reply
|