Closed thejpster closed 1 year ago
Maybe we should be more robust about our start-up process.
I suppose that after an RP2040 debug reset, the reset of the PCB has not been reset, including the MCP23S17. So maybe that needs to be put into a reset start on start-up.
Replacing wfi
with 1,000,000 nops makes everything work again. The the issue is probably setting up the SIO and/or NVIC to generate interrupts when the IRQ input changes.
I have a Picoscope capture where the IRQ input to the RP2040 goes low and nothing happens.
Does it work reliably after a power cycle? I'm suspecting that the reset done after flashing only resets parts of the chip.
So I forgot to enable interrupts. And it was wfe not wfi, so that mattered.
When flashing the RP2040 with
probe-run
I observe a couple of different outcomes:Start-up beeps
You seem to be able to trigger case (2) by using
DEFMT_LOG=info
. My default ofDEFMT_LOG=debug
gets you case (1).Keyboard