I am using 2 Boards with the same layout (C167CR-LM, 1MB Flash, 256K RAM) for testing. No my problem is: ----------------- With the first Board downloading the programm in RAM with MON166 using the Bootstrap-Mode works fine. I can start and stop and proceed the programm as often as i want to. With the 2nd Board I can download the programm but after starting it (sometimes immedially after downloading) the connection to the board is lost and sometimes MON166 says: "CANNOT WRITE BREAKPOINT" If I write the programm into the flash on both boards everything works fine. But 'cause both Boards are the same It couldn't be an error in the Config.INC/Start167.a66, could it? Has anybody an idea what the cause could be? (I have already done a RAM-Test but everything seems to be ok) Thanks Torsten
That is why good programming practice demands that you never use an uninitialised variable! Yes,it is! But it is good programming practice to test programms with random initial values. :-)
Thanks a lot to all of you! There where 3 unitialized Variables and 2 macros without braces:
#define NOVRAM_ADDR 0x200000 #define NOVRAM_SIZE 0x2000
#define NOVRAM_ADDR (0x200000) #define NOVRAM_SIZE (0x2000)