yangsong8-a1 opened a new pull request, #22153:
URL: https://github.com/apache/nuttx/pull/22153

    Add a Trace32 FDX (Fast Data Exchange) note driver.  FDX is a
     Lauterbach debugger protocol that transfers data between a target and a
     host through a shared memory buffer polled via JTAG.  The driver plugs
     into the NuttX note framework so scheduler instrumentation events are
     streamed to the Trace32 host in real time.
     
     New files:
     - `drivers/trace32/note_fdx.c` — note driver, calls `T32_Fdx_SendPoll`
       inside a spinlock
     - `drivers/trace32/Kconfig` — `CONFIG_TRACE32_FDX_NOTE` (selects
       `DRIVERS_NOTE` and `TRACE32_FDX`), buffer size, optional filter
     - `drivers/trace32/t32fdx.cmm` — Trace32 PRACTICE script that opens the
       FDX channel and writes `trace.bin`
     - `include/nuttx/trace32/note_fdx.h` — public `notefdx_register()`
     - `drivers/trace32/.gitignore` — the MIT-licensed Lauterbach FDX target
       agent (`t32fdx/`) is not shipped in-tree; users copy t32fdx.c and
       t32fdx.h from their TRACE32 installation into drivers/trace32/t32fdx/
     - `tools/nxstyle.c` — whitelist entries for the `T32_Fdx_*` API symbols
     
     ## Impact
     
     New driver, off by default (`CONFIG_TRACE32_FDX_NOTE`).  No change to
     existing configurations.
     
     ## Testing
     
     Ubuntu 22.04, aarch64-none-elf-gcc 13.2.Rel1, with t32fdx.c/t32fdx.h
     from TRACE32 in drivers/trace32/t32fdx/.  qemu-armv8a:nsh with
     SCHED_INSTRUMENTATION_SWITCH and TRACE32_FDX_NOTE builds with CMake and
     Make with no new warnings (note_fdx.c, t32fdx.c and note_initialize.c
     are compiled).
     
     FDX needs a Lauterbach debugger to read the buffer, so the data path was
     not run here; it was verified on our product.  The same image boots on
     QEMU without a debugger and the shell keeps running with the note driver
     registered:
     
     nsh> ps
       TID   PID  PPID PRI POLICY   TYPE    NPX STATE    EVENT     SIGMASK      
      STACK    USED FILLED COMMAND
         0     0     0   0 FIFO     Kthread   - Ready              
0000000000000000 0008144 0001616  19.8%  Idle_Task
         1     0     0 192 RR       Kthread   - Waiting  Semaphore 
0000000000000000 0008080 0001152  14.2%  hpwork 0x403ed600 0x403ed688
         3     3     0 100 RR       Task      - Waiting  Semaphore 
0000000000000000 0008112 0002320  28.5%  init_main
         4     4     3 100 RR       Task      - Running            
0000000000000000 0008112 0003200  39.4%  sh
   
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

  • [PR] note: add t32fdx driver ... yangsong8-a1 (via GitHub) via commits

Reply via email to