Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Naming and bin/hex #2

Closed
jcw opened this issue Mar 18, 2018 · 8 comments
Closed

Naming and bin/hex #2

jcw opened this issue Mar 18, 2018 · 8 comments

Comments

@jcw
Copy link

jcw commented Mar 18, 2018

Would it be an idea to also optionally generate .bin and .hex files?

These images can be a great tool to quickly validate the next step, i.e. uploading and running. One approach could be to rename the bin/ directory to build/ (it's not really a "bin" you'd want to add to any PATH env, after all), and then create extra pseudo targets for "bin" and "hex" to build the requested format for all the images.

A full build for testing then becomes this one-liner: make all bin hex

@karlp
Copy link
Owner

karlp commented Mar 19, 2018

I'm not against generating bin's, but I'd like to see more people realise that they can get better behaviour using .elf files, with less error prone steps like remembering what address to flash to. The whole "how to flash" section is the last real piece of this repo, as it's massively openended.

I certainly don't see any reason for both bin and hex :)

@jcw
Copy link
Author

jcw commented Mar 19, 2018

Well, st-flash wants .bin files, wherease stm32flash wants hex files. In GDB, hex is easier than bin.
Sure, there is elf for debugging - but if you want to do over-the-air updates, you want bin.
The address is always the same on stm32.

@karlp
Copy link
Owner

karlp commented Mar 19, 2018

in gdb, you just use elf. also, there's far more than stm32 supported here :) I've got ti, silabs, atmel/microchip parts as well to come in :) And like I said, I'm philosophically opposed to letting people keep using stone age tools :)

@jcw
Copy link
Author

jcw commented Mar 19, 2018

"Stone age tools": that's neither argument nor philosphy, that's opinion. Goodbye.

@jcw jcw closed this as completed Mar 19, 2018
@karlp
Copy link
Owner

karlp commented Mar 19, 2018

Look I'm not against it, I know they're still heavily used, I just want people to know that are are other, arguably better options. Like I said, the whole "how to flash" the files generated here is still a hairy open problem. The boards with integrated debuggers are "easy" but the rest are hairy.

@jcw
Copy link
Author

jcw commented Mar 19, 2018

Your perspective is development, this was about deployment. Let’s not dwell on it, life’s too short.

@karlp
Copy link
Owner

karlp commented Mar 19, 2018

fixed in 31a01d3 thanks for the push

@jcw
Copy link
Author

jcw commented Mar 20, 2018

Thanks. I appreciate your willingness to make such a change despite your reservations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants