Bootloader support for the SCB UART on PSoC 4 | Cypress Semiconductor
Bootloader support for the SCB UART on PSoC 4
So, implementing a custom bootloader interface to use the SCB UART turns out to be really simple - just a few glue functions. I've put them up on gist, here.
- Add a bootloader component to your design. Call it 'Bootloader'
- Add an SCB UART component to your design. Call it 'UART'
- Paste the code from the gist into your main.py (or anywhere else it'll get compiled and linked).
And just as an extra bonus, here's how to enable a 'recovery mode' that boots into the bootloader if you hold in a button for 2 seconds, but otherwise goes straight to user code.