Hello everyone,
I have recently started working on a custom board which has a STM32H733VG as the MCU (STM cube IDE and CUBE MX as the development environment).Various interfaces including UART, I2C, SPI and sdmmc has been implemented hardware wise to provide links between MCU and other chips on the board. I was able to write to an SD card however when i want to read or right from other chips (external RTC (ISL12057), GPS module(MAX-M10M), ...) using I2C or UART interfaces, i get nothing. I am using SEGGER J-trace pro debugger and here is its console log:
SEGGER J-Link GDB Server V8.10d Command Line Version
JLinkARM.dll V8.10d (DLL compiled Oct 24 2024 09:58:28)
Command line: -port 2331 -s -device STM32H733VG -endian little -speed 4000 -if swd -swoport 2332 -vd
-----GDB Server start settings-----
GDBInit file: none
GDB Server Listening port: 2331
SWO raw output listening port: 2332
Terminal I/O port: 2333
Accept remote connection: localhost only
Generate logfile: off
Verify download: on
Init regs on start: off
Silent mode: off
Single run mode: on
Target connection timeout: 0 ms
------J-Link related settings------
J-Link Host interface: USB
J-Link script: none
J-Link settings file: none
------Target related settings------
Target device: STM32H733VG
Target device parameters: none
Target interface: SWD
Target interface speed: 4000kHz
Target endian: little
Connecting to J-Link...
J-Link is connected.
Firmware: J-Trace PRO V1 Cortex-M compiled Jul 28 2021 10:11:34
Hardware: V1.00
S/N: 751000477
Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB
Checking target voltage...
Target voltage: 3.28 V
Listening on TCP/IP port 2331
Connecting to target...
Halting core...
Connected to target
Waiting for GDB connection...Connected to 0000:0000:0000:0000:0000:0000:0000:0001
GDB client (conn. 1376) requested target.xml from GDB Server
Reading common registers: Read register 'r0' (4 bytes) from hardware: 0x0A660200
Read register 'r1' (4 bytes) from hardware: 0x00000000
Read register 'r2' (4 bytes) from hardware: 0xF5010000
Read register 'r3' (4 bytes) from hardware: 0xB8010000
Read register 'r4' (4 bytes) from hardware: 0x74200024
Read register 'r5' (4 bytes) from hardware: 0x00000000
Read register 'r6' (4 bytes) from hardware: 0x00000000
Read register 'r7' (4 bytes) from hardware: 0xC0FF0124
Read register 'r8' (4 bytes) from hardware: 0x00000000
Read register 'r9' (4 bytes) from hardware: 0x00000000
Read register 'r10' (4 bytes) from hardware: 0x00000000
Read register 'r11' (4 bytes) from hardware: 0x00000000
Read register 'r12' (4 bytes) from hardware: 0x0A000000
Read register 'sp' (4 bytes) from hardware: 0xBCFF0124
Read register 'lr' (4 bytes) from hardware: 0xE9290008
Read register 'pc' (4 bytes) from hardware: 0xA6290008
Read register 'xpsr' (4 bytes) from hardware: 0x00000021
Read 4 bytes @ address 0x080029A6 (Data = 0x4B03AF00)
Received monitor command: ReadAPEx 0x0 0xF8
O.K.:0xE00FE003
Received monitor command: ReadMemAP 0x0 0xE00FEFD0 0x8 0x0
O.K.:0x00000000,0x00000000,0x00000000,0x00000000,0x00000083,0x00000004,0x0000000A,0x00000000
Connected to 0000:0000:0000:0000:0000:0000:0000:0001
GDB client (conn. 1320) requested target.xml from GDB Server
Reading common registers: Read register 'r0' (4 bytes) from hardware: 0x0A660200
Read register 'r1' (4 bytes) from hardware: 0x00000000
Read register 'r2' (4 bytes) from hardware: 0xF5010000
Read register 'r3' (4 bytes) from hardware: 0xB8010000
Read register 'r4' (4 bytes) from hardware: 0x74200024
Read register 'r5' (4 bytes) from hardware: 0x00000000
Read register 'r6' (4 bytes) from hardware: 0x00000000
Read register 'r7' (4 bytes) from hardware: 0xC0FF0124
Read register 'r8' (4 bytes) from hardware: 0x00000000
Read register 'r9' (4 bytes) from hardware: 0x00000000
Read register 'r10' (4 bytes) from hardware: 0x00000000
Read register 'r11' (4 bytes) from hardware: 0x00000000
Read register 'r12' (4 bytes) from hardware: 0x0A000000
Read register 'sp' (4 bytes) from hardware: 0xBCFF0124
Read register 'lr' (4 bytes) from hardware: 0xE9290008
Read register 'pc' (4 bytes) from hardware: 0xA6290008
Read register 'xpsr' (4 bytes) from hardware: 0x00000021
Read 4 bytes @ address 0x080029A6 (Data = 0x4B03AF00)
Received monitor command: reset
Resetting target
Downloading 716 bytes @ address 0x08000000 - Verified OK
Downloading 15936 bytes @ address 0x080002D0 - Verified OK
Downloading 16128 bytes @ address 0x08004110 - Verified OK
Downloading 16144 bytes @ address 0x08008010 - Verified OK
Downloading 16016 bytes @ address 0x0800BF20 - Verified OK
Downloading 15984 bytes @ address 0x0800FDB0 - Verified OK
Downloading 15952 bytes @ address 0x08013C20 - Verified OK
Downloading 16032 bytes @ address 0x08017A70 - Verified OK
Downloading 15984 bytes @ address 0x0801B910 - Verified OK
Downloading 4424 bytes @ address 0x0801F780 - Verified OK
Downloading 1092 bytes @ address 0x080208C8 - Verified OK
Downloading 8 bytes @ address 0x08020D0C - Verified OK
Downloading 4 bytes @ address 0x08020D14 - Verified OK
Downloading 4 bytes @ address 0x08020D18 - Verified OK
Downloading 268 bytes @ address 0x08020D1C - Verified OK
Writing register 'pc' = 0x08002844
Read 4 bytes @ address 0x5C004000 (Data = 0x00000000)
Read 4 bytes @ address 0xE0001FE0 (Data = 0x00000002)
Read 4 bytes @ address 0x5C001004 (Data = 0x00000007)
Downloading 4 bytes @ address 0x5C001004 - Verified OK
Downloading 4 bytes @ address 0xE000EDFC - Verified OK
Downloading 4 bytes @ address 0xE00400F0 - Verified OK
Downloading 4 bytes @ address 0xE0040010 - Verified OK
Downloading 4 bytes @ address 0xE0000FB0 - Verify failed (expected 0x55 read 0x00 @ 0xE0000FB0)
Downloading 4 bytes @ address 0xE0000E80 - Verified OK
Downloading 4 bytes @ address 0xE0000E40 - Verified OK
Downloading 4 bytes @ address 0xE0000E00 - Verified OK
Downloading 4 bytes @ address 0x5C004FB0 - Verify failed (expected 0x55 read 0x00 @ 0x5C004FB0)
Downloading 4 bytes @ address 0x5C003FB0 - Verify failed (expected 0x55 read 0x00 @ 0x5C003FB0)
Downloading 4 bytes @ address 0x5C003010 - Verified OK
Downloading 4 bytes @ address 0x5C0030F0 - Verified OK
Downloading 4 bytes @ address 0x5C004000 - Verify failed (expected 0x01 read 0x00 @ 0x5C004000)
Downloading 4 bytes @ address 0xE0001020 - Verified OK
Downloading 4 bytes @ address 0xE0001030 - Verified OK
Downloading 4 bytes @ address 0xE0001040 - Verified OK
Downloading 4 bytes @ address 0xE0001050 - Verified OK
Downloading 4 bytes @ address 0xE0001000 - Verify failed (expected 0x00 read 0x40 @ 0xE0001003)
Downloading 4 bytes @ address 0xE0040304 - Verify failed (expected 0x01 read 0x00 @ 0xE0040304)
Display More
due to some unknown reason, it tries to check some reserved part of memory and it fails on their verification. Its almost a week, i have tries multiple solution found in different forum and still no luck.
Any help or hint would be highly appreciated.
Truly yours,
Amir