sp1 board def - #11261
Conversation
…ng, removed unused include from nordic/supervisor/port.c
|
The latest commit brings back it uses |
…ort for 16 bit magic, disable CIRCUITPY_SDCARD_USB on SP-1
|
The latest commit fixes the compile error from a missing It also brings in the |
|
I've done a successful basic test of this branch the SP-1 device now. Initial flash, REPL, LEDs, buttons, a faders are all working as expected. Have not tested audio or emmc with this branch on SP-1 yet. There will need to be some reconciliation between this branch and the emmcio module branch once one or the other is merged. Both this branch and the current emmcio module PR branch have been intentionally separated so as not to rely on each other. But there is still some code needed for using both together. The original PR has code inside of emmcio that is responsible for feeding the watchdog. That needs to come back but it needs to be in a branch where both exist. I'll pick up testing tomorrow with locally merged branches and try out audio and emmc. |
I tried to contain it as much as possible to the board specific folder.
board_early_init()is a new addition that I tried to avoid, but I think is necessary. The bootloader on this device reads buttons using the SAADC and leaves it enabled. My understanding is that this would cause problems before board_init() is run so a new hook needed to be introduced that is earlier thanboard_init().Feeding the watchdog during a first boot before it starts to format the flash filesystem is important as well. Formatting takes long enough that the dog would bite during if it were not first fed until board_init().
This branch is currently untested on hardware. Submitting it now as a draft to open it up for feedback. I am working next on making a local merged branch that includes this board def along with the changes from the other separated PRs to get a build to validate the functionality on hardware.