cancel
Showing results for 
Search instead for 
Did you mean: 

Data is not getting transmitted via CAN.

sunilkasar7
Associate II
Posted on August 22, 2016 at 13:22

The original post was too long to process during our migration. Please click on the attachment to read the original post.
2 REPLIES 2
Posted on August 22, 2016 at 16:08

What speed is the chip running at? If it is 180 MHz, assumptions that it is at 168 MHz will fail.

Do the math, stop using constants. Computing number during initialization don't add a lot of cycles. If you want to make the code smaller stop replicating stuff.

Watch for enabling GPIO AHB vis writing its registers, per errata.

Review what the external hardware is doing, with a scope.

Check loop-back mode.

Check error/status from CAN controller.

It is an MCP2565 not MPC

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Walid FTITI_O
Senior II
Posted on August 23, 2016 at 19:07

Hi kasar.sunil,

Try to follow the LoopBack mode through the ''CAN_LoopBack'' example in the STM32F4 standard peripheral libray

http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32-standard-peripheral-libraries/stsw-stm32065.html

since you are usin SPL lib. Example is at this path:

STM32F4xx_DSP_StdPeriph_Lib_V1.7.1\Project\STM32F4xx_StdPeriph_Examples\CAN\CAN_LoopBack

-Hannibal-