Skip to main content
matt-crc
Senior III
October 26, 2025
Solved

CUBE-IDE / CubeMX Bug? Cannot setup clock for STM32N6 processor

  • October 26, 2025
  • 4 replies
  • 320 views

Hello,

Does anyone know how to setup the clock source for the N657 processor?  I want to use an oscillator for the HS clock input and setup HSE = Bypass clock source...

mattcrc_0-1761453972561.png

using Bypass clock it should only use PH0 (clock in) and free up the PH1 pin (clock out).  But it seems the IDE / cubeMx always wants to use both pins regardless of the clock configuration.

mattcrc_1-1761454136554.png

am I missing something or is this a bug?

thanks, Matt

 

 

Best answer by Ghofrane GSOURI

Hello @matt-crc @AScha.3 

This issue has been resolved in the latest version of STM32CubeMX 6.17.0 

Link to download 

THX

Ghofrane

4 replies

AScha.3
Super User
October 26, 2025

Hi,

maybe small inaccuracy in Cube ,or N6 just dont switch off osz-out . (read in rm or errata...what it should do)

But it has enough other pins, so not  free up the PH1 pin is nothing to worry about. 

"If you feel a post has answered your question, please click ""Accept as Solution""."
matt-crc
matt-crcAuthor
Senior III
October 27, 2025

@AScha.3 

The reason I was asking about PH1 is because I need that pin, which means there isn't enough pins... lol

 

AScha.3
Super User
October 27, 2025

@matt-crc 

Which cpu we talking about ?  264 pins ? and need every pin ??

"If you feel a post has answered your question, please click ""Accept as Solution""."
matt-crc
matt-crcAuthor
Senior III
October 27, 2025

yes

AScha.3
Super User
October 27, 2025

Show your circuit... :)

"If you feel a post has answered your question, please click ""Accept as Solution""."
matt-crc
matt-crcAuthor
Senior III
October 28, 2025

Hello @Ghofrane GSOURI 

Can you also address this post, this appears to be another bug with the Cube-MX software, where the clock pins are not allocated properly.  You can use the same .ioc file as the previous ticket.

Let me know if you need additional info.

thanks

Matthew

Ghofrane GSOURI
Technical Moderator
October 29, 2025

Hello @matt-crc 

I appreciate your helpful contributions.

According to RM0486 Rev 2, Section 14.6.2: External clock source (HSE bypass):PH1 (OSC_OUT) is not required for HSE bypass mode.

GhofraneGSOURI_0-1761828378560.png

Ticket 220815 has been escalated to the development team for further investigation and resolution of this behavior.

THX

Ghofrane

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.
Ghofrane GSOURI
Ghofrane GSOURIBest answer
Technical Moderator
February 25, 2026

Hello @matt-crc @AScha.3 

This issue has been resolved in the latest version of STM32CubeMX 6.17.0 

Link to download 

THX

Ghofrane

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.