Skip to content

Add STM32N657 Nucleo Board support #3140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jun 12, 2025

Conversation

james-advatek
Copy link
Contributor

Describe the PR

This PR adds support for the STM32N6, and BSP for the STM32N657 Nucleo Board.

Additional context

  • This has been heavily based off @HiFiPhile's STM32H7RSxx port. The TCPP0203 code is directly copied from their port.
  • Currently the FreeRTOS examples do not run. I haven't had the time to actually analyse what isn't working, and I probably won't get the time as I will be using Zephyr.
  • USB Host has been tested with the device_info and cdc_msc_hid examples.
  • USB Device has been tested with the cdc_dual_ports example, and it was verified that it was operating as a USB HS device.

Disclaimer: this is my first contribution to TinyUSB, so I apologise if I haven't done things in the correct way!

@@ -79,8 +79,8 @@ extern "C" {

#elif CFG_TUSB_MCU == OPT_MCU_STM32N6
#include "stm32n6xx.h"
#define EP_MAX_FS 6
#define EP_FIFO_SIZE_FS 1280
#define EP_MAX_FS 9
Copy link
Owner

@hathach hathach Jun 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

N6 has 2 indentiacal HS core with built-in HS PHY (+ typecd), probably the first stm32 mcu with this configuration
image

Copy link
Owner

@hathach hathach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perfect, thank you. Everything look great. I don't have a hardware to test with, but did try to compile and make some minor update to fix cmake build and/or some configuration and docs. I also refactor to have TCPP0203 driver as depencency since it can be used by more st board in the future.

@hathach hathach merged commit 99b4ebe into hathach:master Jun 12, 2025
108 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants