Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7512

SDK • Re: btstack flash storage address allocation

$
0
0
By default it uses the last 2 sectors in flash. See PICO_FLASH_BANK_STORAGE_OFFSET and pico-sdk/src/rp2_common/pico_btstack/btstack_flash_bank.c

Code:

// PICO_CONFIG: PICO_FLASH_BANK_TOTAL_SIZE, Total size of the Bluetooth flash storage. Must be an even multiple of FLASH_SECTOR_SIZE, type=int, default=FLASH_SECTOR_SIZE * 2, group=pico_btstack#ifndef PICO_FLASH_BANK_TOTAL_SIZE#define PICO_FLASH_BANK_TOTAL_SIZE (FLASH_SECTOR_SIZE * 2u)#endif// PICO_CONFIG: PICO_FLASH_BANK_STORAGE_OFFSET, Offset in flash of the Bluetooth flash storage, type=int, default=PICO_FLASH_SIZE_BYTES - PICO_FLASH_BANK_TOTAL_SIZE, group=pico_btstack#ifndef PICO_FLASH_BANK_STORAGE_OFFSET#define PICO_FLASH_BANK_STORAGE_OFFSET (PICO_FLASH_SIZE_BYTES - PICO_FLASH_BANK_TOTAL_SIZE)#endif

Statistics: Posted by peterharperuk — Tue Feb 18, 2025 12:58 pm



Viewing all articles
Browse latest Browse all 7512

Trending Articles