Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added JTAG2SWD sequence, connects under RESET as ST-LINKV 2 #6

Closed
wants to merge 2 commits into from

Conversation

FMode
Copy link

@FMode FMode commented May 5, 2024

a timeout needs to be added

@Murakhovskyi
Copy link

Has anything changed regarding the connection? We connect RESET_Pin 27(NRST PIN 7 on LQFP64)
PWR_Pin 26
SWDIO_Pin 14
SWCLK_Pin 15
GND is not needed?
Sorry for the banal questions, I’m working on something a little different, but in general, I need to backup Flash and transfer it to another one of the same kind.
I am working with STM32F030CC

@nic nic requested a review from racerxdl May 13, 2024 18:05
@Murakhovskyi
Copy link

Your option gets stuck on Send anything to start...
Send anything to start...
Send anything to start...
Starting

MCU STM32F030CCT6

@FMode
Copy link
Author

FMode commented May 14, 2024

GND is needed anytime. I did not change pins (please look into code). But I change RESET from Output to Input because my target resets in a loop. I am waiting unlimited for the reset state. As written as TODO: a wait timeout (1-5 sec?) should be implemented. So if not needed comment out the waiting. A development/build environment is needed anyway because you need to adapt the memory addresses for your needs.

@Murakhovskyi
Copy link

GND is needed anytime. I did not change pins (please look into code). But I change RESET from Output to Input because my target resets in a loop. I am waiting unlimited for the reset state. As written as TODO: a wait timeout (1-5 sec?) should be implemented. So if not needed comment out the waiting. A development/build environment is needed anyway because you need to adapt the memory addresses for your needs.

GND is needed anytime. I did not change pins (please look into code). But I change RESET from Output to Input because my target resets in a loop. I am waiting unlimited for the reset state. As written as TODO: a wait timeout (1-5 sec?) should be implemented. So if not needed comment out the waiting. A development/build environment is needed anyway because you need to adapt the memory addresses for your needs.

Good afternoon, in order to eliminate any factors that could interfere, I desoldered the chip (STM32F091) and soldered it directly to the LQFP64 legs:
64.VDD - 26 Pin PWR Pico
18.VSS - 28 Pin GND Pico
7.NRST - 27 Pin RESET Pico
46.PA13(SWDIO) - 14 Pin SWDIO Pico
49.PA14(SWCLK) - 15 Pin SWCLK Pico

In the original version of racerxdl, I have error 244 (E0), in your version, it just freezes after Starting.
I need this whole idea to resurrect the device whose MCU burned out.

Tell me what I'm doing wrong. I'll be very grateful.

@FMode
Copy link
Author

FMode commented May 14, 2024

Good afternoon, in order to eliminate any factors that could interfere, I desoldered the chip (STM32F091) and soldered it directly to the LQFP64 legs: 64.VDD - 26 Pin PWR Pico 18.VSS - 28 Pin GND Pico 7.NRST - 27 Pin RESET Pico 46.PA13(SWDIO) - 14 Pin SWDIO Pico 49.PA14(SWCLK) - 15 Pin SWCLK Pico

In the original version of racerxdl, I have error 244 (E0), in your version, it just freezes after Starting. I need this whole idea to resurrect the device whose MCU burned out.

Tell me what I'm doing wrong. I'll be very grateful.

It seems your cpu is not resetting...
Just disable my waiting for a reset. (2 while loops)

while(digitalRead(TARGET_RESET_Pin) != LOW){};  
while(digitalRead(TARGET_RESET_Pin) == LOW){};

The JTAG2SWD command does not harm you it only makes you a bit slower if you really dont need it.
I removed the driving of the RESET line to high because this can "pseudo-power" a device.

@FMode FMode closed this Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants