-
Notifications
You must be signed in to change notification settings - Fork 663
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AC6下编译NXP S32K146报错 #55
Comments
#! armclang --target=arm-arm-none-eabi -mcpu=cortex-m4 -xc -E
#if (defined(flash_vector_table)) #define m_interrupts_start 0x00000000 #define m_flash_config_start 0x00000400 #define m_text_start 0x00000410 #define m_interrupts_ram_start 0x1FFF0000 #define m_data_start 0x1FFF0000 + ram_vector_table_size #define m_data_2_start 0x20000000 /* Sizes */ #if (defined(heap_size)) LR_m_text m_interrupts_start m_text_start+m_text_size-m_interrupts_start { ; load region size_region #if (defined(flash_vector_table)) ER_m_flash_config m_flash_config_start FIXED m_flash_config_size { ; load address = execution address ER_m_text_const m_text_start { ; load address = execution address ER_m_text +0 m_text_size { ; load address = execution address RW_m_data m_data_start { ; RW data RW_m_code +0 m_data_size { ; RW data /* Custom Section Block that can be used to place data at absolute address. / RW_m_data_2 +0 m_data_2_size-Stack_Size-Heap_Size { ; RW data ARM_LIB_HEAP ((ImageLimit(RW_m_data_2) == m_data_2_start) ? m_data_2_start : +0) EMPTY Heap_Size { ; Heap region growing up ARM_LIB_STACK m_data_2_start+m_data_2_size EMPTY -Stack_Size { ; Stack region growing down |
最近在使用S32K146芯片,移植过程遇到些问题。开发环境:KEILV5.36 + AC6。
1. 需要自行定义__CLANG_ARM这个宏?
S32K146仅支持AC6编译器。但从AC6的用户手册上查不到有预定义__CLANG_ARM这个宏,而是定义了__GNUC__这个宏。AC6本身是兼容GCC语法的。
我不太清楚这个宏是从哪来的?是否需要自行定义?
2. 自行添加__CLANG_ARM后,编译报错,这个需要怎么改动?
我的修改:
/* C stack block name, default is STACK */
#define CMB_CSTACK_BLOCK_NAME ARM_LIB_STACK
/* code section name, default is ER_IROM1 */
#define CMB_CODE_SECTION_NAME m_text
报错:
.\app.axf: Error: L6218E: Undefined symbol Image$$m_text$$Limit (referred from cm_backtrace.o).
SCT文件见附件。
Uploading S32K146_128_flash.sct…
The text was updated successfully, but these errors were encountered: