下了一个IAR for ARM 5.3版本. 下载了神舟STM32F开发板资料并尝试编译一个STM32F103的IAR例子, 发现编译一大堆错误. 手工调整后, 还有一个报错不知道怎么解决:
Error[Ta041]: Cannot call intrinsic function "__DSB" in this architecture. G:\SD READER\core_cm3.h 1724
看上去编译器似乎无法识别__DSB. 错误的子函数:
static __INLINE void NVIC_SystemReset(void)
{
SCB->AIRCR = ((0x5FA << SCB_AIRCR_VECTKEY_Pos) |
(SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) |
SCB_AIRCR_SYSRESETREQ_Msk); /* Keep priority group unchanged */
__DSB(); /* Ensure completion of memory access */
while(1); /* wait until reset */
} |