From a9544df6d1da7f38ff96710697c8b43d4774f04c Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Thu, 15 Jun 2023 05:49:45 -0700 Subject: [PATCH] nxp_imxrt1170-evk:Entry is start --- .../imxrt1170-evk/nuttx-config/scripts/script.ld | 2 +- boards/nxp/imxrt1170-evk/src/init.c | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/boards/nxp/imxrt1170-evk/nuttx-config/scripts/script.ld b/boards/nxp/imxrt1170-evk/nuttx-config/scripts/script.ld index fd73f80263..0762eaf605 100644 --- a/boards/nxp/imxrt1170-evk/nuttx-config/scripts/script.ld +++ b/boards/nxp/imxrt1170-evk/nuttx-config/scripts/script.ld @@ -34,7 +34,7 @@ EXTERN(g_flash_config) EXTERN(g_image_vector_table) EXTERN(g_boot_data) -ENTRY(_stext) +ENTRY(__start) SECTIONS { diff --git a/boards/nxp/imxrt1170-evk/src/init.c b/boards/nxp/imxrt1170-evk/src/init.c index b673006659..9fbba3f7df 100644 --- a/boards/nxp/imxrt1170-evk/src/init.c +++ b/boards/nxp/imxrt1170-evk/src/init.c @@ -254,15 +254,15 @@ __EXPORT int board_app_initialize(uintptr_t arg) int ret = OK; board_spi_reset(10, 0xffff); + /* + if (OK == board_determine_hw_info()) { + syslog(LOG_INFO, "[boot] Rev 0x%1x : Ver 0x%1x %s\n", board_get_hw_revision(), board_get_hw_version(), + board_get_hw_type_name()); - if (OK == board_determine_hw_info()) { - syslog(LOG_INFO, "[boot] Rev 0x%1x : Ver 0x%1x %s\n", board_get_hw_revision(), board_get_hw_version(), - board_get_hw_type_name()); - - } else { - syslog(LOG_ERR, "[boot] Failed to read HW revision and version\n"); - } - + } else { + syslog(LOG_ERR, "[boot] Failed to read HW revision and version\n"); + } + */ px4_platform_init(); /* configure the DMA allocator */