Skip to content

Commit

Permalink
fix:718u memmap demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Dozingfiretruck committed Jul 8, 2024
1 parent 61fe7bb commit ba13261
Showing 1 changed file with 84 additions and 0 deletions.
84 changes: 84 additions & 0 deletions project/example_mem_map/inc/mem_map_7xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,90 @@ flash xip address(from both ap/cp view): 0x00800000---0x00c00000
#endif
#endif // (FEATURE_AMR_CP_ENABLE) || defined (FEATURE_VEM_CP_ENABLE)

#elif defined TYPE_EC718U

/* 8MB flash + 2MB psram*/

/*
flash layout, toatl 8MB
flash raw address: 0x00000000---0x00800000
flash xip address(from both ap/cp view): 0x00800000---0x01000000
0x00000000 |---------------------------------|
| header1 4KB |
0x00001000 |---------------------------------|
| header2 4KB |
0x00002000 |---------------------------------|
| fuse mirror 4KB |
0x00003000 |---------------------------------|
| bl 124KB + 4KB |
0x00023000 |---------------------------------|
| rel data(factory)20KB |
0x00028000 |---------------------------------|
| cp img 640KB |
0x000C8000 |---------------------------------|
| app img 6144KB |
0x006C8000 |---------------------------------|
| fota 600KB |
0x0075E000 |---------------------------------|
| lfs 428KB |
0x007C9000 |---------------------------------|
| kv 64KB |
0x007D9000 |---------------------------------|
| hib backup 96KB |
0x007f1000 |---------------------------------|
| rel data 52KB |
0x007fe000 |---------------------------------|
| plat config 8KB |
0x00800000 |---------------------------------|
*/

#define BOOTLOADER_FLASH_LOAD_SIZE (0x1f000)//128kB, real region size, tool will check when zip TODO:ZIP
#define BOOTLOADER_FLASH_LOAD_UNZIP_SIZE (0x22000)//136KB ,for ld

//ap image addr and size
#ifndef AP_FLASH_LOAD_SIZE
#define AP_FLASH_LOAD_SIZE (0x600000)//6m
#endif
#ifndef FULL_OTA_SAVE_ADDR
#define FULL_OTA_SAVE_ADDR (0x0)
#endif

#define AP_FLASH_LOAD_UNZIP_SIZE (0x6D6000)//7000KB ,for ld

//fota addr and size
#define FLASH_FOTA_REGION_START (0x6C8000)
#define FLASH_FOTA_REGION_LEN (0x96000)//600KB
#define FLASH_FOTA_REGION_END (0x75E000)


//fs addr and size
#define FLASH_FS_REGION_START (0x75E000)
#define FLASH_FS_REGION_END (0x7C9000)
#define FLASH_FS_REGION_SIZE (FLASH_FS_REGION_END-FLASH_FS_REGION_START) // 428KB


//fskv addr and size
#define FLASH_FDB_REGION_START (0x7C9000)//64KB
#define FLASH_FDB_REGION_END (0x7d9000)

//hib bakcup addr and size
#define FLASH_HIB_BACKUP_EXIST (1)
#define FLASH_MEM_BACKUP_ADDR (AP_FLASH_XIP_ADDR+FLASH_MEM_BACKUP_NONXIP_ADDR)
#define FLASH_MEM_BACKUP_NONXIP_ADDR (0x7d9000)
#define FLASH_MEM_BACKUP_SIZE (0x18000)//96KB
#define FLASH_MEM_BLOCK_SIZE (0x6000)
#define FLASH_MEM_BLOCK_CNT (0x4)

// mapdef
#define BOOTLOADER_PKGIMG_LIMIT_SIZE (0x1f000)

#ifndef AP_PKGIMG_LIMIT_SIZE
#define AP_PKGIMG_LIMIT_SIZE (0x600000)//6M
#endif

#elif defined TYPE_EC716S

/*2M flash only, no psram*/
Expand Down

0 comments on commit ba13261

Please sign in to comment.