-
Notifications
You must be signed in to change notification settings - Fork 70
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
Flashing the bootloader using OpenOCD #43
Comments
Also I found that:
If that's true, I may have corrupted the NVM so the bootloader crashes. Maybe I need to fix that? |
You can use J-link connect Nano V3's SWD interface |
I already have connected to the SWD interface as I describe above, the question is what's the correct offset to flash the bootloader and the actual running firmware |
Same Problem here, i try to flash Klipper via USB Stick. But the FW update stops at 100% with beep. After power off/on the USB is dead / tft dark |
this needs a deep dive into the MCU's datasheet and I'm not sure that I have the time to do that. If you have any lead, leave it here, just in case |
MKS Robin Nano address |
@dzervas did you get it to work? |
didn't have time to look into it yet - maybe on the weekend I'll give it a go |
@dzervas were you able to fix it via openocd? my brand new board doesn't seem to work at all, I tried to program marlin and the bootloader but nothing happens. |
It happened the same with me, I`m unabled to update the firmware... in platform.io I search for devices, the COM port where board is connected appears in the list, but nothing happen when I try to update. |
@dzervas @baiak @iNDeX999 I was able to fix the board via SWD using my Pi 4 #48 (comment) |
@tiagooliveira95 does the device something "special" to come alive? does it need 12v or 24v or should it be able to boot just from USB power? Do you see the device as a USB peripheral? |
OMG it worked. I then flash the "bootloader" files via the SDCard and it worked |
Hi, my board is dead, got an st-link v2 device but I can't connect, Did you fixed it with raspberry or st-link v2? I have exactly the same question as you:
Thank you for your help. |
Just for the record if anyone experience the same situation, I was able to fix it with stlink v2 and stlink cube programmer running on ubuntu linux 22.04, I tried first on windows without success, tried with openocd running on linux without success because openocd have an issue with linux newest USB library, cube programmer on linux worked like a charm. 3.3v drive IC power jumper was selected on card and 3.3V power and ground was provided through st link device DIO,CLK, RST cables connected. Cube programmer connection settings: After connection to the board go to Erasing & Programming section, browse for the bootloader file, make sure that starting address is 0x08000000 and click "Start Programming" button After bootloader is downloaded to the card, firmware upgrade can be done via USB or SD card I want to thank @tiagooliveira95 and @dzervas for posting their solutions because they shed some light on my way to fix my board, |
The board is completely dead to me after trying to flash Klipper through the SD. I can't see anything on USB.
I've attached ST-Link v2 and trying to flash the
Beep
firmware through OpenOCD:But nothing changes.
Any pointers? Maybe the offset it incorrect? Maybe the bootloader is encrypted? (#22 ) I can't find any alternative bootloader (stm32 DFU maybe? or HID?)
@whhx-open you seem to know your way around the board
The text was updated successfully, but these errors were encountered: