I'm in the process of developing a device driven by an STM32F030C8T6.
I want this to be programmable over USB (similar to ST-Link) to make development easier.
I'm led to believe that ARM DAPLink provides this sort of functionality.
My understanding of the process to integrate this is as follows:
- Design my main circuit (including the ARM chip (U1) for that).
- Add a secondary ARM chip (U2) to act as the DAPLink controller.
- Connect two GPIO pins of U2 to the
SWD_IOpins of U1.
- Connect U2 to a USB interface
- Flash DAPLink to U2 with a SWD Programmer
- Flash application to U1 via USB and U2.
However, the documentation doesn't seem to be the best, and I can't find a reference implementation so, I'd apprreciate an answer that covers the following:
- Is the above procedure roughly correct? If not, the premise of this whole question is wrong...
- Is there a minimal reference implementation I can use for Step 2 above?
- Is Step 5 above permanent, or would it need to be repeated each time I power-cycle the device? I'm not sure if ST32s have non-volatile storage on-board.