An error occurs when building the example.(AN12218)

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

An error occurs when building the example.(AN12218)

跳至解决方案
495 次查看
HyungGyuKim76
Contributor I

Hi,

I downloaded the example related file from the line below and tried to build it.

https://www.nxp.com/docs/en/application-note-software/AN12218SW.zip 

Then, If I build without any settings, a path error occurs as shown below.

HyungGyuKim76_0-1658756430716.png

I don't know why it can't find the file in /src/drivers.

Please let me know which preferences need to be fixed.

0 项奖励
1 解答
483 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@HyungGyuKim76

I tested this example without changing anything ,and it works fine on myside, 

it looks like some file path is invalid in your S32 DS.

and you can change the file path using the setting menu below.

Senlent_1-1658804023149.png

 

在原帖中查看解决方案

0 项奖励
3 回复数
477 次查看
HyungGyuKim76
Contributor I

Thank you, Senlent.

Your answer is very useful solution.

I set the path directly as below and the build succeeded without error.

HyungGyuKim76_0-1658821577345.png

However, it is still a question of why the set default path("${workspace_loc:/${ProjName}/src/drivers}") is not applied.

I wonder what environment setting should be changed for successful build without adding a separate path?

0 项奖励
469 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@HyungGyuKim76

Did you use copy instead of import? I don't know the exact reason,

anyway, if such a problem occurs next time, it can be solved by adding a path.

0 项奖励
484 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@HyungGyuKim76

I tested this example without changing anything ,and it works fine on myside, 

it looks like some file path is invalid in your S32 DS.

and you can change the file path using the setting menu below.

Senlent_1-1658804023149.png

 

0 项奖励