Move Project from CW10.2 to CW10.4

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Move Project from CW10.2 to CW10.4

跳至解决方案
776 次查看
rabbit
Contributor III

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

标签 (1)
0 项奖励
回复
1 解答
623 次查看
arpitaagarwal-b
NXP Employee
NXP Employee

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

在原帖中查看解决方案

0 项奖励
回复
2 回复数
624 次查看
arpitaagarwal-b
NXP Employee
NXP Employee

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

0 项奖励
回复
623 次查看
rabbit
Contributor III

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.

0 项奖励
回复