Hi @alejandro_e ,
here is the log output from a colleague, who tested it now with the RDB3 and the correct resistor setup. We are able to read/write the EEPROM data now.
Do you have any idea about the other errors around?
$ ./arm-none-eabi-gdb-py.exe
GNU gdb (GDB src=g4536f19e181 bld=g4536f19e181 ) 15.1
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "--host=x86_64-w64-mingw32 --target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
(gdb) source ../../../S32Debugger/Debugger/scripts/gdb_extensions/rcon/s32rcon.py
(gdb) py rcon()
Starting RCON programmer services...
Initializing target...
Running RCON script C:/NXP/S32DS.3.6.2/S32DS/tools/S32Debugger/Debugger/scripts/s32g3xx/s32g3xx_i2c_RCON.py
Board init...
Primary session connecting...
Target connection failed. Please re-check the settings.
Processor: S32G3XX
Probe: S32 Debugger TAP (10.64.8.54)
[CCS: Initialization sequence error in command 0xA]
Additional error details:
[GTA: target access error]
Type of the error: [GtaTaErr]
Error code: [1303]
Initialization sequence error at: write_reg32 : addr='0xE000EDF0', value='0xA05F0003'
(called by _prologue in C:/NXP/S32DS.3.6.2/S32DS/tools/S32Debugger/Debugger/scripts/s32g3xx/s32g3xx_init_sequence.py:276), command with number 0xa
--- STACK TRACE OF THE INIT SCRIPTS ---
File "<string>", line 1, in <module>
File "../../../S32Debugger/Debugger/scripts/gdb_extensions/rcon/s32rcon.py", line 106, in rcon
_rcon_initialization().unwrap()
File "C:/NXP/S32DS.3.6.2/S32DS/tools/S32Debugger/Debugger/scripts/gdb_extensions/rcon/../../utils/errors.py", line 307, in wrapper
v = func(*args, **kwargs)
File "../../../S32Debugger/Debugger/scripts/gdb_extensions/rcon/s32rcon.py", line 99, in _rcon_initialization
start_rcon_services(argument)
File "C:/NXP/S32DS.3.6.2/S32DS/tools/S32Debugger/Debugger/scripts/gdb_extensions/rcon/../rcon/scripts/services.py", line 148, in start_rcon_services
return instance.invoke(argument)
File "C:/NXP/S32DS.3.6.2/S32DS/tools/S32Debugger/Debugger/scripts/gdb_extensions/rcon/../rcon/scripts/services.py", line 103, in invoke
ret = self.start_service(argument)
File "C:/NXP/S32DS.3.6.2/S32DS/tools/S32Debugger/Debugger/scripts/gdb_extensions/rcon/../rcon/scripts/services.py", line 124, in start_service
ret = start(args)
File "C:/NXP/S32DS.3.6.2/S32DS/tools/S32Debugger/Debugger/scripts/gdb_extensions/rcon/../rcon/scripts/rcon_init.py", line 135, in start
if internal_start(args) is False:
File "C:/NXP/S32DS.3.6.2/S32DS/tools/S32Debugger/Debugger/scripts/gdb_extensions/rcon/../rcon/scripts/rcon_init.py", line 37, in internal_start
if internal_initialize_target(args) is False:
File "C:/NXP/S32DS.3.6.2/S32DS/tools/S32Debugger/Debugger/scripts/gdb_extensions/rcon/../rcon/scripts/rcon_init.py", line 113, in internal_initialize_target
DbgInit.RCON_BOARD_INIT(*setup_args)
File "C:/NXP/S32DS.3.6.2/S32DS/tools/S32Debugger/Debugger/scripts/s32g3xx/s32g3xx_i2c_RCON.py", line 201, in RCON_BOARD_INIT
generic_board.board_init()
File "C:/NXP/S32DS.3.6.2/S32DS/tools/S32Debugger/Debugger/scripts/s32g3xx/s32g3xx_generic_bareboard.py", line 153, in board_init
connect()
File "C:/NXP/S32DS.3.6.2/S32DS/tools/S32Debugger/Debugger/scripts/s32g3xx/s32g3xx_generic_bareboard.py", line 57, in connect
gta_lib.establish_connection(
File "C:/NXP/S32DS.3.6.2/S32DS/tools/S32Debugger/Debugger/scripts/s32g3xx//../utils/gta_lib.py", line 89, in establish_connection
return connect(
File "C:/NXP/S32DS.3.6.2/S32DS/tools/S32Debugger/Debugger/scripts/gdb_extensions/rcon/../../utils/errors.py", line 307, in wrapper
v = func(*args, **kwargs)
File "C:/NXP/S32DS.3.6.2/S32DS/tools/S32Debugger/Debugger/scripts/s32g3xx//../utils/gta_lib.py", line 152, in connect
gdb_exec("monitor ctx connect", from_tty=True, errcode=ErrorCode.ConnectError).unwrap()
^Error:Exception:Target connection failed. Please re-check the settings.
Processor: S32G3XX
Probe: S32 Debugger TAP (10.64.8.54)
[CCS: Initialization sequence error in command 0xA]
//
Additional error details:
[GTA: target access error]
:GtaTaErr(1303)
Type of the error: [ConnectError]
Error code: [102]
--- STACK TRACE OF THE INIT SCRIPTS ---
File "<string>", line 1, in <module>
File "../../../S32Debugger/Debugger/scripts/gdb_extensions/rcon/s32rcon.py", line 106, in rcon
_rcon_initialization().unwrap()
File "C:/NXP/S32DS.3.6.2/S32DS/tools/S32Debugger/Debugger/scripts/gdb_extensions/rcon/../../utils/errors.py", line 307, in wrapper
v = func(*args, **kwargs)
File "../../../S32Debugger/Debugger/scripts/gdb_extensions/rcon/s32rcon.py", line 99, in _rcon_initialization
start_rcon_services(argument)
File "C:/NXP/S32DS.3.6.2/S32DS/tools/S32Debugger/Debugger/scripts/gdb_extensions/rcon/../rcon/scripts/services.py", line 148, in start_rcon_services
return instance.invoke(argument)
File "C:/NXP/S32DS.3.6.2/S32DS/tools/S32Debugger/Debugger/scripts/gdb_extensions/rcon/../rcon/scripts/services.py", line 103, in invoke
ret = self.start_service(argument)
File "C:/NXP/S32DS.3.6.2/S32DS/tools/S32Debugger/Debugger/scripts/gdb_extensions/rcon/../rcon/scripts/services.py", line 124, in start_service
ret = start(args)
File "C:/NXP/S32DS.3.6.2/S32DS/tools/S32Debugger/Debugger/scripts/gdb_extensions/rcon/../rcon/scripts/rcon_init.py", line 135, in start
if internal_start(args) is False:
File "C:/NXP/S32DS.3.6.2/S32DS/tools/S32Debugger/Debugger/scripts/gdb_extensions/rcon/../rcon/scripts/rcon_init.py", line 37, in internal_start
if internal_initialize_target(args) is False:
File "C:/NXP/S32DS.3.6.2/S32DS/tools/S32Debugger/Debugger/scripts/gdb_extensions/rcon/../rcon/scripts/rcon_init.py", line 113, in internal_initialize_target
DbgInit.RCON_BOARD_INIT(*setup_args)
File "C:/NXP/S32DS.3.6.2/S32DS/tools/S32Debugger/Debugger/scripts/s32g3xx/s32g3xx_i2c_RCON.py", line 201, in RCON_BOARD_INIT
generic_board.board_init()
File "C:/NXP/S32DS.3.6.2/S32DS/tools/S32Debugger/Debugger/scripts/s32g3xx/s32g3xx_generic_bareboard.py", line 153, in board_init
connect()
File "C:/NXP/S32DS.3.6.2/S32DS/tools/S32Debugger/Debugger/scripts/s32g3xx/s32g3xx_generic_bareboard.py", line 70, in connect
).unwrap()
^Error:Exception::ConnectError(102)
Type of the error: [RCONUndefinedError]
Error code: [704]
--- STACK TRACE OF THE INIT SCRIPTS ---
File "<string>", line 1, in <module>
File "../../../S32Debugger/Debugger/scripts/gdb_extensions/rcon/s32rcon.py", line 106, in rcon
_rcon_initialization().unwrap()
^Error:Exception::RCONUndefinedError(704)
^Error:Exception::RCONUndefinedError(704)
Python Exception <class 'errors.GtaLibException'>:
Error occurred in Python.
(gdb) py rcon()
Starting RCON programmer services...
Initializing target...
Running RCON script C:/NXP/S32DS.3.6.2/S32DS/tools/S32Debugger/Debugger/scripts/s32g3xx/s32g3xx_i2c_RCON.py
Board init...
Primary session connecting...
Selected CORE=S32G399A_M7_0
warning: No executable has been specified and target does not support
determining executable automatically. Try using the "file" command.
Program received signal SIGINT, Interrupt.
0x34020404 in ?? ()
I2C Init...
Initialized board for RCON s32g3xx_i2c_RCON.py.
Loaded RCON script.
Available commands:
rcon_help
rcon_read
rcon_write
Use "command" -h for more information and usage.
(rcon)rcon_read 0 8
Reading....
Reading... Address: 0x0 Value: 0xff
Reading... Address: 0x1 Value: 0xff
Reading... Address: 0x2 Value: 0xff
Reading... Address: 0x3 Value: 0xff
Reading... Address: 0x4 Value: 0xff
Reading... Address: 0x5 Value: 0xff
Reading... Address: 0x6 Value: 0xff
Reading... Address: 0x7 Value: 0xff
RCON data from EEPROM: 0xffffffffffffffff
Read complete....
(rcon)rcon_write -h
usage: [-h] value
S32DS RCON write command.
positional arguments:
address Start address for the write operation. Must be hexadecimal format.
data RCON value to write
options:
-h, --help show this help message and exit
(rcon)rcon_read 0 1
Reading....
Reading... Address: 0x0 Value: 0xff
RCON data from EEPROM: 0xff
Read complete....
(rcon)rcon_write 0 1
Writing....
F-ERROR: data must be hex sequence.
Type of the error: [RCONParameterError]
Error code: [703]
--- STACK TRACE OF THE INIT SCRIPTS ---
File "C:/NXP/S32DS.3.6.2/S32DS/tools/S32Debugger/Debugger/scripts/gdb_extensions/rcon/../rcon/gdbcommands/base_command.py", line 53, in invoke
self.execute(self._args)
File "C:/NXP/S32DS.3.6.2/S32DS/tools/S32Debugger/Debugger/scripts/gdb_extensions/rcon/../rcon/gdbcommands/write_command.py", line 74, in execute
Result(Error(ErrorCode.RCONParameterError,'F-ERROR: data must be hex sequence.')).unwrap()
^Error:Exception:F-ERROR: data must be hex sequence.:RCONParameterError(703)
Type of the error: [RCONUndefinedError]
Error code: [704]
--- STACK TRACE OF THE INIT SCRIPTS ---
File "C:/NXP/S32DS.3.6.2/S32DS/tools/S32Debugger/Debugger/scripts/gdb_extensions/rcon/../rcon/gdbcommands/base_command.py", line 56, in invoke
Result(Error(ErrorCode.RCONUndefinedError, str(e))).unwrap()
^Error:Exception::RCONUndefinedError(704)
^Error:Exception::RCONUndefinedError(704)
Python Exception <class 'errors.GtaLibException'>:
Error occurred in Python.
(rcon)rcon_write 0 0x1
Writing....
Writting... Address: 0x0 Value: 0x1
Write complete....
(rcon)rcon_read 0 8
Reading....
Reading... Address: 0x0 Value: 0x1
Reading... Address: 0x1 Value: 0xff
Reading... Address: 0x2 Value: 0xff
Reading... Address: 0x3 Value: 0xff
Reading... Address: 0x4 Value: 0xff
Reading... Address: 0x5 Value: 0xff
Reading... Address: 0x6 Value: 0xff
Reading... Address: 0x7 Value: 0xff
RCON data from EEPROM: 0xffffffffffffff01
Read complete....
(rcon)