Skip to main content
Associate II
Nov 18, 2026 7:26 AM UTC
Question

Siana N6Cam (STM32N657): USB CDC enumerates only after replugging USB data cable

Hello!

I am using a Siana N6Cam board with an STM32N657, an ST-LINK-V3MINIE, and STM32CubeProgrammer v2.23.0. The board has a separate USB data connection for the application’s USB CDC interface.

I flash an AI application and model to external flash, then use a RAM FSBL to start the application while the board is in DEV_BOOT mode.

Issue: With the USB data cable already connected, the application’s USB CDC COM port does not enumerate after the FSBL starts the application. If I unplug and replug only the USB data cable, the COM port appears. No reflashing is needed.

I need the COM port to appear automatically when the application starts, without a physical cable replug.

Could you advise:

  1. Does STM32N6 require an explicit USB device disconnect/reconnect or PHY reset when handing off from a RAM FSBL to the application?
  2. What should I check in the USB PHY clock, VBUS sensing, and USB initialization sequence on the Siana N6Cam?
  3. I observe even in Booting the signed FSBL from external flash - it needs the USB Replug to enumerate the Port

Is there any approach I could follow to avoid doing replug

2 replies

ST Technical Moderator
Nov 19, 2026 8:57 AM UTC

Hi ​@viruthi 

To narrow down the issue, please compare your setup with the USB CDC device example provided in STM32CubeN6 and adapt its configuration for the Siana N6Cam. Since the N6Cam is a Siana Systems partner board, please contact Siana Systems for board specific hardware support. We can help investigate issues related to the STM32CubeN6 software and STM32N657.

Now; back to your questions, you should not normally need to unplug the cable. Test a cold POR and the RAM FSBL to application handoff. Record whether CDC enumerates in each case. If cold power on works but the handoff does not, investigate USB state machine left by the FSBL, including clocks, GPIOs, and the USB peripheral.

A USB analyzer can confirm whether the device signals an attach at startup.

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL
viruthiAuthor
Associate II
Nov 24, 2026 10:09 AM UTC

Hi ​@FBL, Thank you!

Cold power-on and RAM FSBL handoff work.

We found that programming changes RCC_CCIPR6 from 0x00000000 to 0x00000020, switching XSPI2 from HCLK to IC3.

Restoring it to 0x00000000 before reset allowed CDC enumeration without replugging in both Flash boot and DEV_BOOT tests.

Is this an appropriate workaround, and should the external loader restore this clock selection during deinitialization?