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 a problem. I can not make the can-bus working.
I tried a lot of code, and checked it again and again. In the startupfile (start167.a66) i, configured the X-Bus and the CAN-Bus. But it doesn't work.
The Busstate is dominant or recesive, depending of the state of the port (why can i change the pin-state?).
I think it is interessting, that the simulator gives me SYSCON = 0x0004 (that is, what i expect). When i watch the Adress of SYSCON in the debug-window when debugging the micro, there is constäntly 10 00 (SYSCON=0x0010).
I have terminated the bus with 120Ohms, a Phytec-Minimodul and CANoe.
Any advices, what i could check again???
Thanks.
It has been a while since I used BSL but are you sure the monitor file has the XPEN bit enabled?
Once the EINIT command is executed you cannot write the SYSCON register. Meaning your code can't change the value since it is protected. This would explain the difference you see between the simulator and the real target.
hmm... sounds interessting. CAN you tell me how to use the CAN-Interface in Monitor-Mode?
Heiko