2021-10-18 07:00 AM
Hi
I have a chip in main board that can be programmed using SWD interface.
Thanks
2021-10-18 05:00 PM
Indeed, but it's pretty involved, with a complete firmware to do it, and host side windows code to boot.
JTAG and scan chains aren't inherently complex concepts, but its the details, sequences and code injection. You have to be able to stage the update image, and manage everything as a bit stream. You could use QSPI-Flash, USB-Flash or MicroSD cards for large images.
Perhaps as Andrew suggests look at the CMSIS-DAP, and also the BIack Magic probe
Then compare that with say an implementation for X-Modem, something one should be able to white-board the mechanics for in an interview
2021-10-19 04:36 AM
Thanks to all of you for your answers.
It is not urgent task, but I have to select the pinout to the board.
I will try both options (using the SWD of the STM + using simple GPIOs for bit-banging)
2021-10-19 07:06 AM
2021-10-19 08:55 AM
As @TDK says, using a bootloader would be the conventional - and (probably) far easier - approach.
@Ofer "simple GPIOs for bit-banding (sic?)"
I think you mean bit-banging ?
Bit Banding is something different: https://developer.arm.com/documentation/ddi0337/h/Behcjiic (you might use Bit Banding to do your bit-banging).
2021-10-19 08:56 AM
Thematically similar https://community.st.com/s/question/0D53W000019DrSlSAK/flash-loader-with-another-mcu
2021-10-19 09:26 AM
Yes, you are right