S32K312 EVB-Q172 and S32 Design Studio Hello NXP community, I am working with the S32K312 EVB-Q172 and S32 Design Studio (S32DS). While creating a new project, I am facing the following issues: Some header files (like Mcu.h ) are not found during compilation, even though I selected the S32K3 platform SDK (v6.0.0). Not all example projects for the S32K312 are visible in S32DS. I expected sample applications such as GPIO/LED toggle, UART, etc., but many are missing. Could you please guide me on: How to properly include all SDK headers so that files like Mcu.h are available? Whether there is a separate package or update needed to get all the S32K312 example projects in S32DS? Thanks in advance for the support. Regards, NPD Dept, SCTSPL Re: S32K312 EVB-Q172 and S32 Design Studio Hi@npdelectronics
For bare-metal code, please review the header file definitions for each peripheral, "S32K312_SIUL2.h." In RTD 6.0.0, "SIUL2" is not defined, but "IP_SIUL2."
Please refer to the RTD S32K344 example. We do not have the time to support customers implementing their applications using bare-metal code. Re: S32K312 EVB-Q172 and S32 Design Studio Thanks for your time and consideration. Actually, I was trying to get to know about the s32ds platform and the EVB before using it in our projects. so, I tried the following program for led blinking but having some errors with the code. /* Copyright 2023 NXP */ /* Simple LED Blink Example for S32K312 EVB-Q172 */ /* This code directly configures SIUL2 registers to toggle PTC6 */ #include "S32K312.h" #define LED_PORT 2U /* Port C = 2 in SIUL2 */ #define LED_PIN 6U /* Pin number 6 (PTC6, user LED on EVB) */ /* Simple delay */ void delay(volatile uint32_t count) { while (count--) { __asm volatile ("nop"); } } int main(void) { /* Enable clock for PORTC (SIUL2) */ MC_ME->PCTL[LED_PORT] = 0x00; // Enable clock to PORTC peripheral /* Configure PTC6 as GPIO output */ SIUL2->MSCR[LED_PIN + (LED_PORT * 16)] = SIUL2_MSCR_SSS(0) /* GPIO mode */ | SIUL2_MSCR_OBE(1) /* Output buffer enable */ | SIUL2_MSCR_IBE(0);/* Input buffer disable */ /* Loop forever: toggle LED */ for (;;) { SIUL2->GPDO[LED_PIN + (LED_PORT * 16)] = 1; // LED ON delay(800000); SIUL2->GPDO[LED_PIN + (LED_PORT * 16)] = 0; // LED OFF delay(800000); } return 0; } Re: S32K312 EVB-Q172 and S32 Design Studio Hi@npdelectronics
1.How to properly include all SDK headers so that files like Mcu.h are available?
please share your project and i will check it for you.
2.Whether there is a separate package or update needed to get all the S32K312 example projects in S32DS?
No such package available,
Before RTD 2.0.X, we do provided examples for S32K312,but there is no example for S32K312 in latest RTD driver, you can refer to S32K344。
記事全体を表示