-
Notifications
You must be signed in to change notification settings - Fork 2.1k
boards: Split off 128KiB version of bl*pill #12169
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
Conversation
@cladmi: I implemented the split of boards as suggested in the email list |
Murdock thinks you should update some |
@maribu Thank you, I will look at it :) @MrKevinWeiss you are a big user of the |
From a first quick look, I think the The easy ones are:
For |
Slander and lies!!! 😆 I use bluepills for PHiLIP but not in RIOT. I do, however, have them and would be happy to help test and give an opinion. |
8583576
to
0ab4718
Compare
@cladmi: I rewrote the whole thing and moved more code to the common module, which I renamed to |
Overall I like the idea. I don't think I have a 128KB bluepill but I can look around. |
All but the BluePill I gave you in Helsinki have 128 KiB ;-) They just claim to only have 64 KiB ;-) With the development version of OpenOCD you'll be able to flash them with firmwares up to 128KiB out of the box. (Hopefully they do a release soon...) |
Ahh I thought that was the 32KB one. Perfect! such beautiful LEDs 😆 |
I take a look at the updated version today. |
Tested on the bluepills! I will wait to see if @cladmi has any additional comments on the code design. |
Like the regular bluepills, it only claims to have half of the flash it is actually equipped with. So regular BluePills come with 128KiB, but report 64KiB to the programmer. The beautiful LED BluePill comes with 64 KiB flash, but reports only 32 KiB to the programmer. |
This indeed solves the issue I raised on the mailing list with the special The refactoring with the If I understand correctly, the If you want to make it a bit more clear and remove duplication of the value in the blackpill* boards, you could define both values in Building The handling for The documentation moved to However, I am not sure the common naming works, |
Some optional personal preference, I would prefer to default definition with It is a minor thing, but reflects a bit more how "common" boards are mainly currently implemented as a list of directories that are evaluated one after the other. And the "common" only sets if it was not overwritten by a main board. This is nitpicking though, and would currently not change anything. |
This is looking good, as far as I can tell @cladmi comments where addressed and @MrKevinWeiss tested this, any reasons to keep staling? |
OK. Then squash, rebase, and update board insufficient memory? |
(Updating the board insufficient memory lists will result in merge conflicts with a chance of 99%, as the makefiles are touched often to update just that list) |
I think it would be a good idea to add the RAM and ROM size to |
@benpicco: I'm all in for reducing maintenance effort here. There is already an issue discussing ways to get rid of these pain-in-the-ass lists, but with no conclusion yet. The problem with with the application-wise RAM/ROM requirements is, that these not only greatly depend on the architecture (e.g. in AVR all |
Well then, just go ahead and squash (and update the insufficient memory lists while doing so). |
rebased |
- Created new `bluepill-128kib` as 128KiB version of the `bluepill` - Created new `blackpill-128kib` as 128KiB version of the `blackpill` - Updated `openocd.cfg` to allow flashing 128KiB of ROM
squashed |
Added new boards bluepill-128kib and blackpill-128kib where needed.
Linking works for both blackpill and bluepill
Added new blackpill-128kib and bluepill-128kib to BOARD_INSUFFICIENT_MEMORY and BOARD_WHITELIST where needed.
I just tested this with a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Murdock is happy and this makes using the 128k versions of those boards much more convenient!
Let's go with this one. I'll open just after the change about the definition of CPU/CPU_MODEL in |
Thanks everyone for the review and help! |
Contribution description
bluepill-128kib
as 128KiB version of thebluepill
blackpill-128kib
as 128KiB version of theblackpill
openocd.cfg
to allow flashing 128KiB of ROMTesting procedure
Run and flash one app with ROM <= 64 KiB and one with with 64 KiB < ROM <= 128KiB.
On the
bluepill
andblackpill
the first should flash and run, but the second should neither flash nor run. (You can build withmake CPU_MODULE=stm32f103cb BOARD=bluepill
to manually allow compiling with up to 128KiB ROM, but flashing should not work.)On the
bluepill-128kib
and on theblackpill-128kib
, both apps should compile and flash.Notes:
bluepill-128kib
orblackpill-128kib
Issues/PRs references
If merged, #10902 is no longer needed, and thus closes #10902 ;)