I am trying a code for blinking user RGB LEDs on S32K3X4EVB T-172 Evaluation Board using S32DS v3.4.
Below attached is the code file and I am getting errors in the following lines :
1) Siul2_Dio_Ip_TogglePins(LED_GREEN_PORT, (1<<LED_GREEN_PIN));
2) Siul2_Dio_Ip_TogglePins(LED_RED_PORT, (1<<LED_RED_PIN));
3)Siul2_Dio_Ip_TogglePins(LED_BLUE_PORT, (1<<LED_RED_PIN));
4)Clock_Ip_Init(&Mcu_aClockConfigPB[0]);
Also please help me how I should configure the pins from the PINS section and which pins should be used in this project
Did you configure the RGB LED pins (PTA29, PTA30, PTA31) in the Pins tool of ConfigTools? Did you assign the Label and Identifier to each pin in the Pins tool? If yes, verify that are defined in Siul2_Port_Ip_Cfg.h, as shown in the attached images.
Also, I suggest to use as a reference the example code named Pit_Ip_example_S32K344. You can create a project from an example following this HOWTO: S32 Design Studio - Create a New S32DS Project from Example.
BR, VaneB
Thank you for the reply.
I have some other problems further.
1) How to get rid of this breakpoint at the clockconfig statement
2) How do I setup and configure the semihosting config?
1) How to get rid of this breakpoint at the clockconfig statement? By default, PEMicro debug configurations have set a breakpoint on the "main" function. You can change this in Debug Configurations > Flash or RAM GDB PEMicro Interface Debugging > Startup.
2) How do I setup and configure the semihosting config? Check the following links. It has information related to the topic that may be useful.
HOWTO: Add a new debugger configuration to an existing project
Multilink/Cyclone Debug with NXP's S32 Design Studio for ARM IDE