Skip to main content
Associate II
September 7, 2024
Solved

STM32F105RCT6

in the process of or at least i want to backup the mcu data and transfer it over to another mcu,  i can connect and see the mcu with my pe cyclone fx but when i read and dump the data i get a empty file 768kb.

 

 

S3150800000000000000000000000000000000000000E2
S3150800001000000000000000000000000000000000D2
S3150800002000000000000000000000000000000000C2
S3150800003000000000000000000000000000000000B2
S3150800004000000000000000000000000000000000A2
S315080000500000000000000000000000000000000092
S315080000600000000000000000000000000000000082
S315080000700000000000000000000000000000000072
S315080000800000000000000000000000000000000062
S315080000900000000000000000000000000000000052
S315080000A00000000000000000000000000000000042
S315080000B00000000000000000000000000000000032
S315080000C00000000000000000000000000000000022
S315080000D00000000000000000000000000000000012
S315080000E00000000000000000000000000000000002

This topic has been closed for replies.
TDK
TDKBest answer
September 7, 2024

That would explain what you're seeing. It would help if you told us what the RDP option byte is set at. Shouldn't have to guess.

"If you feel a post has answered your question, please click ""Accept as Solution""."

21 replies

Tesla DeLorean
Guru
September 7, 2024

Not sure what you're looking for from the presentation here.

Can you do this with an ST-LINK and STM32 Cube Programmer?

Any indication of a connection error, failure or protection in place?

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
brt2015Author
Associate II
September 7, 2024

i can connect fine with my pe cyclone fx no errors i don't mind using the stlink i already have if i can get some help on how to set it up to read the target board via pin 1-6. i want to back up all the data on the f105 and put it on another mcu.

mƎALLEm
ST Technical Moderator
September 7, 2024

Hello,


@brt2015 wrote:

in the process of or at least i want to backup the mcu data and transfer it over to another mcu, 


What process did you follow?

 


@brt2015 wrote:

i can connect and see the mcu with my pe cyclone fx


Did you try with reading the content using STM32CubeProgrammer over ST-LINK?

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
brt2015Author
Associate II
September 7, 2024

I have a stm32 nucleo-64 stm32f103 and i tried to use the swd port to connect to the target board via pin 1-6 and could not, is this the correct board do i need another one?

Tesla DeLorean
Guru
September 7, 2024

For the NUCLEO to connect to an external target you must pull the jumpers to disconnect the local target.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
brt2015Author
Associate II
September 7, 2024

i can see and connect to the mcu see the option bytes and dump the flash file just that's its empty and has no data, could it be locked in a away it allows connection in debug mode but not dump the files?

Tesla DeLorean
Guru
September 7, 2024

I'd expect to see data at 0x08000000 if present.

I would expect to see some errors if RDP was enabled.

Being all zeros is odd, does the part work properly otherwise?

Could it have blanked itself? ie aggressive protection mechanism. 

Can you get an image from the vendor?

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
brt2015Author
Associate II
September 7, 2024

what pins do i remove to make it read external target?

st32.jpg

TDK
September 7, 2024

Disconnect both jumpers on CN2. Connect GND/SWDIO/SWCLK between CN4 and your target board. Ensure target board has power. Optionally, also connect VCC and NRST. See nucleo user manual for CN4 pinout.

  • Pin 1: Target VCC
  • Pin 2: SWCLK
  • Pin 3: GND
  • Pin 4: SWDIO
  • Pin 5: NRST
  • Pin 6: SWO

After that connect with STM32CubeProgrammer and observe flash data.

"If you feel a post has answered your question, please click ""Accept as Solution""."
brt2015Author
Associate II
September 7, 2024

so i have both options to power the mcu via the st-link completely via pins 1-6 or externally using the pins for data

TDK
September 7, 2024

You cannot power the board with pin 1 of CN4. It is an input to the st-link.

You must power the board some other way.

"If you feel a post has answered your question, please click ""Accept as Solution""."
TDK
September 7, 2024

Voltage: 0.01 V suggests it isn't powered, or that you don't have power hooked up. It looks hooked up in your pictures.

Is RDP set? Check option bytes in OB tab on left.

"If you feel a post has answered your question, please click ""Accept as Solution""."
brt2015Author
Associate II
September 7, 2024

This is the target board the one that new unlocks 

IMG_6058.jpeg

I went ahead and activated the RDP on this teta board just to see and am getting the same message from the other one so am to assume I just locked the test board , how do I unlock it again ??

TDK
September 7, 2024

Go to option bytes and change RDP to level 0.

"If you feel a post has answered your question, please click ""Accept as Solution""."