Sets OTP124 fuse - Bit 15 -> VDDIO3_HSLV = 1 … I/O XSPIM_P2 High speed option enabled. - When OTP fuses are set, they can not be reset. - The application explicitly asks via the serial terminal whether to perform the write.
If the OTP fuseVDDIO3_HSLV is not already set, run the app once with boot mode set in development mode. Otherwise, it isn’t possible to benefit from the maximum transfer rate to access the external flash.
Re-routing of the C library printf function to the UART. The UART outputs a message on the HyperTerminal.
The system clock runs at 600 MHz and external memory interface at the highest speed.
On success, the blue LED is permanently lit, the red and green are flashing The red, green and blue LEDs will start flashing. when there is an error.
The USART is configured as follows:
- BaudRate = 115200 baud
- Word Length = 8 Bits
- One Stop Bit
- No parity
- Hardware flow control disabled (RTS and CTS signals)
- Reception and transmission are enabled in the time
Care must be taken when using HAL_Delay(), this function provides accurate delay (in milliseconds) based on variable incremented in SysTick ISR. This implies that if HAL_Delay() is called from a peripheral ISR process, then the SysTick interrupt must have higher priority (numerically lower) than the peripheral interrupt. Otherwise the caller ISR process will be blocked. To change the SysTick interrupt priority you have to use HAL_NVIC_SetPriority() function.
The application needs to ensure that the SysTick time base is always set to 1 millisecond to have correct HAL operation.
OTP124, UART/USART
NUCLEO-N657X0-Q-xspi-high-speed/FSBL/Inc/stm32n6xx_nucleo_conf.h BSP configuration file
NUCLEO-N657X0-Q-xspi-high-speed/FSBL/Inc/stm32n6xx_hal_conf.h HAL configuration file
NUCLEO-N657X0-Q-xspi-high-speed/FSBL/Inc/stm32n6xx_it.h IT interrupt handlers header file
NUCLEO-N657X0-Q-xspi-high-speed/FSBL/Inc/main.h Header for main.c module
NUCLEO-N657X0-Q-xspi-high-speed/FSBL/Src/stm32n6xx_it.c Interrupt handlers
NUCLEO-N657X0-Q-xspi-high-speed/FSBL/Src/main.c Main program
NUCLEO-N657X0-Q-xspi-high-speed/FSBL/Src/stm32n6xx_hal_msp.c HAL MSP module
NUCLEO-N657X0-Q-xspi-high-speed/FSBL/Src/system_stm32n6xx.c STM32N6xx system source file
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/BSP/STM32N6xx_Nucleo/stm32n6xx_nucleo.c
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/BSP/STM32N6xx_Nucleo/stm32n6xx_nucleo.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/BSP/STM32N6xx_Nucleo/stm32n6xx_nucleo_errno.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/STM32N6xx_HAL_Driver/Inc/stm32n6xx_hal_pwr.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/STM32N6xx_HAL_Driver/Inc/stm32n6xx_hal_uart.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/STM32N6xx_HAL_Driver/Inc/stm32n6xx_hal_uart_ex.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/STM32N6xx_HAL_Driver/Inc/stm32n6xx_hal_gpio_ex.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/STM32N6xx_HAL_Driver/Inc/stm32n6xx_hal_bsec.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/STM32N6xx_HAL_Driver/Inc/stm32n6xx_ll_rcc.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/STM32N6xx_HAL_Driver/Inc/stm32n6xx_hal_def.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/STM32N6xx_HAL_Driver/Inc/stm32n6xx_hal_rcc_ex.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/STM32N6xx_HAL_Driver/Inc/stm32n6xx_hal_dma_ex.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/STM32N6xx_HAL_Driver/Inc/stm32n6xx_hal_rcc.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/STM32N6xx_HAL_Driver/Inc/stm32n6xx_hal_pwr_ex.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/STM32N6xx_HAL_Driver/Inc/stm32n6xx_hal_dma.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/STM32N6xx_HAL_Driver/Inc/stm32n6xx_hal_cortex.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/STM32N6xx_HAL_Driver/Inc/stm32n6xx_hal.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/STM32N6xx_HAL_Driver/Inc/stm32n6xx_hal_gpio.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/STM32N6xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/STM32N6xx_HAL_Driver/Inc/stm32n6xx_ll_bus.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/STM32N6xx_HAL_Driver/Inc/stm32n6xx_hal_exti.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/STM32N6xx_HAL_Driver/Src/stm32n6xx_hal_rcc.c
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/STM32N6xx_HAL_Driver/Src/stm32n6xx_hal_dma_ex.c
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/STM32N6xx_HAL_Driver/Src/stm32n6xx_hal_pwr_ex.c
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/STM32N6xx_HAL_Driver/Src/stm32n6xx_hal_exti.c
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/STM32N6xx_HAL_Driver/Src/stm32n6xx_hal_gpio.c
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/STM32N6xx_HAL_Driver/Src/stm32n6xx_hal.c
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/STM32N6xx_HAL_Driver/Src/stm32n6xx_hal_cortex.c
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/STM32N6xx_HAL_Driver/Src/stm32n6xx_hal_uart_ex.c
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/STM32N6xx_HAL_Driver/Src/stm32n6xx_hal_bsec.c
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/STM32N6xx_HAL_Driver/Src/stm32n6xx_hal_rcc_ex.c
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/STM32N6xx_HAL_Driver/Src/stm32n6xx_hal_uart.c
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/STM32N6xx_HAL_Driver/Src/stm32n6xx_hal_pwr.c
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/STM32N6xx_HAL_Driver/Src/stm32n6xx_hal_dma.c
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Device/ST/STM32N6xx/LICENSE.txt
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Device/ST/STM32N6xx/Include/system_stm32n6xx.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Device/ST/STM32N6xx/Include/stm32n657xx.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Device/ST/STM32N6xx/Include/stm32n6xx.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Device/ST/STM32N6xx/Include/partition_stm32n6xx.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Include/cmsis_clang.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Include/m-profile/armv7m_mpu.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Include/m-profile/armv81m_pac.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Include/m-profile/armv8m_mpu.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Include/m-profile/cmsis_armclang_m.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Include/m-profile/cmsis_tiarmclang_m.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Include/m-profile/armv7m_cachel1.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Include/m-profile/armv8m_pmu.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Include/m-profile/cmsis_gcc_m.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Include/m-profile/cmsis_clang_m.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Include/m-profile/cmsis_iccarm_m.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Include/core_sc300.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Include/core_sc000.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Include/core_cm52.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Include/core_cm55.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Include/core_cm23.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Include/core_cm3.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Include/core_cm0.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Include/cmsis_gcc.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Include/core_cm33.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Include/core_cm0plus.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Include/core_cm1.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Include/core_cm4.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Include/cmsis_compiler.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Include/tz_context.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Include/core_cm35p.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Include/cmsis_version.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Include/cmsis_armclang.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Include/cmsis_iccarm.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Include/core_cm7.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Include/core_cm85.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Include/core_starmc1.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Include/r-profile/cmsis_clang_r.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Include/r-profile/cmsis_gcc_r.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Include/r-profile/cmsis_armclang_r.h
NUCLEO-N657X0-Q-xspi-high-speed/Drivers/CMSIS/Include/r-profile/cmsis_iccarm_r.h
This example runs on STM32N657X0HxQ devices.
This example has been tested with NUCLEO-N657X0-Q board and can be easily tailored to any other supported device and development board.
NUCLEO-N657X0-Q Set-up Connect ST-Link cable to the PC USB port to display data on the HyperTerminal. A virtual COM port will then appear in the HyperTerminal.
Hyperterminal configuration:
In order to make the program work, you must do the following :
Next, this program can be run in boot from flash mode. This is done by following the instructions below:
Warning If using CubeProgrammer v2.21 version or more recent, add -align option in the command line.