-
-
Notifications
You must be signed in to change notification settings - Fork 188
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
Add JLink To Portenta Programmers; Add pinPeripheral() (wiring_private.c - note WIP) #28
base: main
Are you sure you want to change the base?
Conversation
… convenience at this point to be put here --- jcw
…P! Proceed with the appropriate caution --- jcw
A quick start guide that should be helpful to some is here: |
FYI: I was able to restore bootloader via: C:\tmp>c:\Users\john\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino13/bin/openocd.exe -d2 -s C:\Users\john\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino13/share/openocd/scripts/ -f interface/jlink.cfg -f target/stm32h7x_dual_bank.cfg -c "telnet_port disabled; init; stm32h7x option_write 0 0x01c 0xb86aaf0; program {C:\Users\john\AppData\Local\Arduino15\packages\arduino-beta\hardware\mbed\1.2.1/bootloaders\PORTENTA_H7\portentah7_bootloader_mbed_hs**_v2**.elf}; reset run; shutdown" swd Note: You need to connect a ground from the Portenta to the programming header to get rid of noisy ground potential issue. Regards, |
Memory usage change @ ac6a5f1
Click for full report table
Click for full report CSV
|
…d right now, will be fixed to make compatible with H7 --- jcw
Memory usage change @ bbab064
Click for full report table
Click for full report CSV
|
…d right now, will be fixed to make compatible with H7 --- jcw
Oops - edited common.h - restoring api 'link' --- jcw
…thub complaining about stashing changes --- jcw
Memory usage change @ 8f623f9
Click for full report table
Click for full report CSV
|
Memory usage change @ 955a927
Click for full report table
Click for full report CSV
|
Just wanted to leave a comment - I had to do this procedure pretty much exactly the same to get the latest bootloader onto a Portenta M7 I purchased recently: C:\tmp>C:\Users\john\Arduino\newDontUsearduino\tools\openocd\0.10.0-arduino13\bin/openocd.exe -d2 -s C:\Users\john\Arduino\newDontUsearduino\tools\openocd\0.10.0-arduino13/share/openocd/scripts/ -f interface/jlink.cfg -f target/stm32h7x_dual_bank.cfg -c "telnet_port disabled; init; stm32h7x option_write 0 0x01c 0xb86aaf0; program {C:\Users\john\AppData\Local\Arduino15\packages\arduinobeta\hardware\mbed_portenta\2.4.1/bootloaders\PORTENTA_H7\portentah7_bootloader_mbed_hs_v2.elf}; reset run; shutdown" Info : J-Trace PRO V1 Cortex-M compiled Jul 28 2021 10:11:34 This time I externally attached +3.3V to pin 12 of the Arduino compatible header (with the appropriate current limiting). I thought this would fix this problem I'm seeing: Compilation complete. Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc. Warning: Invalid DFU suffix signature Also - I was wondering - why is only the 3V1 rail active when the OLoD (Orange LED of DOOM) is on? Why isn't also the 3.3V rail active? You can't use the JTAG/SWD adapter without it. Thanks, |
To add the Segger JLink family to the list of programmers for the Portenta H7 target. The Segger JLink will be able to be used with OpenOCD to run the Burn Bootloader command from the 1.8.13 (Current IDE) for Arduino. I'm not 100% sure how to invoke this yet from the new Pro IDE but imagine a .json file can be made (possibly as a task) that can do this as well.
Please proceed with the appropriate caution if you are going to try this.
Note - in the fork - please only use
664f83a
as the UDP/Multicast issue has been fixed and this pull request is only to currently update:
boards.txt
platform.txt
and
programmers.txt
Note once those have been updated and the Arduino IDE has been restarted, the programmer should show up in the menu once the Portenta has been selected (1.8.13 IDE currently).
Here's an example of an output that has successfully connected:
C:\Users\john>C:\Users\john\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino13/bin/openocd.exe -d2 -s C:\Users\john\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino13/share/openocd/scripts/ -f interface/jlink.cfg -f target/stm32h7x_dual_bank.cfg -c "telnet_port disabled; tcl_port disabled"
Open On-Chip Debugger 0.10.0+dev-g7c88e76a7-dirty (2020-07-06-09:59)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
debug_level: 2
swd
Info : tcl server disabled
Info : telnet server disabled
Info : J-Trace PRO V1 Cortex-M compiled Jun 9 2020 13:39:24
Info : Hardware version: 1.00
Info : VTarget = 3.288 V
Info : clock speed 1800 kHz
Info : SWD DPIDR 0x6ba02477
Info : stm32h7x.cpu0: hardware has 0 breakpoints, 0 watchpoints
Info : starting gdb server for stm32h7x.cpu0 on 2331
Info : Listening on port 2331 for gdb connections
shutdown command invoked
The USB drivers for JLink have to be replaced with WINUSB - I will add a quick-start guide to this pull request showing the basic steps to getting that functional (currently on win10). The Zadig utility is one quick way of doing that.
Thanks,
John