This tutorial was extracted from Erich Styger blog http://mcuoneclipse.wordpress.com with his agreement.
The first FRDM-KL25ZFRDM-KL25Z Freedom Logic Analyzer firmware was missing one important feature: Triggers! But this weekend the firmware has evolved a bit .
Triggers
Trigger Settings
Currently up to 8bits are supported, and only ‘Stage1′ triggers in Parallel mode. So no sequencing yet. With enabled triggers, data capturing is waiting until the value bits are matching the mask bits: (data&maskBits)==valueBits. The ‘before’ and ‘after’ ratio is not supported yet.
Sampling Rate
It is possible to select a sampling rate. Right now 100 kHz and 200 kHz are implemented:
Sampling Rate
I was able to get up to 200 kHz sampling rate with the trigger code added. It should be possible to get higher rates with optimizations enabled or reducing the interrupt load.
Recording Size
The client now offers as well different recording sizes. Although the buffer on the Freedom board always have the same size (that option reduces the amount of data transmitted to the OLS client):
Recording Size
Test Mode
And finally: The test mode functionality is implemented now:
Test Mode
With test mode enabled, the device returns test data instead of real data from the probes:
Firmware
The current software was attached to this document but I would recommend to download the updated version on GitHub with all the Processor Expert components.
To download an updated version of the full package, simply register to https://github.com/ then connect to the repository https://github.com/ErichStyger/mcuoneclipse
If you don't want to install the tool for an automated synchronisation, just click on the button to download the full package mcuoneclipse-master.zip and extract it.
To get updated components available in Processor Expert and project examples available in Codewarrior, you must copy-paste the content of the folder "mcuoneclipse-master" to the following place C:\ProgramData\Processor Expert\CWMCU_PE5_00
Warning : "ProgramData" is an hidden folder. Remember to backup first your "CWMCU_PE5_00" folder ... just in case ;D
PS: Many thanks to Rainer Geiger who provided me his implementation of triggers of the SUMP protocol!