masayuki2009 commented on PR #8926:
URL: https://github.com/apache/nuttx/pull/8926#issuecomment-1498338754

   @tmedicci
   
   >Yes, at least for xtensa.
   
   I tried the following changes on spresense with arm-gcc 12.2
   
   ```
   --- a/boards/arm/cxd56xx/spresense/configs/smp/defconfig
   +++ b/boards/arm/cxd56xx/spresense/configs/smp/defconfig
   @@ -28,14 +28,19 @@ CONFIG_CXD56_I2C=y
    CONFIG_CXD56_SPI4=y
    CONFIG_CXD56_SPI5=y
    CONFIG_CXD56_SPI=y
   +CONFIG_DEBUG_ASSERTIONS=y
   +CONFIG_DEBUG_ERROR=y
   +CONFIG_DEBUG_FEATURES=y
    CONFIG_DEBUG_FULLOPT=y
    CONFIG_DEBUG_SYMBOLS=y
   +CONFIG_EXAMPLES_ALARM=y
    CONFIG_EXAMPLES_HELLO=y
    CONFIG_FS_PROCFS=y
    CONFIG_FS_PROCFS_REGISTER=y
    CONFIG_HAVE_CXX=y
    CONFIG_HAVE_CXXINITIALIZE=y
    CONFIG_INIT_ENTRYPOINT="spresense_main"
   +CONFIG_NDEBUG=y
    CONFIG_NSH_ARCHINIT=y
    CONFIG_NSH_BUILTIN_APPS=y
    CONFIG_NSH_READLINE=y
   @@ -45,7 +50,10 @@ CONFIG_RAM_START=0x0d000000
    CONFIG_READLINE_CMD_HISTORY=y
    CONFIG_RR_INTERVAL=200
    CONFIG_RTC=y
   +CONFIG_RTC_ALARM=y
    CONFIG_RTC_DRIVER=y
   +CONFIG_RTC_FREQUENCY=32768
   +CONFIG_RTC_HIRES=y
    CONFIG_SMP=y
    CONFIG_SMP_NCPUS=2
    CONFIG_SPI=y
   ```
   
   ```
   --- a/examples/alarm/alarm_main.c
   +++ b/examples/alarm/alarm_main.c
   @@ -125,12 +125,6 @@ static int alarm_daemon(int argc, FAR char *argv[])
                  g_alarm_received[i] = false;
                }
            }
   -
   -      /* Now wait a little while and poll again.  If a signal is received
   -       * this should cause us to awken earlier.
   -       */
   -
   -      usleep(500 * 1000L);
        }
   ```
   
   However, I can not reproduce the crash that happened on esp32-devkitc 
(xtensa).
   


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