LED blink using S32K3X4EVB T-172

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

LED blink using S32K3X4EVB T-172

789 Views
kolyanimohanto
Contributor III

 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]);

kolyanimohanto_0-1720525150130.png

 

 

Also please help me how I should configure the pins from the PINS section and which pins should be used in this project

0 Kudos
Reply
3 Replies

774 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @kolyanimohanto 

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.

VaneB_0-1720556363999.png

VaneB_1-1720556376291.png

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

0 Kudos
Reply

733 Views
kolyanimohanto
Contributor III

Thank you for the reply. 

I have some other problems further.

1) How to get rid of this breakpoint at the clockconfig statement

kolyanimohanto_0-1720693080723.png

2) How do I setup and configure the semihosting config?

kolyanimohanto_1-1720693341159.pngkolyanimohanto_2-1720693362291.png

 

0 Kudos
Reply

727 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @kolyanimohanto 

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.

VaneB_0-1720713062989.png

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

0 Kudos
Reply