fdcavalcanti commented on PR #18408:
URL: https://github.com/apache/nuttx/pull/18408#issuecomment-4055871652

   > @fdcavalcanti I have tested on the `esp32c3-xiao:ble` config with debug 
assertions enabled and everything is working fine (logs at bottom of PR 
description). This is my only ESP device right now, and it's RISC-V not Xtensa, 
so maybe not particularly useful in reproducing the issue you noticed.
   > 
   > I took a look at the mainline initialization vs this patch, and the 
`esp32-devkitc` board already had an implemented version of 
`board_late_initialize` which is not modified in this patch. I did notice that 
in SMP builds it adds a memory region, but this step isn't performed in 
`board_app_initialize`. The two init methods are otherwise identical.
   > 
   > Would you be able to perform your test on `esp32-devkitc` for mainline 
again but this time enable `CONFIG_BOARD_LATE_INITIALIZE` instead of 
`NSH_ARCHINIT`? I'm wondering if the `board_late_initialize` logic was always 
faulty and it just wasn't noticed because `NSH_ARCHINIT` was used.
   
   @linguini1 I tried and here is the output.
   - Replaced all defconfigs entries of `esp32-devkitc`: `CONFIG_NSH_ARCHINIT` 
-> `CONFIG_BOARD_LATE_INITIALIZE` on the main branch.
   
   3 defconfig failures: 
   - smp
   - mcuboot_nsh
   - psram_usrheap
   
   I was able to test using QEMU.
   
   On SMP I got this error:
   ```
   ABD[CPU0] __esp32_start: ESP32 chip revision is v3.0
   [CPU0] dump_assert_info: Current Version: NuttX  10.4.0 c3b8c57e41 Mar 13 
2026 11:08:04 xtensa
   [CPU0] dump_assert_info: Assertion failed idx < 4: at file: 
mm_heap/mm_initialize.c:117 task(CPU0): AppBringUp process: Kernel 0x400d2bec
   ```
   Which is the issue same we had before. 
   
   I'm not able to dig deeper right now, but seems you are on the right track.


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

Reply via email to