简体   繁体   English

在模拟器中运行时函数调用时发生ARM硬故障

[英]ARM hard fault on runtime function call in simulator

I'm trying to build and run some project from 3rd party sources for bare-metal(no OS)ARM Cortex M3. 我正在尝试从第三方组织构建和运行一些项目,以用于裸机(无OS)ARM Cortex M3。

I build it with arm-none-eabi-gcc(success) with newlib. 我用newlib用arm-none-eabi-gcc(success)构建它。

I run it under simulator of TI Code Composer Studio. 我在TI Code Composer Studio的模拟器下运行它。

The problem: 问题:

When I run it, it fails into hard fault (entering into corresponding ISR) on the first call to the runtime library function 当我运行它时,在第一次调用运行时库函数时,它会陷入严重故障(进入相应的ISR)

Till now I sow it failing on calls to memmove or memcpy. 直到现在,我在调用memmove或memcpy时都无法播种。 When tracing the disassembly I see that it fails exactly on the instruction 跟踪反汇编时,我发现它完全在指令上失败

BLX memset BLX记忆集

The question: What can cause the fault and how to debug it ??? 问题:什么会导致故障以及如何调试?

Are you using both ARM and Thumb? 您是否同时使用ARM和Thumb? 'BLX label' calls the label, (using link register for return address), and changes to Thumb mode. “ BLX标签”调用标签(使用链接寄存器作为返回地址),并切换到Thumb模式。 Are you linking with the correct version of the library? 您是否链接到正确版本的库?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM