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

   ## Summary
   
   STM32H5 stores the UID in flash memory that supports only 16-bit or 32-bit 
read accesses. The 8-bit reads introduced with the stm32_uid unification 
generate an AHB bus error and hard fault the chip when the Ethernet driver 
reads the MAC address.
   
   Read the UID as three 32-bit words into an aligned buffer and copy it to the 
caller's buffer. On little-endian ARM the resulting byte order is identical to 
byte reads, so behavior is unchanged for the other STM32 families.
   
   Fixes: https://github.com/apache/nuttx/issues/19771
   
   ## Impact
   
   fix STM32H5 UID access, read with getreg32 should work with all families
   
   ## Testing
   
   tested on nucleo-h503rb, nucleo-u5a5zji-q and stm32u083c-dk
   


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