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.
Hi to everyone.
I've recently bought uVision 3.04 and uLink2 in order to develop an application with NXP LPC2366.
I use GCC compiler version 3.3.1.
Now I have developed a very simple application, in order to check if debug works.
The project builds correctly.
Ulink2 is correctly found by the computer, and its clock is set to RTCK.
When I try to enter in debug mode, I see the debugger delete the flash, and when it tries to write the code in the flash, the following message appear: "memory mismatch". Other timer appears "Flash timeout. Reset the target and try again".
Anyone could help me to find the solution?
I'm going crazy!
Thank you very much in advance,
A
"message appear: 'memory mismatch'."
Is it correct?
Do your memory settings in the tools match the physical chip that's actually on the board?
Hi andy, and thank you for your reply.
I've checked memory settings, they seems to be OK for Philips LPC2366:
CODE START 0x00000000 CODE SIZE 0x00040000
DATA START 0x40000000 DATA SIZE 0x00008000
Program algorithm: LPC2000 IAP2 256kB Flash, starting at 0x00000000, size 0x0003FFFF.
One think: I'm not using a MBC2300 ev board, but a self-designed board. This board is substantially identical to MBC2300, and I've checked it may times in order to check if there were mistakes on it...
Thank you very much.
Nobody can help me in order to find what's wrong? I'm goind crazy with this problem!
Thank you very much in advance...
Try working with flash magic. Check if you can program the flash using ISP and flash magic. This will isolate your problem to either uV settings or the board.
Suvidh
Hi, I've found the problem! the size of the programming alghorithm wasn't correct: it was 0x8000 instead of 0x800.
Thank you very much to everyone!