ricardgb opened a new pull request, #19256:
URL: https://github.com/apache/nuttx/pull/19256

   > ⚠️ **Disclosure:** developed with **Claude Code** (an AI coding agent) and 
validated on real Pico 2 W hardware.
   
   ## Summary
   
   Adds the text-heap allocator for the RP2350 (rp23xx), enabling 
relocatable/loadable code to be placed in executable RAM 
(`up_textheap_memalign` / `up_textheap_free` / `up_textheap_heapmember`).  The 
RP2350 Cortex-M33 executes from SRAM and NuttX runs it with the MPU disabled, 
so the text heap is backed directly by the kernel heap (`kmm_*`); no separate 
executable region or `up_textheap_data_address()` alias is required.
   
   Selected via `ARCH_HAVE_TEXT_HEAP` on `ARCH_CHIP_RP23XX`; compiled when 
`CONFIG_ARCH_USE_TEXT_HEAP` is set (off by default).
   
   ## Impact
   
   - New: `arch/arm/src/rp23xx/rp23xx_textheap.c`.
   - `arch/arm/Kconfig`: RP23XX selects `ARCH_HAVE_TEXT_HEAP`.
   - `Make.defs`/`CMakeLists.txt`: compile the file under 
`CONFIG_ARCH_USE_TEXT_HEAP`.  No change when the option is off.
   
   ## Testing
   
   - **Build:** `raspberrypi-pico-2:nsh` + `CONFIG_ARCH_USE_TEXT_HEAP=y` 
compiles cleanly; `nxstyle` clean.
   - **Hardware (Pico 2 W):** loaded a Thumb code image into the text heap and 
executed it successfully.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


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