Yatharth Agarwal
02/06/2023, 6:23 PMTim Edwards
02/06/2023, 8:23 PMcaravel_hkflash.py
, then do the following:
(1) Hold down the reset button
(2) Power cycle the device by unplugging/replugging the USB (do not let go of the reset button!)
(3) Run caravel_hkflash.py
. Once the program is communicating with Caravel, it will use an internal reset via the SPI to hold the processor in reset, so once you see text coming back from the chip, you can finally let go of the reset button.caravel_hkdebug.py
after doing the same power cycle + holding down the reset button. Once you get the debug menu, use it to put the processor into reset, then you can let go of the reset button.make flash
in the nucleo/
directory for use with the Nucleo board; it's just the caravel_hkflash.py
code slightly rewritten to set it up on the Nucleo. I have been able to read and write registers using the housekeeping SPI by making calls directly from micropython using mpremote
on the Nucleo.