Fixup for logo addresses + Set DFU address for PinecilV2
This commit is contained in:
@@ -170,7 +170,7 @@
|
||||
#define NO_SLEEP_MODE
|
||||
#endif
|
||||
|
||||
#define FLASH_LOGOADDR (0x08000000 + (62 * 1024))
|
||||
#define FLASH_LOGOADDR (0x08000000 + (126 * 1024))
|
||||
#define SETTINGS_START_PAGE (0x08000000 + (127 * 1024))
|
||||
|
||||
#endif /* CONFIGURATION_H_ */
|
||||
|
||||
@@ -22,7 +22,7 @@ __EM_SIZE =8K;
|
||||
|
||||
MEMORY
|
||||
{
|
||||
xip_memory (rx) : ORIGIN = 0x23000000, LENGTH = 1022K
|
||||
xip_memory (rx) : ORIGIN = 0x23000000, LENGTH = 1008K /*1024 - 8K header - 4K*2 for settings and logo*/
|
||||
itcm_memory (rx) : ORIGIN = 0x22014000, LENGTH = 12K
|
||||
dtcm_memory (rx) : ORIGIN = 0x42014000, LENGTH = 8K
|
||||
ram_memory (!rx) : ORIGIN = 0x42016000, LENGTH = 72K
|
||||
|
||||
@@ -167,8 +167,10 @@
|
||||
#define CANT_DIRECT_READ_SETTINGS
|
||||
#endif /* Pinecilv2 */
|
||||
|
||||
#define FLASH_LOGOADDR (0x23000000 + (1022 * 1024))
|
||||
#define FLASH_PAGE_SIZE (1024)
|
||||
#define FLASH_PAGE_SIZE (1024) // Read pages
|
||||
// Erase is 4 or 8 k size, so we pad these apart for now
|
||||
// If we ever get low on flash, will need better solution
|
||||
#define FLASH_LOGOADDR (0x23000000 + (1016 * FLASH_PAGE_SIZE))
|
||||
#define SETTINGS_START_PAGE (1023 * FLASH_PAGE_SIZE) // Hal auto offsets base addr
|
||||
|
||||
#endif /* CONFIGURATION_H_ */
|
||||
|
||||
@@ -407,7 +407,8 @@ DEVICE_BSP_DIR=./Core/BSP/Pinecilv2
|
||||
S_SRCS:=$(shell find $(PINECILV2_DIR) -type d \( -path $(PINECILV2_VENDOR_BSP_COMMON_DIR) \) -prune -false -o -type f -name '*.S') $(info $(S_SRCS) )
|
||||
ASM_INC=$(DEVICE_INCLUDES)
|
||||
LDSCRIPT=./Core/BSP/Pinecilv2/bl_mcu_sdk/drivers/bl702_driver/bl702_flash.ld
|
||||
|
||||
DEVICE_DFU_ADDRESS=0x23000000
|
||||
# DFU starts at the beginning of flash
|
||||
# Flags
|
||||
CPUFLAGS=-march=rv32imafc \
|
||||
-mabi=ilp32f \
|
||||
|
||||
Reference in New Issue
Block a user