2017-10-14 4:06 AM
hi.
i am new in stm32 and i want to programm stm32 with spl library , but i am very
Confused because some of the Headers file include to another header file , and i dont know what is these headers setting .
i use IAR IDE - if someone has some source to learn First project in IAR with SPL , please guidance me , i am realy Confused.
however, my question is when i compile this code :
i have this error:
Error[Pe147]: declaration is incompatible with ''__nounwind __interwork __softfp unsigned long __STREXH(unsigned short, unsigned short volatile *)'' (declared at line 186 of ''C:\Program Files (x86)\IAR Systems\ D:\hossein-class\2micro programming\ARM\Activity\IAR\blink3\core_cm3.h 1186
but when i clear this line : &sharpinclude <intrinsics.h> in the core_cm3.h , i hava not any errors.
I saw declaration of __STREXH function in core_cm3 and intrinsics.h , the type of them was different.
in core_cm3 was uint32_t and in intrinsics.h was __ATTRIBUTES unsigned long ;
what do i do ??
Thanks.#intrinsics2017-10-14 7:07 AM
The F1 SPL hasn't been updated in some time (no bugs to speak of), so uses older versions of CMSIS and tools
Check if there is a 'Use CMSIS' option, or some other compatibility settings
The may be other IAR centric support venues, or the company itself, review available documentation and application notes.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.