On Fri, Sep 27, 2024 at 4:17 PM <michal.lyszc...@bofc.pl> wrote:
> On 2024-09-27 09:14:33, Nathan Hartman wrote:
> I don't like zephyr, but 'west flash' is a good thing they did. I proposed
> this in the past when there was a discussion about how to make nuttx more
> popular.
>
> You could create phony target 'make flash', which could propagate it to
> make.def in board directory. I think something like that is mandatory if
> nuttx should be more popular. To be more popular it must get more user
> friendly. Not everyone wants to fight with bootloader/flashing. They just
> want to realize their idea - and not learn build system and flashing tools.

It is here already, at least in ESP32 family, probably needs to be
implemented for STM32.

Also ESP32 has esptool that covers almost all configurations.. while
different flashing configurations may be used for STM32 (i.e. openocd
vs dfu).. but it it still possible :-)


> I also hate to say that - but if you are commited to cmake (ugh) it might
> be good idea to drop raw Makefile support. This just makes things more
> complicated for both maintaners and end user - nuttx is giving kinda useless
> choice for the end user here I think ;)

Original approach was with Make and I use this one. CMake is currently
still under active development. Two choices whatever suits best :-)

> > Off the top of my head I don't remember whether the STMF7 family has a ROM
> > bootloader. If it does, you probably need to pay attention to a BOOT pin on
> > the chip.
> Nothing wrong in having 2 bootloaders. On chip bootloaders are often very
> limited and are more suited for recovery than final product usage. Custom
> bootloader can be relatively easily configure to - for example - fetch image
> from tftp and boot it - awesome for development.

The make flash part could use flags to select DFU or OpenOCD tool :-)

ps/2: Thanks Michal for the hint on how to flash STM32F3 with OpenOCD!
I have crerated PR with documentation update. If you have other hints
just let us know and we will update the documentation :-)

-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info

Reply via email to