cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 N6 UART

VicxSri
Associate II

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

 

9 REPLIES 9
KDJEM.1
ST Employee

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

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.

VicxSri
Associate II

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

KDJEM.1
ST Employee

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

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.

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. 


@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.

 

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

See, i have worked with the STM32 F4,F1,F7 series, and i know how the apis work and the stuff, the issue i am facing with the N6 series, that it's complicated, to debug, and to dump the code in this N6 chip, and its very hard to debug, there are no proper, tutorial teaching to program this MCU, so i am requesting a step by step tutorial to ST microelectronics.

I have tried all the steps in the Readme.md file, all i was able to do was toggle the led from C:\Users\{name}\STM32Cube\Repository\STM32Cube_FW_N6_V1.0.0\Projects\NUCLEO-N657X0-Q\Examples_MIX\UART, and this is an uart tutorial code, also the uart does not work, the toggle worked. so if you would give some tutorials, i will be easy for us.

 

Thank you

KDJEM.1
ST Employee

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

 

 

 

 

 

 

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.

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.

KDJEM.1
ST Employee

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

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.