RTEMS | bps/arm/tms570: Add 4357x VIM ECC register definitions and macros (!1260)

Avi Weiss (@thnkslprpt) gitlab at rtems.org
Sun May 24 19:00:58 UTC 2026



Avi Weiss created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1260

Project:Branches: thnkslprpt/rtems:fix-5587-enable-vim-ecc-for-4357 to rtems/rtos/rtems:main
Author:   Avi Weiss



- introduces a variant-aware `tms570_vim_t` struct so the ECC version (on the 4357 variants) can be represented and we can set the required flags
- adds the required LC4357 VIM ECC initialization sequence: set fallback vector (`FBVECADDR`), enable ECC and then clear ECC error flags after the for loop rewrites the vector table.
- replaces the hard-coded VIM vector table initialization limit (magic number) with the already defined constant `BSP_INTERRUPT_VECTOR_COUNT`
- LS3137 behavior should remain unchanged with this merge request

Confirmed working and expected behavior via test probe on TMS570LC43x Launchpad XL:
```c
...
ECCSTAT   = 0x00000000
ECCCTL    = 0x05050a0a
UERRADDR  = 0xfff82208
FBVECADDR = 0x00003eac
SBERRADDR = 0xfff820e0
ECCCTL decode: SBE_EVT_EN=0x5 EDAC_MODE=0x5 TEST_DIAG_EN=0xa ECCENA=0xa
...
```

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1260
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/20260524/66b6b4e1/attachment.htm>


More information about the bugs mailing list