Skip to main content
Associate
October 12, 2023
Question

Receiving data from peak device to stm32f103c8t6 using can.

  • October 12, 2023
  • 3 replies
  • 1487 views

Hello STM32 community,

I hope this message finds you well. I'm currently working on a project where I need to receive data from a Busmaster connected Peak device using a STM32F103C8T6 microcontroller via the CAN interface. I'm relatively new to CAN communication, and I'm looking for some assistance or example code that could help me get started. If any of you have experience with this and can share some code snippets or guidance, I would greatly appreciate it. Your expertise and support would go a long way in helping me complete this task successfully. Thank you in advance for your help!

This topic has been closed for replies.

3 replies

KDJEM.1
Technical Moderator
October 18, 2023

Hello @AKZORO and welcome to the Community :),

You can start by an available CAN_Networking example in STM32CubeF1.

This example explains how to configure the CAN peripheral to send and receive CAN frames in normal mode.

Hope this helps you!

Kaouthar

AKZOROAuthor
Associate
October 18, 2023

Hello

thank you for response

actully im new to stm32 so im doing small project with it about communicating two stm32f103c8t6. i'm able to send data sussecfull but i'm not able to receive data in stm32f103c8t6.

 

here's my code for receiving data.

KDJEM.1
Technical Moderator
October 18, 2023

Hello @AKZORO ,

Could you please check your code, make sure that the CAN module is started and the interrupts are enabled before receiving data.

Please let me know if the issue is solved or not.

Thank you.

Kaouthar