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

   *Note: Please adhere to [Contributing 
Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).*
   
   ## Summary
   
   Added a simple driver for obtaining the unique device ID for the STM32G0x1 
series. Used the STM32H5 driver as a reference. 
   
   ## Impact
   
   This change should only impact the stm32f0l0g0 line of microprocessors. In 
particular it will affect the stm32g0, stm32f05xf07xf09x, and stm32f03x parts 
of that line because those memory maps have STM32_SYSMEM_UID defined. 
   
   ## Testing
   
   These changes were tested with a Nucleo-G0B1RE development board. I added 
some simple code to stm32_start.c to call stm32_get_uniqueid(uint8_t 
uniqueid[12]). I created a 12 byte array called id and passed it to 
stm32_get_uniqueid. Using VsCode and OpenOCD for debugging, I was able to 
confirm the value stored in the uint8_t id array matched what I saw in the UID 
memory location (0x1fff7590) with STM32CubeProgrammer. 
   
   The changes to stm32_start.c are not included in this pull request. 
   
   
![stm32g0b1re_uid_rm](https://github.com/user-attachments/assets/509f42e0-b059-4c77-937a-5f391f4db62f)
   
![stm32g0b1re_uid_nuttx](https://github.com/user-attachments/assets/32061747-4378-4756-aa9f-07d0e6cd5881)
   
![stm32g0b1re_uid_cube](https://github.com/user-attachments/assets/0a6fc7bc-ffcc-4b37-92f7-b9c4d025fbff)
   
   
   
   


-- 
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: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to