Skip to main content
HHuse
Associate II
January 8, 2019
Question

How can I program to flash memory through Boundary-Scan JTAG?

  • January 8, 2019
  • 5 replies
  • 1408 views

I entegrated state machine of JTAG TAP in a mcu for control stm32f103c8t6. It is working well. (IDCODE registers are 0x3ba00477 = CORTEXM3 , 0x16410041 = STM32f103c8 medium lqfp48)

But I haven't found any file for programming flash memory with JTAG.

How must be state-machine sequential?

This topic has been closed for replies.

5 replies

HHuse
HHuseAuthor
Associate II
January 8, 2019

0690X000006Czn9QAC.png

Tesla DeLorean
Guru
January 8, 2019

You have to move a Programming applet, and blocks of data, into the CPUs RAM and execute that, waiting for that to complete and repeating as necessary. ​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
HHuse
HHuseAuthor
Associate II
January 8, 2019

Where can I find a tutorial or pdf for STM32 about it?

Tesla DeLorean
Guru
January 8, 2019

Perhaps start by looking at how to manipulate the ARM core, and running/debugging code. The code you run would be materially the same as that you'd normally write for accessing the flash peripheral and erasing and programming the array. Perhaps review the reference manual. Look at source to tools like OpenOCD.

This type of stuff is typically not provided in a paint-by-numbers format.​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
HHuse
HHuseAuthor
Associate II
January 8, 2019

I tried an Arduino code => http://www.khjk.org/log/2013/aug/jtagbang.html

It is worked for IDCODE, but no information about read/write flash memory.