[S32 Design Studio] S32K142 - ADC Driver Configure Error

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

[S32 Design Studio] S32K142 - ADC Driver Configure Error

5,582 次查看
anh_nguyen
Contributor II

Hello NXP experts,

I'm using S32 Design Studio to configure CPU S32K142, package 64. It is strong and convenience : )

But I would like to have 2 questions

1st Question)

in Specification it notes that ADC0 has 16 external input channels

s32 spec.jpg

But when I configure ADC0 with external input channel 12 it always shows the error as ADC1 has 11 input only.

I think this is tool bug, how can I pass it to generate the ADC driver code correctly ?

ADC0 error.jpg

2nd Question)

ADC1 of S32142-64 pins  has 11 external input channels only. But look at the Peripheral Pins mapping

ADC1_SE9 is not available while ADC1_SE11 is connected to pin 53. In that case from Processor Expert, if I configure ADC1 with external input channel 11, it should be OK. But it again shows the error ?

How can I solve this problem ?

adc1 error.jpg

Kindly check

Thank you

Best regards,

Anh.Nguyen

13 回复数

2,451 次查看
anh_nguyen
Contributor II

Hello Jiri,

After changing the tool chain , I face with the new problem:

Build All error

Thank you alot

H.Anh

build_error.png

0 项奖励

2,451 次查看
jiri_kral
NXP Employee
NXP Employee

Hi Anh, 

to clarify - you have an older project and you are trying it migrate into latest SDK because of package layout error in SDK you was using, am I correct? Or you start with new project from scratch with older SDK? What was your SDK version when you switch it into RTM 3.0?

If the second cause is yours - (started with new project) - the easy way how to migrate it into latest SDK is just start again and select RTM 3.0 in project wizard: 

s32ds_2019-06-19_07-56-56.png

Jiri

0 项奖励

2,451 次查看
anh_nguyen
Contributor II

Hello Jiri,

Bad luck I have an old project, toolchain is S32K142_SDK_gcc version 0.8.6

and I need to migrate to latest SDK

Which solution should be the best ?

Regards,

Anh

0 项奖励

2,451 次查看
jiri_kral
NXP Employee
NXP Employee

Hi,

may be someone from SDK team have better solution - but for me the only  working way is create new empty project based on latest SDK, add all Processor Expert components (as on the old project), configure it again (based on values from old project) and copy source code into new project. 

There is long time between these two versions and some components aren't compatible even for configuration store/restore. 

Jiri

0 项奖励

2,451 次查看
anh_nguyen
Contributor II

Hello Jiri,

Thank you a lot for your support  : )

Anh

0 项奖励

2,451 次查看
anh_nguyen
Contributor II

Hello again 

I'm trying to replace SDK  RTM 3.0.0 but it is impossible.

Do you know the reason is why ?

Thank you

sdk.jpg

0 项奖励

2,451 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

Yes, I'm using 64 pin package layout. What's your Toolchain? Latest SDK supports ARM Bare-Metal 32-bit target: 

pastedImage_1.png

Jiri

2,451 次查看
anh_nguyen
Contributor II

Hello Jiri,

It is standard S32DS toolchain, should I change to ARM Bare-Metal ?

toolchain.png

0 项奖励

2,451 次查看
anh_nguyen
Contributor II

Hello Jiri,

Just confirm again, I'm using S32K142  64 pins package

If I configure ADC with S32K142 100 pins package there is no current errors

64 package.jpg

0 项奖励

2,451 次查看
jiri_kral
NXP Employee
NXP Employee

Hi,

please update your S32DS and use latest SDK version - RTM 3.0.0

https://community.nxp.com/docs/DOC-341068 

In this version is ADC config working correctly:

pastedImage_1.png

Jiri

2,451 次查看
anh_nguyen
Contributor II

Hello Jiri,

This one should be the latest version right ? but I still meet the trouble.

Any other part of tool do I need to update ?

Thank you

latest.jpg

0 项奖励

2,451 次查看
martin_kovar
NXP Employee
NXP Employee

Hello,

could you please specify which SDK version you use?

Regards,

Martin

0 项奖励

2,451 次查看
anh_nguyen
Contributor II

Hello Martin,

I am using version 2018.R1

Is it too old ? Is there any update package available ?

Thank you

s32 version.jpg

0 项奖励