On 2024-09-27 09:14:33, Nathan Hartman wrote:
> I just had an idea that it would be neat to write a utility, which could
> live under 'tools' (to be run on a developer machine) that would analyze
> the current configuration and automatically generate the correct openocd
> and gdb incantations. I haven't thought this through yet, so I don't know
> if it's feasible and what might be involved, but I thought I'd mention it
> here as food for thought.
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.

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 ;)

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

-- 
.-----------------.-------------------.----------------------.-----------------.
| 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 |
`----------------------^--------------^----------------------^-----------------'

Attachment: signature.asc
Description: PGP signature

Reply via email to