Skip to content

Wrong documentation for stm32n6 nucleo board, programming is not working following that documentation #96265

@cornway

Description

@cornway

Describe the bug

I refer to article
https://docs.zephyrproject.org/latest/boards/st/nucleo_n657x0_q/doc/index.html

Issue #1 :
Seems that BOOT switch positions are twisted, board says that development mode is enabled :

Image

But article says opposite; I may be wrong here, but considered it worth noticing

Issue #2 :
Application programming following this tutorial into external flash is not working, I didn't manage to start application from external flash
WA: none
UPD
Having STM32_SigningTool_CLI in path is sufficient, booting from flash requires signed image

Issue #3
Application programming following SB procedure (Serial Bootloader) is not working
WA :
There are couple of steps :

  • export PATH=$PATH:<path_to_home>/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin
    As STM32_SigningTool_CLI must be available through the PATH, otherwise binary is not signed

  • west build -b nucleo_n657x0_q//sb samples/basic/blinky -d build-sb
    Original command is missing -d build-sb, otherwise it won't sign the binary

  • west flash is not working, adding -d build-sb doesn't help
    Only way around - is to program it manually:
    STM32_Programmer_CLI --connect port=/dev/ttyACM0 --download build-sb/zephyr/zephyr.signed.bin 0x1 --start noack
    Otherwise west flash tries to flash .hex file which is not accepted :
    Error: The download command you trying to perform (--download) is missing the filePath to be loaded or it has a wrong extension, please note that the supported extension are .bin, .hex, .srec, .s19, .elf, stm32, .ext2, .ext3, .ext4, .vfat, .ubi, .jffs2, .img and .tsv files.

  • In boards/st/nucleo_n657x0_q/board.cmake port is pointing to a wrong endpoint :
    board_runner_args(stm32cubeprogrammer "--port=usb1"); I may be misusing it, but anyways worth noticing

I'll keep working on find and fix these issues on my own, but I presume article created (by ST vendor ?) Is slightly off the truth

Regression

  • This is a regression.

Steps to reproduce

Follow the article and try to flash the board

https://docs.zephyrproject.org/latest/boards/st/nucleo_n657x0_q/doc/index.html

Relevant log output

Impact

Not sure

Environment

Not relevant

Additional Context

No response

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions