Skip to content
- Confirm shorting jumpers are installed on shield
- On JP6 to power shield from FRDM’s P3V3 supply rail
- On J11 between VIN and 5V to power buck converter
- Confirm solder jumpers are shorted: JP1, JP2, JP7, JP8
- Confirm LCD is installed on J3.
- Program FRDM-KL25Z with test code. This takes two steps because our free tools are limited to a 32 kB object file size.
- Open the Overlay project (Tools/TestCode/Overlay), build and download to MCU. This will program text font information into the MCU’s flash memory.
- Close the Overlay project.
- Open the Shield_Base_v14 project (Tools/TestCode/Shield_Base_v14), build and download to MCU. This will program a test program onto the MCU. It won’t erase the the text font information (which is located elsewhere in flash memory) because the Debug->Settings->Flash Download Erase Sectors selection tells the downloader to erase only the flash sectors used by this project. Both this and the Overlay project have this option selected to retain these memory contents when programming.

- Run the program by resetting the MCU. It will (try to) do the following:
- Initialize debug signals and RGB LED.
- Light the blue RGB LED.
- Initialize the sound system and test it by playing a short chirp.
- Initialize the ADC and white HBLED.
- Light the white LED briefly, and measure its current (I_HBLED). This also tests the buck converter, the ADC, and the current sense feedback path.
- Dim or turn off the white LED.
- Initialize the LCD subsystem and text fonts. If text font initialization fails, program lights red LED and stops here.
- Test LCD: draw colored lines to fill screen, erase, write “Test Code” on LCD.
- Display I_HBLED from the test above. It depends on voltage input to buck converter, selected by J11. Should be 54-56 mA if VIN = 5V, and about 4 mA if VIN = 3.3V.
- Initialize I2C and accelerometer. If initialization fails, program lights red LED and stops here.
- Initialize RTOS and start kernel.
- Application program threads start running:
- Accelerometer testing: Thread_Read_Accelerometer reads accelerometer and displays calculated roll and pitch values.
- Touchscreen testing: Thread_Read_TS reads touchscreen. Based on position of touch, may draw lines on screen or may mute/unmute sound system.
- Audio testing: Press Unmute on screen. Thread_Sound_Manager and Thread_Refill_Sound_Buffer generate random sounds on speaker. Signal may be monitored on TP8 (DAC output).
- Thread_Update_Screen moves/colors paddle at bottom of screen based on accelerometer readings.