2016-08-22 04:22 AM
2016-08-22 07:08 AM
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 MPC2016-08-23 10:07 AM
Hi kasar.sunil,
Try to follow the LoopBack mode through the ''CAN_LoopBack'' example in the STM32F4 standard peripheral libray 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-