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

STLINK_SWD_AP_WDATA_ERROR on NUCLEO-H7S3L8 board #8

Open
HiFiPhile opened this issue Jan 24, 2025 · 2 comments
Open

STLINK_SWD_AP_WDATA_ERROR on NUCLEO-H7S3L8 board #8

HiFiPhile opened this issue Jan 24, 2025 · 2 comments

Comments

@HiFiPhile
Copy link

Hi, I'm trying to view RTT output on NUCLEO-H7S3L8 board (STM32H7S3L8) without success, feel free if you need more information.

Direct connection:

./windows_bin_64/strtt.exe -v 4 -ramstart 0x24000000 -ramsize 0x4000
Debug: 1 0 stlink.c:4163 stlink_open(): stlink_open
Debug: 2 1 stlink.c:4177 stlink_open(): transport: 4 vid: 0x0483 pid: 0x3748 serial: not provided
Debug: 3 3 stlink.c:4177 stlink_open(): transport: 4 vid: 0x0483 pid: 0x374b serial: not provided
Debug: 4 4 stlink.c:4177 stlink_open(): transport: 4 vid: 0x0483 pid: 0x3752 serial: not provided
Debug: 5 6 stlink.c:4177 stlink_open(): transport: 4 vid: 0x0483 pid: 0x374d serial: not provided
Debug: 6 7 stlink.c:4177 stlink_open(): transport: 4 vid: 0x0483 pid: 0x374e serial: not provided
Debug: 7 9 stlink.c:4177 stlink_open(): transport: 4 vid: 0x0483 pid: 0x374f serial: not provided
Debug: 8 10 stlink.c:4177 stlink_open(): transport: 4 vid: 0x0483 pid: 0x3753 serial: not provided
Debug: 9 12 stlink.c:4177 stlink_open(): transport: 4 vid: 0x0483 pid: 0x3754 serial: not provided
Info : 10 32 stlink.c:1507 stlink_usb_version(): STLINK V3J15M7 (API v3) VID:PID 0483:3754
Debug: 11 34 stlink.c:1735 stlink_usb_exit_mode(): MODE: 0x02
Info : 12 35 stlink.c:1543 stlink_usb_check_voltage(): Target voltage: 3.271571
Debug: 13 37 stlink.c:1808 stlink_usb_init_mode(): MODE: 0x01
Debug: 14 38 stlink.c:3479 stlink_dump_speed_map(): Supported clock speeds are:
Debug: 15 39 stlink.c:3482 stlink_dump_speed_map(): 24000 kHz
Debug: 16 40 stlink.c:3482 stlink_dump_speed_map(): 8000 kHz
Debug: 17 41 stlink.c:3482 stlink_dump_speed_map(): 3300 kHz
Debug: 18 42 stlink.c:3482 stlink_dump_speed_map(): 1000 kHz
Debug: 19 43 stlink.c:3482 stlink_dump_speed_map(): 200 kHz
Debug: 20 44 stlink.c:3482 stlink_dump_speed_map(): 50 kHz
Debug: 21 45 stlink.c:3482 stlink_dump_speed_map(): 5 kHz
Debug: 22 47 stlink.c:1876 stlink_usb_init_mode(): MODE: 0x02
Debug: 23 48 stlink.c:4356 stlink_usb_init_access_port(): init ap_num = 0
Debug: 24 49 stlink.c:4503 stlink_usb_open_ap(): AP 0 enabled
Debug: 25 50 stlink.c:1180 stlink_usb_error_check(): STLINK_SWD_AP_WDATA_ERROR
Debug: 26 52 stlink.c:4261 stlink_open(): Using TAR autoincrement: 1024
Debug: 27 94 stlink.c:1162 stlink_usb_error_check(): STLINK_SWD_AP_FAULT
Error: 28 95 strttapp.cpp:142 main(): failed to find RTT (-4)

TCP connection:

