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.
Hello,
I'm debugging with my custom LPC1111 board. My code size is around 3000 kB.
When my code size gets around 4 kB I get a Flash Timeout error from keil when programming the chip. The code size of the chip is 8 kB.
Any ideas on this problem ??
Best regards,
Erwin
Maybe you need to contact Keil support. The flash memory is normally programmed in pages and each page take a bit of time to erase/program.
My code size is around 3000 kB. [...] The code size of the chip is 8 kB.
Just on the very remote chance that this is not a monstrous typo: you're aware that 3 megabytes of stuff won't fit into an 8 kilobyte ROM, right?
Hi
We had the same problem, if we crossed the 4k boarder of the 8k device. Try to reduce the RAM size which could be used by uLink. Utilities->Flash Download->RAM for Algorithm->Size = 0x800 reduce to 0x7FD at least.
Regards
This fixed the problem! Thanks for your help...
Raphael,
Do you know why this solves the problem?
I've no idea. Off course this is just a workaround. I've noticed Keil Support about the problem. I will post their response.
Thanks. I'm curious.
I've got the tip from Keil support.
As I understand needs the uLink some RAM for buffering the code data and for some additional internal variables to control the programming algorithm. It seems that if more than 4k code should be downloaded a conflict happens between this to kind of RAM user. If the hole RAM is defined for the buffer no space is left for the internal varibables.Why it happens at the 4k boarder I don't know. As I know Keil only tested the programming algorithm with a LPC11xx device with more RAM than the 0x0800, so the proble din't show up.
regards
Here is the reply from support:
Dear Erwin,
Correct. This is also what NXP states in the manual that IAP uses the last 32bytes of RAM. So that must not be used by the uVision flash algorithm. As far as I know, the current default settings should take care about this. So if you create a new project, it should be correct.
Best Regards Andreas Barth