-
Notifications
You must be signed in to change notification settings - Fork 1.3k
STM32: Meowbit support #2404
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
STM32: Meowbit support #2404
Conversation
This reverts commit 5b70fa0.
This is almost done with two remaining issues.
Until then it might be a good idea to have two different build options, one for SWD with an internal filesystem and Display access, and another that supports the UF2 bootloader with external flash but disables the display until we can fix the flash/display restart conflict. |
How are you initializing the display? Is an exception printed to the serial output? |
It does not get that far (serial output). The code is:
I'll see like one or two hellos and then it does a soft reboot
after which it enters the crashed state. |
Detailed repro info:
|
This PR is now ready for testing! See updated description for bugfix details. Screen test python: |
tested by creating display and printing out sensor data - works great, very stable! |
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.
Just a few things. Thanks for getting this going!
@xmeow I'd still be interested in what the 0x194 value is in the linker file I notice it isn't in https://github.com/mmoskal/uf2-stm32f, and that value isn't referenced in your source code anywhere else. Do you have any comment on what that's being used for? |
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.
I'd like to see the display initialized automatically. I saw your ping on Discord about the spi bus not being initialized. We can change things so it is. :-)
- Add a call from main to
board_init
directly here: https://github.com/adafruit/circuitpython/blob/master/main.c#L427 This way the filesystem will be initialized. - Remove all
board_init
calls from each port'sport_init
.board_init
is only ever used for initializing displays so waiting is totally fine.
@tannewt I've made the board change, and it works for my builds, but I'm making note here of all boards that include content in board_init that isn't screen related. I don't own any of these, and they should probably get tested for any unexpected breakage.
|
capablerobot_usbhub is now empty. The three imx ones are super alpha and I don't think they will break. @dhalbert would be able to tell about the arduino nano. |
I think this should be good to go now. |
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.
So close! I think you missed removing board_init
from the stm32 port.
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.
Yay! Looks great! Thank you!
This PR adds support for the Meowbit board by Kittenbot. Adds definitions for the STM32F401RE, a new MCU for the port. Requires #2395 and #2379. Resolves #2196, resolves #2145.
Bugs fixed as a part of debugging this board:
Still has a number of todos left: