S32K358 MBDT ADC

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

S32K358 MBDT ADC

1,631件の閲覧回数
avenkat
Contributor I

Hi everyone,

I am looking for an example project for the S32K358 to read ADC values from an arbitrary pin using the MATLAB MBDT platform. Specifically, I need an example that uses software-triggered one-shot conversion mode, with data conversion updated by an interrupt.

So far, I’ve tried:

  1. Mimicking the S32 Design Studio example for S32K358 ADC.
  2. Using the MBDT example for S32K342 ADC.

Unfortunately, neither attempt was successful.

If anyone has a working example or guidance, I’d greatly appreciate your help!

Thanks in advance!

0 件の賞賛
返信
8 返答(返信)

1,514件の閲覧回数
Irina_Costachescu
NXP Employee
NXP Employee

Hello @avenkat 

Could you please share with us what errors you encountered while trying to run the MBDT application example?

As an alternative, you could also start from the s32k3xx_adc_single_read_s32ct.mdl application, which converts the Adc0Group_0, which is configured, in the associated configuration project, for SW triggered single shot conversion.

meme.png

For customizing this model for S32K358, please note that you would need to change its Hardware Part parameter, as the application is configured as default for the S32K344 MCU. For a guide on how this could be achieved, please check the model's help file.

helpy.png

Based on this new selection, a new configuration project, targeting S32K358 will be used in conjunction with the model for ensuring an initial enablement of the on-board peripherals, pins, and clocks. After making sure that those settings are in accordance to the hardware setup that you are using, you should be able to generate code from the model, and deploy it on your evaluation board.

For more information on how to configure and use ADC with MBDT for S32K3, you could also check the following article on our NXP Community.

Please let us know if this helps,
Irina

0 件の賞賛
返信

1,497件の閲覧回数
Kalcorpse
Contributor II

Hi @Irina_Costachescu 
I tried the same above but the model is not building and the code is not deployed to the board. WhatsApp Image 2024-12-14 at 12.34.51_def13bfa.jpg

0 件の賞賛
返信

1,471件の閲覧回数
Irina_Costachescu
NXP Employee
NXP Employee

Hello @Kalcorpse 

I see from your attached model screenshot, that you are using Simulink for academic use. I am not sure if your Simulink installation contains the mandatory MathWorks tools needed for being able to generate code from models, and for using MBDT. The prerequisites for using our toolbox are represented by the following MathWorks products, as described on our NXP MBDT website:

Irina_Costachescu_0-1734335344578.png

 

Could you please check on this? Also, based on this assumption, is this error something that you are facing when building other MBDT example applications as well? 

Thanks,

Irina

0 件の賞賛
返信

1,455件の閲覧回数
Kalcorpse
Contributor II

HI @Irina_Costachescu 
I have tried using BMS example projects and they work fine for me but the s32k3xx doesn't seem to work, I also have the necessary libraries and plugins for the examples to work. Screenshot 2024-12-17 102842.png

I couldn't find 358 specific examples in the s32k3xx tried to change the board config each time, still didn't seem to work. Please help with this issue.

0 件の賞賛
返信

1,452件の閲覧回数
Kalcorpse
Contributor II

Screenshot 2024-12-17 105109.png

These are the addons

0 件の賞賛
返信

1,431件の閲覧回数
Irina_Costachescu
NXP Employee
NXP Employee

Hello @Kalcorpse 

From the attached Add-Ons screenshot, I notice that you are using MBDT for BMS version 1.1.0. Our recommendation would be to install the latest available release, MBDT for BMS version 1.2.0, which officially supports MATLAB 2024b, for you to benefit of the latest available features and functionalities enabled inside the toolbox.

Could you please migrate your setup to the latest release and let us know if you still encounter the same errors?

Thanks,

Irina

0 件の賞賛
返信

1,324件の閲覧回数
Kalcorpse
Contributor II

Hi @Irina_Costachescu 

I have tried using the latest version of the software and still it doesn't seem to work fine, it still has the same problem, do you have any alternative solution for this problem. Also, bms 1.2 wouldnt affect s32k3xx examples, right?

0 件の賞賛
返信

1,384件の閲覧回数
Kalcorpse
Contributor II
スポイラ
Hi @Irina_Costachescu 

I have tried using the latest version of the software and still it doesn't seem to work fine, it still has the same problem, do you have any alternative solution for this problem. Also, bms 1.2 wouldnt affect s32k3xx examples, right?

0 件の賞賛
返信