update nxp mcux sdk, also enable dcache in board_init()

This commit is contained in:
hathach 2023-02-13 14:58:21 +07:00
parent d553768eef
commit e68c235a71
8 changed files with 11 additions and 7 deletions

@ -1 +1 @@
Subproject commit a242602a02fee2945287d446801217904a26fc7e
Subproject commit ae2ab01d9d70ad00cd0e935c2552bd5f0e5c0294

View file

@ -46,6 +46,10 @@ const uint8_t dcd_data[] = { 0x00 };
void board_init(void)
{
#if defined(__DCACHE_PRESENT) && __DCACHE_PRESENT
if (SCB_CCR_DC_Msk != (SCB_CCR_DC_Msk & SCB->CCR)) SCB_EnableDCache();
#endif
// Init clock
BOARD_BootClockRUN();

View file

@ -29,7 +29,7 @@ __attribute__((section(".boot_hdr.boot_data")))
/*************************************
* Boot Data
*************************************/
const BOOT_DATA_T boot_data = {
const BOOT_DATA_T g_boot_data = {
BOARD_BOOT_START, /* boot start location */
BOARD_BOOT_LENGTH, /* bootloader size 32K */
PLUGIN_FLAG, /* Plugin flag */

View file

@ -29,7 +29,7 @@ __attribute__((section(".boot_hdr.boot_data")))
/*************************************
* Boot Data
*************************************/
const BOOT_DATA_T boot_data = {
const BOOT_DATA_T g_boot_data = {
BOARD_BOOT_START, /* boot start location */
BOARD_BOOT_LENGTH, /* bootloader size 48K */
PLUGIN_FLAG, /* Plugin flag*/

View file

@ -29,7 +29,7 @@ __attribute__((section(".boot_hdr.boot_data")))
/*************************************
* Boot Data
*************************************/
const BOOT_DATA_T boot_data = {
const BOOT_DATA_T g_boot_data = {
BOARD_BOOT_START, /* boot start location */
BOARD_BOOT_LENGTH, /* bootloader size 48K */
PLUGIN_FLAG, /* Plugin flag */

View file

@ -29,7 +29,7 @@ __attribute__((section(".boot_hdr.boot_data")))
/*************************************
* Boot Data
*************************************/
const BOOT_DATA_T boot_data = {
const BOOT_DATA_T g_boot_data = {
BOARD_BOOT_START, /* boot start location */
BOARD_BOOT_LENGTH, /* bootloader size 48K */
PLUGIN_FLAG, /* Plugin flag */

View file

@ -29,7 +29,7 @@ __attribute__((section(".boot_hdr.boot_data")))
/*************************************
* Boot Data
*************************************/
const BOOT_DATA_T boot_data = {
const BOOT_DATA_T g_boot_data = {
BOARD_BOOT_START, /* boot start location */
BOARD_BOOT_LENGTH, /* bootloader size 48K */
PLUGIN_FLAG, /* Plugin flag */

View file

@ -29,7 +29,7 @@ __attribute__((section(".boot_hdr.boot_data")))
/*************************************
* Boot Data
*************************************/
const BOOT_DATA_T boot_data = {
const BOOT_DATA_T g_boot_data = {
BOARD_BOOT_START, /* boot start location */
BOARD_BOOT_LENGTH, /* bootloader size 32K */
PLUGIN_FLAG, /* Plugin flag */