cederom commented on PR #16914:
URL: https://github.com/apache/nuttx/pull/16914#issuecomment-3233933444

   Okay so the original ESP32-S3-DevKitC-1U just arrived and I still have 
segfault on `i2schar -l` invocation, could you please double check @tmedicci 
what could be the cause? Maybe my compiler is too old? :-)
   
   ps/2: you may want to update apps repo name and remove incubator 
(https://github.com/tmedicci/incubator-nuttx-apps.git) ? :-)
   
   ```
   hexagon% uname -a
   FreeBSD hexagon 14.2-RELEASE-p5 FreeBSD 14.2-RELEASE-p5 #0 
releng/14.2-n269533-0781dd1545f6-dirty: Tue Aug 26 17:38:06 CEST 2025     
root@hexagon:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
   
   hexagon% xtensa-esp32s3-elf-gcc --version
   xtensa-esp32s3-elf-gcc (crosstool-NG esp-2021r2-patch5) 8.4.0
   Copyright (C) 2018 Free Software Foundation, Inc.
   This is free software; see the source for copying conditions.  There is NO
   warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   
   hexagon% pwd
   /tmp/nuttx/nuttx-apps
   
   hexagon% git remote add tmedicci 
https://github.com/tmedicci/incubator-nuttx-apps.git
   
   hexagon% git fetch --all
   Fetching origin
   Fetching tmedicci
   remote: Enumerating objects: 96, done.
   remote: Counting objects: 100% (67/67), done.
   remote: Total 96 (delta 66), reused 67 (delta 66), pack-reused 29 (from 1)
   Unpacking objects: 100% (96/96), 20.57 KiB | 405.00 KiB/s, done.
   From https://github.com/tmedicci/incubator-nuttx-apps
   (..)
   
   hexagon% git checkout tmedicci/improvement/i2schar
   Note: switching to 'tmedicci/improvement/i2schar'.
   
   You are in 'detached HEAD' state. You can look around, make experimental
   changes and commit them, and you can discard any commits you make in this
   state without impacting any branches by switching back to a branch.
   
   If you want to create a new branch to retain commits you create, you may
   do so (now or later) by using -c with the switch command. Example:
   
     git switch -c <new-branch-name>
   
   Or undo this operation with:
   
     git switch -
   
   Turn off this advice by setting config variable advice.detachedHead to false
   
   HEAD is now at e39d87f18 examples/i2schar: Implement loopback mode check
   
   hexagon% git branch
   * (HEAD detached at tmedicci/improvement/i2schar)
     master
   
   
   
   hexagon% cd ../nuttx
   hexagon% git branch
   * master
   hexagon% git remote add tmedicci https://github.com/tmedicci/nuttx.git
   hexagon% git fetch tmedicci
   (..)
   
   hexagon% git checkout tmedicci/improvement/i2schar
   Note: switching to 'tmedicci/improvement/i2schar'.
   
   You are in 'detached HEAD' state. You can look around, make experimental
   changes and commit them, and you can discard any commits you make in this
   state without impacting any branches by switching back to a branch.
   
   If you want to create a new branch to retain commits you create, you may
   do so (now or later) by using -c with the switch command. Example:
   
     git switch -c <new-branch-name>
   
   Or undo this operation with:
   
     git switch -
   
   Turn off this advice by setting config variable advice.detachedHead to false
   
   HEAD is now at d25e8cfc67 drivers/i2s/i2schar: Implement blocking read/write 
operations
   
   
   
   
   hexagon% ./tools/configure.sh -B esp32s3-devkit:i2schar && kconfig-tweak 
--set-val ESPRESSIF_I2S0_DINPIN 10 && kconfig-tweak --set-val 
ESPRESSIF_I2S0_DOUTPIN 10 && gmake olddefconfig && gmake -j flash
     Copy files
     Select CONFIG_HOST_BSD=y
     Refreshing...
   CP: arch/dummy/Kconfig to /tmp/nuttx/nuttx/arch/dummy/dummy_kconfig
   CP: boards/dummy/Kconfig to /tmp/nuttx/nuttx/boards/dummy/dummy_kconfig
   LN: platform/board to /tmp/nuttx/nuttx-apps/platform/dummy
   LN: include/arch to arch/xtensa/include
   LN: include/arch/board to 
/tmp/nuttx/nuttx/boards/xtensa/esp32s3/esp32s3-devkit/include
   LN: drivers/platform to /tmp/nuttx/nuttx/drivers/dummy
   LN: include/arch/chip to /tmp/nuttx/nuttx/arch/xtensa/include/esp32s3
   LN: arch/xtensa/src/chip to /tmp/nuttx/nuttx/arch/xtensa/src/esp32s3
   LN: arch/xtensa/src/board to 
/tmp/nuttx/nuttx/boards/xtensa/esp32s3/esp32s3-devkit/../common
   LN: arch/xtensa/src/board/board to 
/tmp/nuttx/nuttx/boards/xtensa/esp32s3/esp32s3-devkit/src
   mkkconfig in /tmp/nuttx/nuttx-apps/audioutils
   mkkconfig in /tmp/nuttx/nuttx-apps/benchmarks
   mkkconfig in /tmp/nuttx/nuttx-apps/boot
   mkkconfig in /tmp/nuttx/nuttx-apps/canutils
   mkkconfig in /tmp/nuttx/nuttx-apps/crypto
   mkkconfig in /tmp/nuttx/nuttx-apps/database
   mkkconfig in /tmp/nuttx/nuttx-apps/examples/mcuboot
   mkkconfig in /tmp/nuttx/nuttx-apps/examples/module
   mkkconfig in /tmp/nuttx/nuttx-apps/examples/rust
   mkkconfig in /tmp/nuttx/nuttx-apps/examples/sotest
   mkkconfig in /tmp/nuttx/nuttx-apps/examples
   mkkconfig in /tmp/nuttx/nuttx-apps/fsutils
   mkkconfig in /tmp/nuttx/nuttx-apps/games
   mkkconfig in /tmp/nuttx/nuttx-apps/graphics
   mkkconfig in /tmp/nuttx/nuttx-apps/industry
   mkkconfig in /tmp/nuttx/nuttx-apps/inertial
   mkkconfig in /tmp/nuttx/nuttx-apps/interpreters/luamodules
   mkkconfig in /tmp/nuttx/nuttx-apps/interpreters
   mkkconfig in /tmp/nuttx/nuttx-apps/logging
   mkkconfig in /tmp/nuttx/nuttx-apps/lte
   mkkconfig in /tmp/nuttx/nuttx-apps/math
   mkkconfig in /tmp/nuttx/nuttx-apps/mlearning
   mkkconfig in /tmp/nuttx/nuttx-apps/netutils
   mkkconfig in /tmp/nuttx/nuttx-apps/sdr
   mkkconfig in /tmp/nuttx/nuttx-apps/system
   mkkconfig in /tmp/nuttx/nuttx-apps/tee
   mkkconfig in /tmp/nuttx/nuttx-apps/testing/arch
   mkkconfig in /tmp/nuttx/nuttx-apps/testing/cxx
   mkkconfig in /tmp/nuttx/nuttx-apps/testing/drivers
   mkkconfig in /tmp/nuttx/nuttx-apps/testing/fs
   mkkconfig in /tmp/nuttx/nuttx-apps/testing/libc
   mkkconfig in /tmp/nuttx/nuttx-apps/testing/mm
   mkkconfig in /tmp/nuttx/nuttx-apps/testing/sched
   mkkconfig in /tmp/nuttx/nuttx-apps/testing
   mkkconfig in /tmp/nuttx/nuttx-apps/videoutils
   mkkconfig in /tmp/nuttx/nuttx-apps/wireless/bluetooth
   mkkconfig in /tmp/nuttx/nuttx-apps/wireless/ieee802154
   mkkconfig in /tmp/nuttx/nuttx-apps/wireless
   mkkconfig in /tmp/nuttx/nuttx-apps
   #
   # configuration written to .config
   #
   CP: arch/dummy/Kconfig to /tmp/nuttx/nuttx/arch/dummy/dummy_kconfig
   CP: boards/dummy/Kconfig to /tmp/nuttx/nuttx/boards/dummy/dummy_kconfig
   LN: platform/board to /tmp/nuttx/nuttx-apps/platform/dummy
   LN: include/arch to arch/xtensa/include
   LN: include/arch/board to 
/tmp/nuttx/nuttx/boards/xtensa/esp32s3/esp32s3-devkit/include
   LN: drivers/platform to /tmp/nuttx/nuttx/drivers/dummy
   LN: include/arch/chip to /tmp/nuttx/nuttx/arch/xtensa/include/esp32s3
   LN: arch/xtensa/src/chip to /tmp/nuttx/nuttx/arch/xtensa/src/esp32s3
   LN: arch/xtensa/src/board to 
/tmp/nuttx/nuttx/boards/xtensa/esp32s3/esp32s3-devkit/../common
   LN: arch/xtensa/src/board/board to 
/tmp/nuttx/nuttx/boards/xtensa/esp32s3/esp32s3-devkit/src
   #
   # configuration written to .config
   #
   Create version.h
   LN: platform/board to /tmp/nuttx/nuttx-apps/platform/dummy
   Cloning Espressif HAL for 3rd Party Platforms
   Clone: chip/esp-hal-3rdparty Register: dd
   Register: nsh
   Register: sh
   Register: i2schar
   Espressif HAL for 3rd Party Platforms: 
e9a78c811578545e2bc673862d885a15bd6cbf67
   Espressif HAL for 3rd Party Platforms: initializing submodules...
   Applying patches...
   LD: nuttx
   Memory region         Used Size  Region Size  %age Used
                ROM:      211044 B    4194272 B      5.03%
        iram0_0_seg:       22784 B       304 KB      7.32%
        irom0_0_seg:      158224 B    4194272 B      3.77%
        dram0_0_seg:       20484 B       288 KB      6.95%
        drom0_0_seg:      276580 B    4194272 B      6.59%
       rtc_iram_seg:          0 GB       8168 B      0.00%
       rtc_data_seg:          0 GB       8168 B      0.00%
   rtc_reserved_seg:          0 GB         24 B      0.00%
       rtc_slow_seg:          0 GB         8 KB      0.00%
   CP: nuttx.hex
   MKIMAGE: ESP32-S3 binary
   esptool.py -c esp32s3 elf2image --ram-only-header -fs 4MB -fm dio -ff "40m" 
-o nuttx.bin nuttx
   esptool.py v4.9.0
   Creating esp32s3 image...
   Image has only RAM segments visible. ROM segments are hidden and SHA256 
digest is not appended.
   Merged 2 ELF sections
   Successfully created esp32s3 image.
   Generated: nuttx.bin
   esptool.py -c esp32s3 -p /dev/cuaU0 -b 115200  write_flash -fs detect -fm 
dio -ff "40m" 0x0000 nuttx.bin
   esptool.py v4.9.0
   Serial port /dev/cuaU0
   Connecting.........
   Chip is ESP32-S3 (QFN56) (revision v0.2)
   Features: WiFi, BLE, Embedded PSRAM 8MB (AP_3v3)
   Crystal is 40MHz
   MAC: 24:ec:4a:XXX
   Uploading stub...
   Running stub...
   Stub running...
   Configuring flash size...
   Auto-detected Flash size: 8MB
   Flash will be erased from 0x00000000 to 0x00033fff...
   Flash params set to 0x0230
   Compressed 211076 bytes to 92556...
   Wrote 211076 bytes (92556 compressed) at 0x00000000 in 8.4 seconds 
(effective 200.6 kbit/s)...
   Hash of data verified.
   
   Leaving...
   Hard resetting via RTS pin...
   hexagon%
   hexagon% cu -l /dev/cuaU0 -s 115200
   Connected
   
   nsh> uname -a
   NuttX 12.10.0 d25e8cfc67 Aug 28 2025 17:07:28 xtensa esp32s3-devkit
   nsh> ?
   help usage:  help [-v] [<cmd>]
   
       .           cp          expr        mkdir       rmdir       umount
       [           cmp         false       mkrd        set         unset
       ?           dirname     fdinfo      mount       sleep       uptime
       alias       df          free        mv          source      usleep
       unalias     dmesg       help        pidof       test        watch
       basename    echo        hexdump     printf      time        xd
       break       env         kill        ps          true        wait
       cat         exec        pkill       pwd         truncate
       cd          exit        ls          rm          uname
   
   Builtin Apps:
       dd         i2schar    nsh        sh
   nsh> ls /dev
   /dev:
    audio/
    console
    i2schar0
    null
    ttyS0
    zero
   nsh> i2schar -l
   i2schar_main: TX data width: 0 bits
   i2schar_prepare_tx_buffer: Unknown data width 0, using byte mode
   i2schar_prepare_tx_buffer: Prepared transmitter buffer with 
0xtensa_user_panic: User Exception: EXCCAUSE=0006 task: receiver
   dump_assert_info: Current Version: NuttX  12.10.0 d25e8cfc67 Aug 28 2025 
17:07:28 xtensa
   dump_assert_info: Assertion failed user panic: at file: 
common/xtensa_assert.c:190 task: receiver process: i2schar 0x42021d48
   up_dump_register:    PC: 42023af8    PS: 00060d30
   up_dump_register:    A0: 82022b53    A1: 3fc91d10    A2: 00000000    A3: 
3fc92f88
   up_dump_register:    A4: 3fc8cbc4    A5: 00000400    A6: 3fc8ca60    A7: 
3fc8ca5c
   up_dump_register:    A8: 82023aec    A9: 3fc91cf0   A10: 3fc92f88   A11: 
7ffffffe
   up_dump_register:   A12: 00000004   A13: 00000000   A14: 3fc8c5e8   A15: 
00000003
   up_dump_register:   SAR: 00000010 CAUSE: 00000006 VADDR: 00000000
   up_dump_register:  LBEG: 40056fc5  LEND: 40056fe7  LCNT: ffffffff
   dump_stackinfo: User Stack:
   dump_stackinfo:   base: 0x3fc90e98
   dump_stackinfo:   size: 00004072
   dump_stackinfo:     sp: 0x3fc91d10
   stack_dump: 0x3fc91cf0: 8201c4fc 3fc91d30 00000001 3fc91d50 8201bcf4 
3fc91d40 42023abc 3fc92f88
   stack_dump: 0x3fc91d10: 00000000 42022b98 3fc8f8c0 00000000 820143bb 
3fc91d50 00000001 3fc8ffa4
   stack_dump: 0x3fc91d30: 8201bd31 3fc91d60 00000000 00000000 3fc8f8c0 
3fc8f8c4 3fc8d1f0 3fc8d220
   stack_dump: 0x3fc91d50: 8201bd5f 3fc91d90 00000000 3fc91de0 82014414 
3fc91d90 3fc8ff6c 3fc91da0
   stack_dump: 0x3fc91d70: 00000001 3fc91de0 3fc8f910 3fc92f70 8201bd80 
3fc91dc0 00000003 3fc91de0
   stack_dump: 0x3fc91d90: 3fc92f70 3fc8ffa6 0000006e 00000000 00000001 
3fc8ffa7 0000000a 000001b6
   stack_dump: 0x3fc91db0: 82021db8 3fc91de0 00000003 3fc92f88 00000001 
3fc91de1 00000001 00000043
   stack_dump: 0x3fc91dd0: 82022fc4 3fc91e10 3fc90978 00000003 3fc92f88 
00000430 3fc90978 00000003
   stack_dump: 0x3fc91df0: 00000430 3fc89a40 3fc8fda8 00000000 8202571d 
3fc91e40 42021d48 3fc90978
   stack_dump: 0x3fc91e10: 00000400 3fc91e18 3fc92f88 00000000 00000000 
3fc8b078 00000001 00000400
   stack_dump: 0x3fc91e30: 00000000 3fc91e60 3fc90db0 00000000 00000000 
3fc90db0 00000000 3fc89a34
   stack_dump: 0x3fc91e50: 00000000 3fc91e80 00000000 00000000 00000000 
00000000 00000000 00000000
   stack_dump: 0x3fc91e70: 00000000 00000000 00000000 00000000 00000000 
00000000 00000000 00000000
   dump_tasks:    PID GROUP PRI POLICY   TYPE    NPX STATE   EVENT      SIGMASK 
         STACKBASE  STACKSIZE   COMMAND
   dump_tasks:   ----   --- --- -------- ------- --- ------- ---------- 
---------------- 0x3fc8bcc0      2048   irq
   dump_task:       0     0   0 FIFO     Kthread -   Ready              
0000000000000000 0x3fc8b0d0      3056   Idle_Task
   dump_task:       1     0 224 RR       Kthread -   Waiting Semaphore  
0000000000000000 0x3fc8d438      1976   hpwork 0x3fc8c524 0x3fc8c56c
   dump_task:       2     0 100 RR       Kthread -   Waiting Semaphore  
0000000000000000 0x3fc8dd10      1984   lpwork 0x3fc8c4c0 0x3fc8c508
   dump_task:       3     3 100 RR       Task    -   Waiting Semaphore  
0000000000000000 0x3fc8e8b8      4040   nsh_main
   dump_task:       4     4 100 RR       Task    -   Ready              
0000000000000000 0x3fc90188      1992   i2schar -l
   dump_task:       5     4 101 RR       pthread -   Running            
0000000000000000 0x3fc90e98      4072   receiver 0x42021d48 0x3fc90978
   dump_task:       6     4 100 RR       pthread -   Ready              
0000000000000000 0x3fc91f78      4072   transmitter 0x42021e84 0x3fc90978
   ~
   [EOT]
   ```
   
   


-- 
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