cancel
Showing results for 
Search instead for 
Did you mean: 

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

HHuse
Associate II

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?

5 REPLIES 5
HHuse
Associate II

0690X000006Czn9QAC.png

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
Up vote any posts that you find helpful, it shows what's working..
HHuse
Associate II

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

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
Up vote any posts that you find helpful, it shows what's working..
HHuse
Associate II

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.