Move Project from CW10.2 to CW10.4

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Move Project from CW10.2 to CW10.4

ソリューションへジャンプ
852件の閲覧回数
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 解決策
699件の閲覧回数
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 返答(返信)
700件の閲覧回数
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 件の賞賛
返信
699件の閲覧回数
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 件の賞賛
返信