In Tutorial 2, the application was extended to cycle the FRDM-A-S32K312 board's RGB LED through red, green, and blue, while sending corresponding status messages to a serial terminal.
This third article shows how to add a FreeMASTER Lite server configuration using S32 Design Studio AI Support to an existing UART project on the FRDM-A-S32K312 board and create a browser dashboard that displays the current LED color – replacing the plain UART color echo.
COM# in the prompt with your own port (for example COM7), otherwise FreeMASTER Lite cannot open the serial connection to the board.
COM# with the COM port of your board before sending.
Using FreeMaster Lite create a self contained web dashboard and the server configuration file in the project folder called dashboard. FreeMaster Lite is installed at c:\NXP\2026\K3_kit\FM_32\FreeMASTER Lite\fmlite.exe The dashboard should have a volatile variable that will be used to reflect the color of the RGB LED At the top should have the controls for the board serial connection, default: connection name "S32K312 RGB Board", COM#, 115200 baud, 8 data bits, no parity, 1 stop bit The board is connected on COM# - use this serial port for the FreeMaster Lite connection The project is a plain GPIO demo with no FreeMASTER driver - add whatever is needed on the target side so it can talk to FreeMaster Lite, then build and flash it in S32DS and confirm the color actually changes from the dashboard. Start FreeMaster server and run the dashboard at the end Use the s32ds-agentic-ai MCP server; if the MCP server disconnects at any point, stop immediately and notify user.
| Symptom | Fix |
|---|---|
| ReadTSA returns count=0 | TSA not enabled (FMSTR_USE_TSA 1) or FMSTR_Poll() missing. |
| StartComm times out | Wrong COM port in .fmcfg, baud mismatch, or board not powered. |
| fmlite.exe exits immediately | Activation code not entered, or path has spaces — wrap in quotes. |
| LPUART0 baud rate wrong or peripheral not running | Open Peripherals Tool. Verify LPUART0 is enabled and its clock source is set to AIPS_PLAT_CLK. Regenerate code if you change anything. |
| LPUART0 absent at runtime | Open Peripherals Tool › McuPartition. Enable LPUART0 in the partition configuration, then regenerate. |
| FreeMASTER host times out or drops connection | FMSTR_Poll() must be called frequently — place it in the main loop or a fast periodic task. The host requires low-latency responses. |
| LPUART6 interrupts conflict with FreeMASTER | Open Peripherals Tool (Platform). Disable LPUART6 interrupts — FreeMASTER operates in polling mode and does not use interrupt-driven UART. |
| File | Step | Description |
|---|---|---|
| dashboard/led_color.html | 1 | LED colour dashboard |
| dashboard/board_115200.fmcfg | 1 | FreeMASTER Lite server configuration |
| src/main.c | 1 | Firmware with FreeMASTER TSA and LED colour variable |