Skip to main content
Associate
December 8, 2025
Solved

Communication between STM32 to NXPK344 via CAN communication using J1939 protocol

  • December 8, 2025
  • 3 replies
  • 866 views

Dear STM32 Support Team,

I am working on implementing CAN communication using the standard SAE J1939 protocol on an STM32-based platform and would like your guidance.

Could you please suggest:

  • Recommended STM32 example projects or application notes for J1939 over CAN.

  • Any official STM32Cube examples, middleware, or partner stacks for J1939.

  • Best practices for configuring the CAN peripheral (bitrate, filters, extended ID usage) specifically for J1939 on STM32.

  • Recommended approach for reading GPIO inputs (three switches) and mapping them to different J1939 messages or PGNs.

I am happy to provide details about my MCU part number, board, and current code if needed. Your support would be very helpful for moving this feature to completion.

STM board: STN32F207ZG

Thank you in advance for your assistance.

Best regards,
Suman Uppala

 

Best answer by mƎALLEm

Hello,

ST doesn't offer such kind of stacks but one of our partners Emotas offers J1939 stack for STM32. Please refer to this link. So please contact Emotas: https://www.emotas.de/en/contact

You may find  an open source implementation (ST doesn't guarantee the implementation): like this one:

https://github.com/ttnickb/Open-SAE-J1939-STM32

See also this thread.

Hope that helps.

3 replies

mƎALLEm
mƎALLEmBest answer
Technical Moderator
December 8, 2025

Hello,

ST doesn't offer such kind of stacks but one of our partners Emotas offers J1939 stack for STM32. Please refer to this link. So please contact Emotas: https://www.emotas.de/en/contact

You may find  an open source implementation (ST doesn't guarantee the implementation): like this one:

https://github.com/ttnickb/Open-SAE-J1939-STM32

See also this thread.

Hope that helps.

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
Associate
December 8, 2025

Hello ST Team,

I'm looking for guidance on integrating J1939 CAN communication. Could you please share examples showing the proper J1939 protocol frame format for sending data to other devices?

The provided link contains many files, but I'm unsure which ones are relevant for STM32 implementation.

 

Thank you!!

 

With Regards,

SUMAA UPPALA

mƎALLEm
Technical Moderator
December 8, 2025

Hello @sumanuppala,

I've already answered the question. No example provided for J1939 by ST. We don't support that. Only ST partners are offering such kind of stacks. So please contact our partner Emotas as suggested in my previous post.

I can support you with CAN protocol not for its stacks.

Thank you for your understanding.

 

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
Associate
December 9, 2025

Dear STM32 Community,

Could you please help me with sending CAN data from one node to another using STM32F207ZG?

In my application, I want to:

  • Use the on‑board switch of the STM32F207ZG board

  • Connect an external TTP224B touch sensor module as additional switches

  • When switch 1 is pressed, display/send a “LOW” level

  • When switch 2 is pressed, display/send a “MEDIUM” level

  • When switch 3 is pressed, display/send a “HIGH” level

If you have any example projects, code snippets, or configuration guidelines for STM32F207 CAN communication and reading TTP224B inputs, it would be very helpful.

Thank you in advance for your support.

Best regards,
Suman Uppala

Andrew Neil
Super User
December 9, 2025

You might also take a look at this demo, posted by @Gretchev not so long ago:

Simple Classic CAN + FreeRTOS Demo simulating OBD and a vehicle.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.