cancel
Showing results for 
Search instead for 
Did you mean: 

Implementing HAL and Advanced Peripherals (FDCAN, USB) on Nucleo-G474RE with Arduino IDE

ParthDhoble
Associate II

Hi everyone,

I'm working on a project using the Nucleo-G474RE board and the Arduino IDE. I'm aiming to utilize advanced peripherals like FDCAN and USB.

While the Arduino Core for STM32 provides a simplified interface, I'm facing challenges in directly accessing the low-level hardware registers for these complex peripherals. I believe leveraging the HAL layer would be a more suitable approach.

I'm seeking guidance on the following:

  1. HAL Layer Integration:
    • How can I effectively integrate the STM32 HAL library into my Arduino sketches for the Nucleo-G474RE?
    • Are there any specific libraries or examples demonstrating this process?
  2. Peripheral Configuration:
    • What are the best practices for configuring FDCAN and USB peripherals using the HAL layer on the Nucleo-G474RE?
    • Are there any specific considerations or pitfalls to avoid?
  3. Middleware Development:
    • Can I develop custom middleware (e.g., USB device/host drivers) to extend the functionality of these peripherals?
    • If so, what are the recommended approaches and tools?

I'm open to any suggestions, tutorials, or code examples that can help me achieve my goal. I'm particularly interested in learning from experienced developers who have successfully implemented these peripherals on the Nucleo-G474RE using the Arduino IDE.

Thank you in advance for your valuable insights!

1 REPLY 1
FBL
ST Employee

Hi @ParthDhoble 

Here is a workshop dedicated to get started with STM32DUINO

Similar question was asked here, you can develop your own implementation or custom middleware (like USB device) for host drivers to extend the functionality

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.


I'm out of offce with limited access to my emails.
Happy New Year!