Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

CAN interface does not work with code stored in Flash memory

Status
Not open for further replies.

john2020

Full Member level 5
Joined
Nov 13, 2005
Messages
292
Helped
12
Reputation
24
Reaction score
8
Trophy points
1,298
Activity points
4,911
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.

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.

can anybody help me?
Thank you
 

Re: CAN interface does not work with code stored in Flash me

I dont know the C167, but it can be some SFR that you dont init in your application. Some SFR related to clock. You can send one frame and see the CAN with scope.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top