CPU /Thermal load for S32K328 micro controller

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

CPU /Thermal load for S32K328 micro controller

99 Views
muthukarupan
Contributor I

We need help to implement the CPU/thermal load for S32K328 microcontroller in our project. Please let me know the API's to test the CPU/thermal loading. Kindly mention all the steps to run in multiple cores. 

Tags (1)
0 Kudos
Reply
2 Replies

63 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

for S32K3, there is no dedicated single RTD API for “CPU/thermal load test”. Usually this is implemented by:

- generating CPU load on each core using application busy loops or RTOS tasks
- monitoring die temperature through the internal TempSense path via ADC APIs

For temperature monitoring, please check the ADC TempSense APIs:

Adc_Sar_Ip_TempSenseEnable()
Adc_Sar_Ip_GetConvData()
Adc_Sar_Ip_TempSenseCalculateTemp()

see more e,g on https://community.nxp.com/t5/S32K/Internal-Temperature-sensor/m-p/1688673

For multicore execution on S32K328:

- create/use an S32K3 multicore RTD project
- start the secondary core using the NXP multicore startup flow
- run a CPU stress task on each core
- periodically read TempSense and log temperature versus load

see below link for multicore project generation guide
https://community.nxp.com/t5/S32K/Multicore-applications-on-the-S32K3-series-processors/m-p/2050051

BR, Petr

0 Kudos
Reply

72 Views
db16122
Contributor III

according to the S32K UM, there are Temperature Sensor (TempSense) inside. Maybe there are some routine at S32 DESIGN STUDIO sdk

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2378716%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ECPU%20%2FThermal%20load%20for%20S32K328%20micro%20controller%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2378716%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EWe%20need%20help%20to%20implement%20the%20CPU%2Fthermal%20load%20for%20S32K328%20microcontroller%20in%20our%20project.%20Please%20let%20me%20know%20the%20API's%20to%20test%20the%20CPU%2Fthermal%20loading.%20Kindly%20mention%20all%20the%20steps%20to%20run%20in%20multiple%20cores.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2378991%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20CPU%20%2FThermal%20load%20for%20S32K328%20micro%20controller%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2378991%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%3Efor%20S32K3%2C%20there%20is%20no%20dedicated%20single%20RTD%20API%20for%20%E2%80%9CCPU%2Fthermal%20load%20test%E2%80%9D.%20Usually%20this%20is%20implemented%20by%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CDIV%3E%0A%3CP%3E-%20generating%20CPU%20load%20on%20each%20core%20using%20application%20busy%20loops%20or%20RTOS%20tasks%3CBR%20%2F%3E-%20monitoring%20die%20temperature%20through%20the%20internal%20TempSense%20path%20via%20ADC%20APIs%3C%2FP%3E%0A%3CP%3EFor%20temperature%20monitoring%2C%20please%20check%20the%20ADC%20TempSense%20APIs%3A%3C%2FP%3E%0A%3CP%3EAdc_Sar_Ip_TempSenseEnable()%3CBR%20%2F%3EAdc_Sar_Ip_GetConvData()%3CBR%20%2F%3EAdc_Sar_Ip_TempSenseCalculateTemp()%3C%2FP%3E%0A%3CP%3Esee%20more%20e%2Cg%20on%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2FInternal-Temperature-sensor%2Fm-p%2F1688673%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2FInternal-Temperature-sensor%2Fm-p%2F1688673%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EFor%20multicore%20execution%20on%20S32K328%3A%3C%2FP%3E%0A%3CP%3E-%20create%2Fuse%20an%20S32K3%20multicore%20RTD%20project%3CBR%20%2F%3E-%20start%20the%20secondary%20core%20using%20the%20NXP%20multicore%20startup%20flow%3CBR%20%2F%3E-%20run%20a%20CPU%20stress%20task%20on%20each%20core%3CBR%20%2F%3E-%20periodically%20read%20TempSense%20and%20log%20temperature%20versus%20load%3C%2FP%3E%0A%3CP%3Esee%20below%20link%20for%20multicore%20project%20generation%20guide%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2FMulticore-applications-on-the-S32K3-series-processors%2Fm-p%2F2050051%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2FMulticore-applications-on-the-S32K3-series-processors%2Fm-p%2F2050051%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EBR%2C%20Petr%3C%2FP%3E%0A%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2378828%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20CPU%20%2FThermal%20load%20for%20S32K328%20micro%20controller%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2378828%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Eaccording%20to%20the%20S32K%20UM%2C%20there%20are%26nbsp%3BTemperature%20Sensor%20(TempSense)%20inside.%20Maybe%20there%20are%20some%20routine%20at%20S32%20DESIGN%20STUDIO%20sdk%3C%2FP%3E%3C%2FLINGO-BODY%3E