-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[refactoring] Configurations are in the sources and not in a separate file #237
Comments
I agree on that. This is not a good practice. |
Here is an example I just bumped into: |
No. I think "chipid.c" should remain having the same interface towards the rest of "stlink". I've been slowly thinking about this for a few days now. AVRDUDE has this one big file with all the chips and stuff in it. Not good. What we should do is to make a directory with a STM32F0x2.chip file in there that describes the F0x2 chips. Generally just one distinguishable chip per file. So suppose that a new STM32F826 comes out. Now people can just share the new description file and put it in the right place and be done with it. Editing the avrdude.conf file is a hassle. edit: Oh. I seem to have retyped some of my opening-post here... |
I did not mean that we should get rid of |
@Ant-ON Maybe your thoughts to refactor |
@Nightwalker-87 I've seen it, but there is no plan to implement it yet. I would only like to expand the list of chips by add the missing ones. |
Yeah, that's just fine. I expect things to calm down a bit anyway once the release is ready... |
preliminary code written, pull request created, "for discussion". |
Things like the memory map, and the stuff to send to GDB are included in the source. This means that when a new chip comes out, you have to edit the source to be able to work with it. I had that yesterday when I needed to patch the source for my 030F chip (and I didn't notice until later that "git pull" would've worked).
Issue #218 is the same: new chip, slightly different -> needs source code patch.
Suggestion:
The text was updated successfully, but these errors were encountered: