S32K311 Peripheral Configuration Examples (ADC, UART, PWM, I2C, SPI)

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

S32K311 Peripheral Configuration Examples (ADC, UART, PWM, I2C, SPI)

1,078 Views
Kaushal9511
Contributor I

Hello NXP Team,

I am working with the S32K311 microcontroller using S32 Design Studio 3.6.1, and I prefer working at the driver level (bare-metal) instead of using MCAL.

I would like to request example projects, reference code, or documentation to help me configure the following peripherals:

ADC – Single channel configuration with polling or interrupt method

UART – Initialization with basic transmit and receive functions

PWM – Using eMIOS in OPWMB or OPWFMB mode

GPIO – Basic input/output toggling

Startup code – Bare-metal initialization (clock setup, watchdog, etc.)

I am using the S32K311 100HDFP package, and I have the RTD 2.0.0 and 2.0.3 installed.

Please let me know where I can find these examples (SDK paths or GitHub), or share any available application notes or starter projects for S32K311.

Thank you!

0 Kudos
Reply
1 Reply

1,061 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

You can find some here, but I do see if they are pure bare metal, I expect they are based on RTD.

https://community.nxp.com/t5/S32K-Knowledge-Base/All-Example-S32K311-DS3-5-RTD-3-0-0/ta-p/1841267

I have some internal examples for S32K3xx which I can share, but not via community.

If you like to get those please rise a ticket at NXP.com

Best regards,

Peter

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2136258%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K311%20Peripheral%20Configuration%20Examples%20(ADC%2C%20UART%2C%20PWM%2C%20I2C%2C%20SPI)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2136258%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20NXP%20Team%2C%3C%2FP%3E%3CP%3EI%20am%20working%20with%20the%20S32K311%20microcontroller%20using%20S32%20Design%20Studio%203.6.1%2C%20and%20I%20prefer%20working%20at%20the%20driver%20level%20(bare-metal)%20instead%20of%20using%20MCAL.%3C%2FP%3E%3CP%3EI%20would%20like%20to%20request%20example%20projects%2C%20reference%20code%2C%20or%20documentation%20to%20help%20me%20configure%20the%20following%20peripherals%3A%3C%2FP%3E%3CP%3EADC%20%E2%80%93%20Single%20channel%20configuration%20with%20polling%20or%20interrupt%20method%3C%2FP%3E%3CP%3EUART%20%E2%80%93%20Initialization%20with%20basic%20transmit%20and%20receive%20functions%3C%2FP%3E%3CP%3EPWM%20%E2%80%93%20Using%20eMIOS%20in%20OPWMB%20or%20OPWFMB%20mode%3C%2FP%3E%3CP%3EGPIO%20%E2%80%93%20Basic%20input%2Foutput%20toggling%3C%2FP%3E%3CP%3EStartup%20code%20%E2%80%93%20Bare-metal%20initialization%20(clock%20setup%2C%20watchdog%2C%20etc.)%3C%2FP%3E%3CP%3EI%20am%20using%20the%20S32K311%20100HDFP%20package%2C%20and%20I%20have%20the%20RTD%202.0.0%20and%202.0.3%20installed.%3C%2FP%3E%3CP%3EPlease%20let%20me%20know%20where%20I%20can%20find%20these%20examples%20(SDK%20paths%20or%20GitHub)%2C%20or%20share%20any%20available%20application%20notes%20or%20starter%20projects%20for%20S32K311.%3C%2FP%3E%3CP%3EThank%20you!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2136455%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K311%20Peripheral%20Configuration%20Examples%20(ADC%2C%20UART%2C%20PWM%2C%20I2C%2C%20SPI)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2136455%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3EYou%20can%20find%20some%20here%2C%20but%20I%20do%20see%20if%20they%20are%20pure%20bare%20metal%2C%20I%20expect%20they%20are%20based%20on%20RTD.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K-Knowledge-Base%2FAll-Example-S32K311-DS3-5-RTD-3-0-0%2Fta-p%2F1841267%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K-Knowledge-Base%2FAll-Example-S32K311-DS3-5-RTD-3-0-0%2Fta-p%2F1841267%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EI%20have%20some%20internal%20examples%20for%20S32K3xx%20which%20I%20can%20share%2C%20but%20not%20via%20community.%3C%2FP%3E%0A%3CP%3EIf%20you%20like%20to%20get%20those%20please%20rise%20a%20ticket%20at%20NXP.com%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3EPeter%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E