0 Replies Latest reply on Aug 18, 2017 2:11 PM by nick.johnson

    Bootloader support for the SCB UART on PSoC 4

    nick.johnson

       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.

         

      To use:

         
            
      1. Add a bootloader component to your design. Call it 'Bootloader'
      2.     
      3. Add an SCB UART component to your design. Call it 'UART'
      4.     
      5. Paste the code from the gist into your main.py (or anywhere else it'll get compiled and linked).
      6.     
      7. Enjoy!
      8.    
         

      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.