Skip to main content
Visitor II
June 11, 2025
Solved

STM32 N6 UART

  • June 11, 2025
  • 6 replies
  • 1063 views

I Tried to flash the uart code in stm32 N657 Nucleo Board, but it is not responding, i was able to make the Leds, blink in the N6 board. Please help me out, i am using the uart example printf code in the N6 stm32 package. I tried the normal method used in the STM32 F4 MCUs, also the selection of peripherals are different in the IOC file. also please explain how to configure the RCC and other peripherals in the IOC file of these N6 boards

 

    This topic has been closed for replies.
    Best answer by KDJEM.1

    Hello @VicxSri;

     

    1- Download the STM32CubeN6 firmware from ST.web site.

    2- Open the UART_Printf using STM32CubeIDE as shown in the below figures:

    KDJEM1_0-1750321939912.png5-

    KDJEM1_1-1750322063082.png

    KDJEM1_2-1750322136536.png

     

    KDJEM1_3-1750322164534.png

    3- Build the project: make sure that the the build finished without error

    KDJEM1_4-1750322317480.png

    KDJEM1_5-1750322359277.png

    4- Connect the board and click on debug

    KDJEM1_6-1750322492460.png

    5- Open tera term and change the settings 

    KDJEM1_7-1750322544834.png

    KDJEM1_8-1750322566452.png

    KDJEM1_9-1750322684084.png

    6-  click on resume to execute code and to see the message in tera term

    KDJEM1_10-1750322925299.png

     

     

     

    I hope this help you.

    Thank you.

    Kaouthar

     

     

     

     

     

     

    6 replies

    Technical Moderator
    June 12, 2025

    Hello @VicxSri and welcome to the community;

     

    What do you mean by "I Tried to flash the uart code in stm32 N657 Nucleo Board, but it is not responding,"?

    Do you get an error message? If yes could you please share a screenshot of this error?

    If you download the STM32CubeN6 package from GitHUB; I recommend you to look at Downloading STM32Cube packages from GitHub correctly or you can download from st.web site.

    On my side, I tested the example UART_Printf and it works correctly. 

    For ".ioc" peripheral configuration, I advise you to refer to How to create an STM32N6 FSBL load and run.

     

    Thank you.

    Kaouthar

    VicxSriAuthor
    Visitor II
    June 12, 2025

    I didn't receive errors messages, what i was trying to say is that i didn't receive any output in the tera term.

    Technical Moderator
    June 12, 2025

    Hello @VicxSri;

     

    Thank you for this clarification.

    Please make sure that:

    - You choose the adequate serial port as shown in the below figure:

    KDJEM1_0-1749734608805.png

    - The HyperTerminal is configured with the correct value 

    KDJEM1_1-1749734748466.png

    For UART_Printf Example the HyperTerminal configuration (as mentioned in the readme) is: 

    • Data Length = 7 Bits
    • One Stop Bit
    • Odd parity
    • BaudRate = 115200 baud
    • Flow control: None

    For UART_Console Example the HyperTerminal configuration (as mentioned in the readme) is:

        - Data Length = 8 Bits
        - One Stop Bit
        - No parity
        - BaudRate = 115200 baud
        - Flow control: None
    May you can look at this wiki "STM32StepByStep:Step3 Introduction to the UART - stm32mcu" and get inspired to configure the HyperTerminal and run the example.
    KDJEM1_2-1749735218612.png

     

    Please let me know if the issue is solved or not?
     
    Thank you.
    Kaouthar
    VicxSriAuthor
    Visitor II
    June 19, 2025

    Hey, i am still having issues, i am not able to see the output, can you like teach step by step so i can follow up. I have been trying for so many days and i am still not able to figure it out. 

    Super User
    June 19, 2025

    @VicxSri wrote:

    i am still having issues,  


    But you have marked this as solved?

    If it's not solved,  here are instructions to un-mark it.

     

    Here are some getting started links for the UART:

    Implementing UART receive and transmit functions on an STM32.

    Wiki: Getting started with UART.

     

    Some tips for debugging serial comms.

    See also: FAQ: STM32 HAL UART driver - API and Callbacks.

     

    KDJEM.1Answer
    Technical Moderator
    June 19, 2025

    Hello @VicxSri;

     

    1- Download the STM32CubeN6 firmware from ST.web site.

    2- Open the UART_Printf using STM32CubeIDE as shown in the below figures:

    KDJEM1_0-1750321939912.png5-

    KDJEM1_1-1750322063082.png

    KDJEM1_2-1750322136536.png

     

    KDJEM1_3-1750322164534.png

    3- Build the project: make sure that the the build finished without error

    KDJEM1_4-1750322317480.png

    KDJEM1_5-1750322359277.png

    4- Connect the board and click on debug

    KDJEM1_6-1750322492460.png

    5- Open tera term and change the settings 

    KDJEM1_7-1750322544834.png

    KDJEM1_8-1750322566452.png

    KDJEM1_9-1750322684084.png

    6-  click on resume to execute code and to see the message in tera term

    KDJEM1_10-1750322925299.png

     

     

     

    I hope this help you.

    Thank you.

    Kaouthar

     

     

     

     

     

     

    VicxSriAuthor
    Visitor II
    June 19, 2025

    Thank you.

    Well this is for debugging, please tell me how to dump the code in the external flash and to run it while booting.

    Technical Moderator
    June 19, 2025

    Hello @VicxSri ,

     

    These FAQs can help you to run the code from external memories:

    How to debug STM32N6 using STM32CubeIDE

    How to execute code from the external serial NOR using the STM32N6

    How to create an STM32N6 FSBL load and run

     

    Thank you.

    Kaouthar

    Technical Moderator
    August 22, 2025

    Hello @VicxSri ;

     

    Is your issue solved or not?

    If you need more support please don't hesitate to update post.

    If your issue is solved please click on Accept as Solution on the reply which solved your issue.

     

    Thank you.

    Kaouthar