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 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
Hello Beatriz, can you give us more informations? What microcontroller? Internal or external Flash? What do you mean "it doesnt work"? Does your program work into the simulator? Take a better look at your Monitor inizialization, maybe the Monitor initializes something in a different way than your startup file. Ciao Bruno
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.
Hi Bruno, I am using MCB167-NET, with a C167CS-LM. I want to burn my program in a external Flash. First, I burned the monitor in the external Flash and the program worked correctly. This is, it read the CAN messages and sent the received data via 232 interface. When I burn this program in the external Flash, it doesn't work; I can see (using the leds connected to P2) that the CAN interrupts are being activated, but the data receaved are incorrect. I think you are right and the mistake should be at the startup program, but I cannot find the mistake. Thank you