Use external unique ID.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2024-04-15 23:45:30 +02:00
parent 3dbcefea85
commit 842919a26b
No known key found for this signature in database
GPG Key ID: C0095B7870A4CCD3
3 changed files with 3 additions and 3 deletions

@ -1 +1 @@
Subproject commit 7def35f87cfb79ac52c203a31bb5282b20dde0a9
Subproject commit 8d86a8c56b4e8dd4b525570d2ca324a29d5b901a

View File

@ -1,6 +1,6 @@
idf_component_register(
SRCS ${SOURCES}
INCLUDE_DIRS . ../../pico-keys-sdk/src ../../pico-keys-sdk/src/fs ../../pico-keys-sdk/src/rng ../../pico-keys-sdk/src/usb
REQUIRES bootloader_support esp_partition esp_tinyusb zorxx__neopixel mbedtls
REQUIRES bootloader_support esp_partition esp_tinyusb zorxx__neopixel mbedtls efuse
)
idf_component_set_property(${COMPONENT_NAME} WHOLE_ARCHIVE ON)

View File

@ -301,7 +301,7 @@ int parse_token_info(const file_t *f, int mode) {
*p++ = 0; //set later
*p++ = 0x2; *p++ = 1; *p++ = HSM_VERSION_MAJOR;
#ifndef ENABLE_EMULATION
*p++ = 0x4; *p++ = 8; pico_get_unique_board_id((pico_unique_board_id_t *) p); p += 8;
*p++ = 0x4; *p++ = 8; memcpy(p, pico_serial.id, 8); p += 8;
#else
*p++ = 0x4; *p++ = 8; memset(p, 0, 8); p += 8;
#endif