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 simulation on STM32

Hi,sir!

I run candemo from \keil\arm\boards\keil\mcbstm32\can\can.uv2, and select simulator mode, then run, I cannot see any information in can communication window,but the can_primer_2009sp.pdf said can message with id of 0x21 will be appear in the can communication window.

Anybody can give me advice? I am very interested in Can bus, and want to use it in my project.

Thanks!

Parents
  • Hello David Wang,

    Can interface works in interrupt mode. Please check file can.c. There you find the interrupt handler for TX and RX.

    Simulation works fine for me.
    Which version of uVision are you using?.

    After you started uVision. Please select Target Simulator, build project and start Debugger.
    This works for me.

    Best Regards, Martin Guenther

Reply
  • Hello David Wang,

    Can interface works in interrupt mode. Please check file can.c. There you find the interrupt handler for TX and RX.

    Simulation works fine for me.
    Which version of uVision are you using?.

    After you started uVision. Please select Target Simulator, build project and start Debugger.
    This works for me.

    Best Regards, Martin Guenther

Children