mirror of
https://github.com/Fishwaldo/bl_mcu_sdk.git
synced 2025-03-15 19:31:43 +00:00
[fix] fix lp group config
This commit is contained in:
parent
942bcec6fe
commit
47c662afae
2 changed files with 2 additions and 4 deletions
|
@ -278,11 +278,9 @@ void board_init(void)
|
||||||
/* D0 image offset on flash is CONFIG_D0_FLASH_ADDR+0x1000(header) */
|
/* D0 image offset on flash is CONFIG_D0_FLASH_ADDR+0x1000(header) */
|
||||||
bflb_sf_ctrl_set_flash_image_offset(CONFIG_D0_FLASH_ADDR + 0x1000, 1, SF_CTRL_FLASH_BANK0);
|
bflb_sf_ctrl_set_flash_image_offset(CONFIG_D0_FLASH_ADDR + 0x1000, 1, SF_CTRL_FLASH_BANK0);
|
||||||
|
|
||||||
Tzc_Sec_Set_CPU_Group(GLB_CORE_ID_LP, 2);
|
Tzc_Sec_Set_CPU_Group(GLB_CORE_ID_LP, 0);
|
||||||
/* LP boot from 0x58020000 */
|
/* LP boot from 0x58020000 */
|
||||||
GLB_Set_CPU_Reset_Address(GLB_CORE_ID_LP, 0x58020000);
|
GLB_Set_CPU_Reset_Address(GLB_CORE_ID_LP, 0x58020000);
|
||||||
/* LP image offset on flash is CONFIG_LP_FLASH_ADDR+0x1000(header) */
|
|
||||||
bflb_sf_ctrl_set_flash_image_offset(CONFIG_LP_FLASH_ADDR + 0x1000, 2, SF_CTRL_FLASH_BANK1);
|
|
||||||
|
|
||||||
bflb_irq_restore(flag);
|
bflb_irq_restore(flag);
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,6 @@ void board_iso11898_gpio_init(void);
|
||||||
#define DEFAULT_TEST_UART_DMA_RDR DMA_ADDR_UART1_RDR
|
#define DEFAULT_TEST_UART_DMA_RDR DMA_ADDR_UART1_RDR
|
||||||
|
|
||||||
#define CONFIG_D0_FLASH_ADDR 0x100000
|
#define CONFIG_D0_FLASH_ADDR 0x100000
|
||||||
#define CONFIG_LP_FLASH_ADDR 0x200000
|
#define CONFIG_LP_FLASH_ADDR 0x20000
|
||||||
|
|
||||||
#endif
|
#endif
|
Loading…
Add table
Reference in a new issue