-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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 issue with ST Nucleo board H745ZI-Q #30566
Comments
Hello erwango, boards/arm/nucleo_h745zi_q/board.cmakeSPDX-License-Identifier: Apache-2.0board_runner_args(jlink "--device=STM32H745ZI" "--speed=4000") include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
|
@vagotec It seems you're using sdk version zephyr-sdk-0.11.4. |
Hello erwango,
|
Is is possible not to shout :-) ? Would you be able to describe exactly the procedure that doesn't work (flash/plugg/unplugg, ...). On my side, I'll have few more tests and get back to you. Likely next week, though |
@vagotec I just had a try this morning and everything works fine on my board. |
Hello Erwan, Thank you very much for your efforts (Thanksssssss) |
That's a relief !! :-) |
Hi,
there is a bug with ST Nucleo H745ZI-Q. The same issue (Ticket:#29732). But the solution does not work.
openocd.cfg
source [find board/st_nucleo_h745zi.cfg]
reset_config srst_only srst_nogate connect_assert_srst
$_CHIPNAME.cpu0 configure -event gdb-attach {
echo "Debugger attaching: halting execution"
reset halt
gdb_breakpoint_override hard
}
$_CHIPNAME.cpu0 configure -event gdb-detach {
echo "Debugger detaching: resuming execution"
resume
}
Application build is ok
run on Hardware not ok (flash)
ERROR:
[ 1%] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[ 2%] Built target parse_syscalls_target
[ 2%] Built target kobj_types_h_target
[ 2%] Built target syscall_list_h_target
[ 3%] Built target driver_validation_h_target
[ 3%] Built target offsets
[ 4%] Built target offsets_h
[ 4%] Built target zephyr_generated_headers
[ 24%] Built target kernel
[ 25%] Built target app
[ 47%] Built target zephyr
[ 48%] Built target linker_script_target
[ 50%] Built target isr_tables
[ 51%] Built target arch__common
[ 59%] Built target arch__arm__core__aarch32
[ 66%] Built target arch__arm__core__aarch32__cortex_m
[ 68%] Built target arch__arm__core__aarch32__cortex_m__mpu
[ 80%] Built target lib__libc__minimal
[ 82%] Built target lib__posix
[ 84%] Built target soc__arm__common__cortex_m
[ 85%] Built target drivers__gpio
[ 87%] Built target drivers__serial
[ 92%] Built target ..__modules__hal__stm32__stm32cube
[ 94%] Built target zephyr_prebuilt
[ 95%] Built target linker_pass_final_script_target
[ 98%] Built target zephyr_final
[100%] Flashing nucleo_h745zi_q_m7
-- west flash: using runner openocd
Open On-Chip Debugger 0.10.0+dev-01341-g580d06d9d-dirty (2020-06-25-12:07)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Warning : hla does not support multicore debugging
Warning : could not use CTI with a single core device, CTI is disabled
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 V3J2M1 (API v3) VID:PID 0483:374E
Info : Target voltage: 3.292615
Info : stm32h7x.cpu0: hardware has 8 breakpoints, 4 watchpoints
Error: mem2array: Read @ 0x5c001004, w=4, cnt=1, failed
Error executing event examine-end on target stm32h7x.cpu0:
/home/sarvg/zephyr-sdk-0.11.4/sysroots/x86_64-pokysdk-linux/usr/share/openocd/scripts/target/stm32h7x.cfg:199: Error:
in procedure 'stm32h7x_dbgmcu_mmw' called at file "/home/sarvg/zephyr-sdk-0.11.4/sysroots/x86_64-pokysdk-linux/usr/share/openocd/scripts/target/stm32h7x.cfg", line 149
in procedure 'stm32h7x_mmw' called at file "/home/sarvg/zephyr-sdk-0.11.4/sysroots/x86_64-pokysdk-linux/usr/share/openocd/scripts/target/stm32h7x.cfg", line 224
in procedure 'stm32h7x_mrw' called at file "/home/sarvg/zephyr-sdk-0.11.4/sysroots/x86_64-pokysdk-linux/usr/share/openocd/scripts/target/stm32h7x.cfg", line 205
at file "/home/sarvg/zephyr-sdk-0.11.4/sysroots/x86_64-pokysdk-linux/usr/share/openocd/scripts/target/stm32h7x.cfg", line 199
Info : Listening on port 3333 for gdb connections
TargetName Type Endian TapName State
0* stm32h7x.cpu0 hla_target little stm32h7x.cpu reset
Error: mem2array: Read @ 0x5c001004, w=4, cnt=1, failed
Error executing event examine-end on target stm32h7x.cpu0:
/home/sarvg/zephyr-sdk-0.11.4/sysroots/x86_64-pokysdk-linux/usr/share/openocd/scripts/target/stm32h7x.cfg:199: Error:
in procedure 'ocd_process_reset'
in procedure 'ocd_process_reset_inner' called at file "embedded:startup.tcl", line 230
in procedure 'stm32h7x_dbgmcu_mmw' called at file "/home/sarvg/zephyr-sdk-0.11.4/sysroots/x86_64-pokysdk-linux/usr/share/openocd/scripts/target/stm32h7x.cfg", line 149
in procedure 'stm32h7x_mmw' called at file "/home/sarvg/zephyr-sdk-0.11.4/sysroots/x86_64-pokysdk-linux/usr/share/openocd/scripts/target/stm32h7x.cfg", line 224
in procedure 'stm32h7x_mrw' called at file "/home/sarvg/zephyr-sdk-0.11.4/sysroots/x86_64-pokysdk-linux/usr/share/openocd/scripts/target/stm32h7x.cfg", line 205
at file "/home/sarvg/zephyr-sdk-0.11.4/sysroots/x86_64-pokysdk-linux/usr/share/openocd/scripts/target/stm32h7x.cfg", line 199
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0802c410 msp: 0x240090f0
16440 bytes written at address 0x08000000
292 bytes written at address 0x08004038
downloaded 16732 bytes in 0.206083s (79.288 KiB/s)
shutdown command invoked
[100%] Built target flash
Environment:
OS: Linux, ubuntu 20.04
Toolchain (Zephyr SDK: 11.0.4) and Eclipse Plug-In (Ver.: Version: 0.2.99.202009250453)
The text was updated successfully, but these errors were encountered: