You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "fdcavalcanti (via GitHub)" <gi...@apache.org> on 2025/11/19 13:14:21 UTC

[I] [BUG] Oneshot stopped working after #17339 [nuttx]

fdcavalcanti opened a new issue, #17349:
URL: https://github.com/apache/nuttx/issues/17349

   ### Description / Steps to reproduce the issue
   
   Hi folks,
   
   Noticed some changes on oneshot driver on #17339. It has caused the oneshot app to stop working on ESP32-C3. 
   I verified with git bisect and it works fine before the changes of that PR.
   
   Here's how to reproduce with QEMU:
   - ./tools/configure.sh esp32c3-generic:timers
   - Enable `CONFIG_ESPRESSIF_MERGE_BINS` 
   - Run on QEMU or flash a devkit.
   - For QEMU: 
   ```
   qemu-system-riscv32 -nographic -icount 3 -machine esp32c3 -m 4M \
               -drive file=nuttx.merged.bin,if=mtd,format=raw \
               -drive file=qemu_efuse.bin,if=none,format=raw,id=efuse \
               -global driver=esp32c3.gpio,property=strap_mode,value=0x08 \
               -global driver=nvram.esp32c3.efuse,property=drive,value=efuse
   ```
   - Execute the oneshot app:
   ```
   nsh> oneshot
   Opening /dev/oneshot
   Maximum delay is 4294967295999999
   Starting oneshot timer with delay 2000000 microseconds
   Waiting...
   ```
   
   It hangs at that point and does not return. It seems it calls the signal dispatch but nothing happens.
   
   Appreciate the help in fixing this.
   
   Thanks in advance,
   Filipe
   
   ### On which OS does this issue occur?
   
   [OS: Linux]
   
   ### What is the version of your OS?
   
   Mint 22
   
   ### NuttX Version
   
   master
   
   ### Issue Architecture
   
   [Arch: risc-v]
   
   ### Issue Area
   
   [Area: Drivers]
   
   ### Host information
   
   _No response_
   
   ### Verification
   
   - [x] I have verified before submitting the report.


-- 
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-unsubscribe@nuttx.apache.org.apache.org

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


Re: [I] [BUG] Oneshot stopped working after #17339 [nuttx]

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 commented on issue #17349:
URL: https://github.com/apache/nuttx/issues/17349#issuecomment-3553372997

   @Fix-Point please look at this problem.


-- 
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-unsubscribe@nuttx.apache.org

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


Re: [I] [BUG] Oneshot stopped working after #17339 [nuttx]

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 closed issue #17349: [BUG] Oneshot stopped working after #17339
URL: https://github.com/apache/nuttx/issues/17349


-- 
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-unsubscribe@nuttx.apache.org

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


Re: [I] [BUG] Oneshot stopped working after #17339 [nuttx]

Posted by "Fix-Point (via GitHub)" <gi...@apache.org>.
Fix-Point commented on issue #17349:
URL: https://github.com/apache/nuttx/issues/17349#issuecomment-3556240611

   My changes caused the oneshot callback to receive incorrect parameters.
   This commit https://github.com/apache/nuttx/pull/17345/commits
    in this PR should fix this issue: https://github.com/apache/nuttx/issues/17349


-- 
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-unsubscribe@nuttx.apache.org

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