- Open S32 Design Studio 3.6.5, select Import Project from Application Code Hub
stefanvlad_1-1780063619713.png
- This will open a new Window:
stefanvlad_2-1780065330695.png
- Click on Search window and enter "brake"
- Select the Emergency LED-Based Brake Status Monitoring on FRDM-A-S32K312
stefanvlad_0-1780063360588.png
- Click on GitHub link — this will trigger S32 Design Studio IDE to automatically retrieve project attributes, then click Next>.
-
Select main branch and then click Next>.
-
Select your local path for the repo in Destination->Directory window. The S32 Design Studio IDE will clone the repo into this path, click Next>.
-
Select Import existing Eclipse projects then click Next>.
-
Select the project in this repo (only one project in this repo) then click Finish.
-
In Project Explorer, right-click the project and select Update Code and Build Project:
stefanvlad_3-1780065674210.png
-
This will generate the configuration (Pins, Clocks, Peripherals), update the source code and build the project using the active configuration (e.g. Debug_FLASH). Make sure the build completes successfully and the *.elf file is generated without errors.
-
Go to Debug and select Debug Configurations. There will be a debug configuration for this project:
stefanvlad_4-1780065730779.png
- Select the
FRDM_A_S32K312_BRAKE_MONITORING_Debug_FLASH_PNE configuration and press Debug:
stefanvlad_6-1780065836787.png
- Now the perspective will change to the Debug Perspective. Use the controls to control the program flow.
-
Results:
The LED strip lights up in different colors to indicate the current voltage level being monitored. Upon startup, all LEDs perform a test sequence to verify functionality. During normal operation, the entire strip changes color based on the measured voltage: green for safe levels, yellow for moderate levels, orange for elevated levels, and red for critical levels, providing real-time visual feedback of the electrical signal being monitored.
stefanvlad_5-1780065756598.gif