On 2024-09-26 21:58:38, Matteo Golin wrote: > Hello all, > We figured we should check here first if anyone who had > experimented with STM32 chips knows offhand whether or not it's > possible to program over a USB interface, how to do it with the > NuttX build environment, or if it requires additional hardware. Hi, you should be able to flash and debug board via onboard stlink. All nucleos should have built-in stlink I think. So just connect nucleo via usb and check in lsusb if you have any stlink device. It should be visible like "STMicroelectronics STLINK-V3"
I flash my boards with openocd: openocd -f interface/stlink.cfg -f target/stm32f3x.cfg -c 'program nuttx.bin 0x08000000' You will need to change your target, there is target/stm32f7x.cfg and target/stm32h7x.cfg already in the openocd. I am not sure if start of flash is 0x08000000 on f7 and h7, but I suppose it should be. This command will leave openocd opened with gdb server so you can start debugging it anytime you want with: arm-none-eabi-gdb nuttx "target remote 127.0.0.1:3333" -- .-----------------.-------------------.----------------------.-----------------. | Michal Lyszczek | Embedded C, Linux | Company Address | .-. opensource | | +48 727 564 419 | Software Engineer | Akacjowa 10a; 55-330 | oo| supporter | | https://bofc.pl `----.--------------: Brzezinka Sredzka PL | /`'\ & | | GPG FF1EBFE7E3A974B1 | Bits of Code | NIP: 813 349 58 78 |(\_;/) programer | `----------------------^--------------^----------------------^-----------------'
signature.asc
Description: PGP signature