mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-30 08:24:11 +01:00
575010169a
The board info blob is stored in the last 128 bytes of the bootloader's flash bank. You can access this data from the application firmware like this: #include <pios_board_info.h> if (pios_board_info_blob.magic == PIOS_BOARD_INFO_BLOB_MAGIC) { /* Check some other fields */ } DO NOT link pios_board_info.c into your application firmware. Only bootloaders should provide the content for the board info structure. The application firmware is only a user of the data.
13 lines
590 B
Plaintext
13 lines
590 B
Plaintext
MEMORY
|
|
{
|
|
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 0x10000
|
|
BL_FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 0x05000 - 0x00080
|
|
BD_INFO (r) : ORIGIN = 0x08005000 - 0x80, LENGTH = 0x00080
|
|
FLASH (rx) : ORIGIN = 0x08005000, LENGTH = 0x80000 - 0x05000
|
|
FLASHB1 (rx) : ORIGIN = 0x00000000, LENGTH = 0
|
|
EXTMEMB0 (rx) : ORIGIN = 0x00000000, LENGTH = 0
|
|
EXTMEMB1 (rx) : ORIGIN = 0x00000000, LENGTH = 0
|
|
EXTMEMB2 (rx) : ORIGIN = 0x00000000, LENGTH = 0
|
|
EXTMEMB3 (rx) : ORIGIN = 0x00000000, LENGTH = 0
|
|
}
|