RTEMS | bsp/arm/tms570: ms570_bsp_pin_set/clear_function do not unlock the IOMM & silently fail (#5559)
Avi Weiss (@thnkslprpt)
gitlab at rtems.org
Fri Apr 24 15:49:00 UTC 2026
Avi Weiss created an issue: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5559
## Summary
`tms570_bsp_pin_set_function` and `tms570_bsp_pin_clear_function` do not write the required unlock codes to the kick registers (which enables write access to the PINMMR registers).
Nor do they clear the kick registers upon completion.
## Steps to reproduce
I tested this on a TMS570 LC4357 and confirmed that `tms570_bsp_pin_set_function` silently fails - the desired set does not take effect as the IOMM is effectively still locked.
## Expected behaviour
unlock the kick registers to enable write access before trying to set a pin (and then re-lock afterwards by zeroing out the kick registers).
See `tms570_bsp_pin_config_one` and `tms570_bsp_pinmmr_config` which do correctly call `tms570_pin_config_prepare` and `tms570_pin_config_complete` to enable/disable write access.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5559
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/20260424/7e9f9fff/attachment.htm>
More information about the bugs
mailing list