Skip to content

About

My first steps in STM32CubeMX2 and HAL2 (STM32C5 FDCAN peripheral, Peugeot 207 IPC).

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

My first steps in STM32CubeMX2 and HAL2 [STM32C562RE]

The board is NUCLEO-C562RE. It's a great all-in-one board if you are into (FD)CAN and LIN buses - the CAN transceiver is already fitted on the board and there is a place to fit the LIN transceiver. Thank you ST engineers! This is my very first experience with MX2, i.e. the new HAL2. My first steps in STM32CubeMX2 and STM32CubeIDE for VS Code are definitely enjoyable to take. I highly recommend you to join me on that journey. The very first mini-project is usually a LED blink. Let's break the mould and communicate with an IPC over the CAN bus instead. The part number is A2C53065549. The code written using HAL1 (let's add '1' for a clear distinction) is available here. The mini-project is the LED blink one to some extend - we are going to blink the turn indicators 🙂 Along the line, we are going to use several soft timers to pace CAN frames properly. The classic LED blink warm-up/ice-breaker activity is therefore also at your fingertips if you miss that 101 task.

Peugeot 207 IPC with MX2 and HAL2 in action

Missing files?

Don't worry. Just open the .ioc2 file in STM32CubeMX2 and hit the yellow button to generate the IDE project. Then open the project in STM32CubeIDE for Visual Studio Code and build it. Based on my preliminary experience, the process is as easy and intuitive as for the classic IDE with the built-in MX. It works for me flawlessly from day one. And this is day four 🙂 Kudos to all the developers!

STM32CubeMX2 Peugeot 207 IPC .ioc2 STM32CubeMX2 Peugeot 207 IPC project generation STM32CubeIDE for Visual Studio Code

STM32C5 series, STM32CubeMX2, and STM32CubeIDE for Visual Studio Code

Call to action

Create your own home laboratory/workshop/garage! Get inspired by ControllersTech, DroneBot Workshop, Andreas Spiess, GreatScott!, bitluni's lab, ElectroBOOM, Phil's Lab, atomic14, That Project, Paul McWhorter, Max Imagination, Nikodem Bartnik, Stuff Made Here, Mario's Ideas, Aaed Musa, Haase Industries, and many other professional hobbyists sharing their awesome projects and tutorials! Shout-out/kudos to all of them! Promote README-driven learning.

Warning

STM32C5 series - do try it at home ❕

220+ challenges to start from: Control Engineering for Hobbyists at the Warsaw University of Technology.

Stay tuned!

0xBU

Disclaimer: I'm not sponsored by nor affiliated with ST or Msalamon. I'm just a big fan of their products, courses, services, and communities built around that! I pay for the Nucleo boards (privately or as the university) and courses (privately) like everyone else.

PS. My version of the LED blink exercise:

LED blink 😎

About

My first steps in STM32CubeMX2 and HAL2 (STM32C5 FDCAN peripheral, Peugeot 207 IPC).

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages