This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

CAN interface does not work with code stored in Flash memory

Hello
I have written a simple program to receive CAN messages using the CAN1 interface. If I burn the monitor in Flash and I run the program, it works, but if I burn the program in Flash, it doesn't work. Does anybody know why?
I have tested the Start167.asm file and I think all is correct. The variables are correctly put in the memory.
Can anybody help me?
Thank you

Parents
  • Ok, you use the P2 leds to see that a CAN msg has been received; you can use the P2 leds to see if a "special" message has been received, turn on leds when message data correspond to a particular known message data and then retransmit the message via RS232. This way you can see if the problem is in CAN receive or in RS232 transmit. Are you sure external RAM connected to CS1 is correctly configured? Check your startup against the Keil Mon166 config for MCB167NET residing in the Keil Mon166 directory.

Reply
  • Ok, you use the P2 leds to see that a CAN msg has been received; you can use the P2 leds to see if a "special" message has been received, turn on leds when message data correspond to a particular known message data and then retransmit the message via RS232. This way you can see if the problem is in CAN receive or in RS232 transmit. Are you sure external RAM connected to CS1 is correctly configured? Check your startup against the Keil Mon166 config for MCB167NET residing in the Keil Mon166 directory.

Children
No data