I have problems to flash my program. Small programs (~400Byte) works, but my current program (~12k) I cannot flash correctly.
I'm using Keil v4.11 and Ulink2. Erase complete and erase partly works. On programming I get the error 'Flash Timeout'. I'm using a quartz of 8MHz. JTAG Clock max is 500k. The Flash algorithm ist LM3SXX.
Ideas?
It's a problem like:
http://www.keil.com/forum/docs/thread17058.asp
and
http://www.keil.com/forum/docs/thread16541.asp
But note, that erase is working and it seems, the maximum working size is 1k. I have a customer hardware and I think, I cannot use a other Flash tool. It use the uart, doesn't it? But also I did not find the LMI Flash tool to check it.
ULINK-ME has the same problem.
After changing the Flash Algorithm described in the second Thread, I have the same problem described in the first link (Cannot load Flash Programming Algorithm).
Output of the compiling of the Flash algorithm:
Build target 'LM3S_256' compiling FlashPrg.c... compiling FlashDev.c... linking... .\Target.lin(12): warning: L6314W: No section matches pattern *(RW). .\Target.lin(12): warning: L6314W: No section matches pattern *(ZI). Program Size: Code=184 RO-data=4256 RW-data=0 ZI-data=0 .\Target.lin: Finished: 0 information, 2 warning and 0 error messages. User command #1: cmd.exe /C copy Out\LM3S_256.axf ..\LM3S_256.FLM 1 Datei(en) kopiert. ".\Out\LM3S_256.axf" - 0 Error(s), 2 Warning(s).
With an Eval-Version you are not able to create a *.FLM-File! This is the reason why you get the error-message
Better would be a compile error...
Keil v4.12 solved the Flashing error. Thanks to the TI and Keil support.