./windows_bin_64/strtt.exe -v 4 -ramstart 0x24000000 -ramsize 0x4000 -tcp
Debug: 1 0 stlink.c:4163 stlink_open(): stlink_open
Debug: 2 1 stlink.c:4177 stlink_open(): transport: 4 vid: 0x0483 pid: 0x3748 serial: not provided
Debug: 3 2 stlink.c:4177 stlink_open(): transport: 4 vid: 0x0483 pid: 0x374b serial: not provided
Debug: 4 4 stlink.c:4177 stlink_open(): transport: 4 vid: 0x0483 pid: 0x3752 serial: not provided
Debug: 5 5 stlink.c:4177 stlink_open(): transport: 4 vid: 0x0483 pid: 0x374d serial: not provided
Debug: 6 7 stlink.c:4177 stlink_open(): transport: 4 vid: 0x0483 pid: 0x374e serial: not provided
Debug: 7 9 stlink.c:4177 stlink_open(): transport: 4 vid: 0x0483 pid: 0x374f serial: not provided
Debug: 8 10 stlink.c:4177 stlink_open(): transport: 4 vid: 0x0483 pid: 0x3753 serial: not provided
Debug: 9 12 stlink.c:4177 stlink_open(): transport: 4 vid: 0x0483 pid: 0x3754 serial: not provided
Debug: 10 14 stlink.c:3936 stlink_tcp_open(): socket : d8
Info : 11 15 stlink.c:3988 stlink_tcp_open(): connected to stlink-server
Info : 12 17 stlink.c:4005 stlink_tcp_open(): stlink-server API v3, version 2.1.1
Debug: 13 35 stlink.c:4034 stlink_tcp_open(): 1 ST-LINK detected
Debug: 14 36 stlink.c:4129 stlink_tcp_open(): transport: vid: 0x0483 pid: 0x3754 serial: 003F00463033511935393935
Info : 15 39 stlink.c:1507 stlink_usb_version(): STLINK V3J15M7 (API v3) VID:PID 0483:3754
Debug: 16 40 stlink.c:1735 stlink_usb_exit_mode(): MODE: 0x02
Info : 17 41 stlink.c:1543 stlink_usb_check_voltage(): Target voltage: 3.273161
Debug: 18 43 stlink.c:1808 stlink_usb_init_mode(): MODE: 0x02
Debug: 19 44 stlink.c:3479 stlink_dump_speed_map(): Supported clock speeds are:
Debug: 20 45 stlink.c:3482 stlink_dump_speed_map(): 24000 kHz
Debug: 21 46 stlink.c:3482 stlink_dump_speed_map(): 8000 kHz
Debug: 22 47 stlink.c:3482 stlink_dump_speed_map(): 3300 kHz
Debug: 23 48 stlink.c:3482 stlink_dump_speed_map(): 1000 kHz
Debug: 24 49 stlink.c:3482 stlink_dump_speed_map(): 200 kHz
Debug: 25 50 stlink.c:3482 stlink_dump_speed_map(): 50 kHz
Debug: 26 51 stlink.c:3482 stlink_dump_speed_map(): 5 kHz
Debug: 27 53 stlink.c:1876 stlink_usb_init_mode(): MODE: 0x02
Debug: 28 54 stlink.c:4356 stlink_usb_init_access_port(): init ap_num = 0
Debug: 29 55 stlink.c:4503 stlink_usb_open_ap(): AP 0 enabled
Debug: 30 56 stlink.c:1180 stlink_usb_error_check(): STLINK_SWD_AP_WDATA_ERROR
Debug: 31 58 stlink.c:4261 stlink_open(): Using TAR autoincrement: 1024
Debug: 32 104 stlink.c:1162 stlink_usb_error_check(): STLINK_SWD_AP_FAULT
Error: 33 105 strttapp.cpp:142 main(): failed to find RTT (-4)
@phryniszak
Copy link
Owner

Hi,

I can see that issues start popping out with new STM32 boards, but because I don't have access to these boards chances are low that this will be fixed any time soon.

I have never tried it but I've seen that openocd/pyocd can be used directly for RTT.

@HiFiPhile
Copy link
Author

HiFiPhile commented Jan 26, 2025

I think I was too early talking about H7RS since it's not even supported by upstream.

However I did a USB capture and found out that the response of memory read command (F2 07 * *) does not corresponding to what actual in the memory ! Maybe it needs some special initialization.

stlink.zip

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

No branches or pull requests

2 participants