RTEMS | RISC-V: Add support for ESP32-C3 (!1160)

Gedare Bloom (@gedare) gitlab at rtems.org
Tue Mar 31 16:40:19 UTC 2026




Gedare Bloom started a new discussion on bsps/riscv/esp32/start/bspstart.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1160#note_147638

 > +  uint32_t timg_wdtconfig0 = TIMG_READ(TIMG_WDTCONFIG0_REG);
 > +  TIMG_WRITE(TIMG_WDTCONFIG0_REG, timg_wdtconfig0 & TIMG_WDTCONFIG0_EN);
 > +
 > +  bsp_interrupt_initialize();
 > +}
 > +
 > +/* src is the offset in flash */
 > +BSP_START_TEXT_SECTION static inline void
 > +copy_from_flash_offset(void *dest, const void *src, size_t n)
 > +{
 > +  /* The RAM load sections are offset from 0x0, offset from mapped flash base */
 > +  uintptr_t flash_base = 0x3c000000;
 > +
 > +  uintptr_t flash_address = ((uintptr_t)src);
 > +  flash_address += flash_base;
 > +  memcpy(dest, (void *)flash_address, n);

is it guaranteed that `dest[0:n-1]` and `flash_address[0:n-1]` do not overlap?

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1160#note_147638
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260331/0f556029/attachment-0001.htm>


More information about the bugs mailing list