Move Project from CW10.2 to CW10.4

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Move Project from CW10.2 to CW10.4

Jump to solution
853 Views
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

Labels (1)
0 Kudos
Reply
1 Solution
700 Views
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

View solution in original post

0 Kudos
Reply
2 Replies
701 Views
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 Kudos
Reply
700 Views
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 Kudos
Reply