I have a project fully function at CW10.2, I move it to CW10.4 today, it fails the compiler in many place.
it even fails on "MK60DZ10.h" in
typedef struct GPIO_MemMap {
uint32_t PDOR; /**< Port Data Output Register, offset: 0x0 */
uint32_t PSOR; /**< Port Set Output Register, offset: 0x4 */
uint32_t PCOR; /**< Port Clear Output Register, offset: 0x8 */
uint32_t PTOR; /**< Port Toggle Output Register, offset: 0xC */
uint32_t PDIR; /**< Port Data Input Register, offset: 0x10 */
uint32_t PDDR; /**< Port Data Direction Register, offset: 0x14 */
} volatile *GPIO_MemMapPtr; ===>Fails on compiler, says "illegal function definition"
Does anyone have suggestions?
Regards
解決済! 解決策の投稿を見る。
Hello,
Try cleaning the code before building and see if the errors are removed.
Otherwise, Kindly check the include paths at Project->Properties->C/C++ Build-> Settings->Arm Ltd windows GCC C Compiler->Directories.
You might have absolute paths in your project properties which is generating errors.
Change this as per the new code location.
If errors still persist, kindly share the code.
Thanks and Regards
Arpita Agarwal
Hello,
Try cleaning the code before building and see if the errors are removed.
Otherwise, Kindly check the include paths at Project->Properties->C/C++ Build-> Settings->Arm Ltd windows GCC C Compiler->Directories.
You might have absolute paths in your project properties which is generating errors.
Change this as per the new code location.
If errors still persist, kindly share the code.
Thanks and Regards
Arpita Agarwal
That is not for my case.
I found that when I open a new project, it also point to "Build Configuration ==>Set Active ==>RAM", even my previous is "Build Configuration ==>Set Active ==>Flash".
I change it back to FLASH, the compile pass.