Programming secondary chip using SWD interface
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-18 7:00 AM
Hi
I have a chip in main board that can be programmed using SWD interface.
- Can I use the SWD of the STM32F407 to program another chip (and not just for programming and debugging the STM32) ?
- If so - Are there any HAL functions ?
Thanks
- Labels:
-
STM32F4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-18 5: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
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-19 4: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)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-19 7:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-19 8: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).
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-19 8:56 AM
Thematically similar https://community.st.com/s/question/0D53W000019DrSlSAK/flash-loader-with-another-mcu
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-19 9:26 AM
Yes, you are right

- « Previous
-
- 1
- 2
- Next »