ardnew / portenta-tools

Build and debug tools for Arduino Portenta H7
MIT License
10 stars 3 forks source link

Help with corrupted bootloader #1

Open filipwilcz opened 3 years ago

filipwilcz commented 3 years ago

Hi Ardnew, when I want to execute your script I got :"error: missing required file(s)". I would like to ask for your help and thanks for post about portenta h7 programming. Kind regards Filip

ardnew commented 2 years ago

I see, looks like I left some local edits in the script last time it was committed. You probably only need to change the following two lines in flash-bootloader.sh#L17-L18:

#openocd_path="${tools_path}/openocd"
openocd_path="/usr/local/openocd"

to:

openocd_path="${tools_path}/openocd"
#openocd_path="/usr/local/openocd"

I'll go ahead and commit a fix, thanks for the feedback!

filipwilcz commented 2 years ago

Thanks for your help, but still not working. Below logs from console: Setting boot option bytes (boot Cortex-M7, gate Cortex-M4) ... Open On-Chip Debugger 0.11.0+dev-00158-gd3a859cc4-dirty (2021-05-19-17:45) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html Info : auto-selecting first available session transport "hla_swd". To override use 'transport select '. Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD Info : clock speed 1800 kHz Info : STLINK V2J37S7 (API v2) VID:PID 0483:3748 Info : Target voltage: 3.133807 Error: init mode failed (unable to connect to the target)