fjpanag commented on pull request #4810:
URL: https://github.com/apache/incubator-nuttx/pull/4810#issuecomment-978015867


   Well, in fact I just tried it.
   
   It crashes with a SEGFAULT:
   ```
   $ JLinkGDBServer -if swd -device STM32F427VI -endian little -speed 1000 
-port 2331 -swoport 2332 -telnetport 2333 -vd -ir -localhostonly 1 -singlerun 
-strict -timeout 0 -nogui -rtos /path/nuttx/tools/jlink-nuttx.so
   SEGGER J-Link GDB Server V7.54c Command Line Version
   
   JLinkARM.dll V7.54c (DLL compiled Sep 20 2021 13:59:21)
   
   Command line: -if swd -device STM32F427VI -endian little -speed 1000 -port 
2331 -swoport 2332 -telnetport 2333 -vd -ir -localhostonly 1 -singlerun -strict 
-timeout 0 -nogui -rtos /path/nuttx/tools/jlink-nuttx.so
   -----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:            on
   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:                 STM32F427VI
   Target interface:              SWD
   Target interface speed:        1000kHz
   Target endian:                 little
   
   Connecting to J-Link...
   J-Link is connected.
   Firmware: J-Link V11 compiled Sep  7 2021 11:22:27
   Hardware: V11.00
   S/N: ********
   Feature(s): GDB
   Checking target voltage...
   Target voltage: 3.28 V
   Listening on TCP/IP port 2331
   Connecting to target...
   Connected to target
   Waiting for GDB connection...Connected to 127.0.0.1
   Reading all registers
   Read 4 bytes @ address 0x00000000 (Data = 0x10008000)
   Read 4 bytes @ address 0xFFFFFFFC (Data = 0x00000000)
   Read 4 bytes @ address 0x00000000 (Data = 0x10008000)
   Read 4 bytes @ address 0xFFFFFFFC (Data = 0x00000000)
   Read 2 bytes @ address 0x00000000 (Data = 0x8000)
   Read 2 bytes @ address 0xFFFFFFFE (Data = 0x0000)
   Read 2 bytes @ address 0xFFFFFFFC (Data = 0x0000)
   Read 2 bytes @ address 0x00000000 (Data = 0x8000)
   Read 2 bytes @ address 0xFFFFFFFE (Data = 0x0000)
   Read 2 bytes @ address 0xFFFFFFFC (Data = 0x0000)
   Read 4 bytes @ address 0x00000000 (Data = 0x10008000)
   Read 4 bytes @ address 0xFFFFFFFC (Data = 0x00000000)
   Read 4 bytes @ address 0x00000000 (Data = 0x10008000)
   Read 4 bytes @ address 0xFFFFFFFC (Data = 0x00000000)
   Read 4 bytes @ address 0x00000000 (Data = 0x10008000)
   Read 4 bytes @ address 0x00000000 (Data = 0x10008000)
   Read 4 bytes @ address 0x00000000 (Data = 0x10008000)
   Read 2 bytes @ address 0x00000000 (Data = 0x8000)
   Received monitor command: speed 1000
   Target interface speed set to 1000 kHz
   Received monitor command: clrbp
   Received monitor command: reset
   Resetting target
   Received monitor command: halt
   Halting target CPU...
   ...Target halted (PC = 0x000001B4)
   Received monitor command: regs
   R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000
   R4 = 00000000, R5 = 00000000, R6 = 00000000, R7 = 00000000
   R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000
   R12= 00000000, R13= 10008000, MSP= 10008000, PSP= 00000000
   R14(LR) = FFFFFFFF, R15(PC) = 000001B4
   XPSR 01000000, APSR 00000000, EPSR 01000000, IPSR 00000000
   CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
   
   Security extension regs:
   MSP_S  = 00000000, MSPLIM_S  = 00000000
   PSP_S  = 00000000, PSPLIM_S  = 00000000
   MSP_NS = 10008000, MSPLIM_NS = 00000000
   PSP_NS = 00000000, PSPLIM_NS = 00000000
   CONTROL_S  00, FAULTMASK_S  00, BASEPRI_S  00, PRIMASK_S  00
   CONTROL_NS 00, FAULTMASK_NS 00, BASEPRI_NS 00, PRIMASK_NS 00
   
   Reading all registers
   Received monitor command: speed auto
   Select auto target interface speed (2000 kHz)
   Received monitor command: flash breakpoints 1
   Flash breakpoints enabled
   Received monitor command: semihosting enable
   Semi-hosting enabled (Handle on BKPT)
   Received monitor command: semihosting IOClient 1
   Semihosting I/O set to TELNET Client
   Received monitor command: SWO DisableTarget 0xFFFFFFFF
   SWO disabled successfully.
   Received monitor command: SWO EnableTarget 0 0 0x1 0
   SWO enabled successfully.
   Loading RTOS plugin: //path/nuttx/tools/jlink-nuttx.so...
   RTOS plugin (API v1.0) loaded successfully
   RTOS plugin: Loaded
   Received symbol: g_pidhash (0x200009E4)
   Received symbol: g_npidhash (0x200009E8)
   Received symbol: g_tcbinfo (0x0003A938)
   Received symbol: g_readytorun (0x200009B4)
   All mandatory symbols successfully loaded.
   All mandatory symbols successfully loaded.
   Downloading 16240 bytes @ address 0x00000000 - Verified OK
   Downloading 16368 bytes @ address 0x00003F70 - Verified OK
   Downloading 160 bytes @ address 0x00007F60 - Verified OK
   Downloading 4096 bytes @ address 0x00008000 - Verified OK
   Downloading 412 bytes @ address 0x00010000 - Verified OK
   Downloading 256 bytes @ address 0x00010200 - Verified OK
   Downloading 15936 bytes @ address 0x00010300 - Verified OK
   Downloading 16016 bytes @ address 0x00014140 - Verified OK
   Downloading 16064 bytes @ address 0x00017FD0 - Verified OK
   Downloading 16016 bytes @ address 0x0001BE90 - Verified OK
   Downloading 16032 bytes @ address 0x0001FD20 - Verified OK
   Downloading 16032 bytes @ address 0x00023BC0 - Verified OK
   Downloading 16032 bytes @ address 0x00027A60 - Verified OK
   Downloading 16016 bytes @ address 0x0002B900 - Verified OK
   Downloading 16016 bytes @ address 0x0002F790 - Verified OK
   Downloading 16032 bytes @ address 0x00033620 - Verified OK
   Downloading 13621 bytes @ address 0x000374C0 - Verified OK
   Downloading 8 bytes @ address 0x0003A9F8 - Verified OK
   Downloading 716 bytes @ address 0x0003AA00 - Verified OK
   Segmentation fault (core dumped)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to