eren-terzioglu commented on issue #19120: URL: https://github.com/apache/nuttx/issues/19120#issuecomment-4681830026
Hi, RTC heap for current Espressif's risc-v implementation is missing and not planned as high priority thing to do. If that feature is needed and planning to implement that I would suggest to take a look at legacy c3 implementation. Don't want to make a full guide but `esp32c3_textheap.c` source file is the place that initializes text heap. It is possible to start from here and then it will allocate a space in heap for related operation. After that it is possible to port rtc heap with checking `esp32c3_rtcheap.c` source file. It is not a must but that will save some space with using rtc memory as text heap. To initialize rtc memory as text heap that will require some linker script variables. To do that please check `_srtcheap` and `_ertcheap` variables on `boards/risc-v/esp32c3-legacy/common/scripts` folder. For any other question feel free to ask -- 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]
