raspberrypi / pico-sdk

BSD 3-Clause "New" or "Revised" License
3.64k stars 903 forks source link

pico_unique_id header needs some updates #1915

Open lurch opened 1 week ago

lurch commented 1 week ago

From reading the comments in unique_id.h (which also appear here ) you might think that pico_get_unique_board_id always returns the ID of the flash chip. However looking at the implementation it looks like that on RP2350 it actually gives you the SYS_INFO_CHIP_INFO (which I think is described in section 5.4.8.17. of https://datasheets.raspberrypi.com/rp2350/rp2350-datasheet.pdf ?). And I guess this also means that you won't get a unique_id of all-0xEE on PICO_NO_FLASH builds for RP2350? :wink:

peterharperuk commented 1 week ago

Yes, it, it uses a value from OTP on rp2350