The FRDM-KL25Z Open Source Logic Analyzer based on SUMP presented here was already very useful with the added trigger support. But it was not capable to do a sampling rate above a few hundred kHz. That’s ok for slower probing, but not for anything with a higher speed. Using DMA (Direct Memory Access) instead of timer based sampling can remove that limitation :-).
Tag Archives: CodeWarrior
Freedom Robot solves the Maze
Finally I have found some time over the past week-end to enhance my Zumo robot. After I had my line following robot based on the Pololu Zumo chassis and the FRDM-KL25Z, I thought it should be easy and logical to solve a maze. Logical: yes. Easy: not that much. In fact it took me longer than expected. As always, there are a lot of tiny and important problems to solve (the maze alone was easy 🙂 ).
Search in Processor Expert Component Properties
Sometimes I’m looking for a functionality, and I cannot find it. But this does not mean that it does not exist ;-).
The Eclipse preference pages have a great filter text field: If I want to change a setting which has something to do with ‘color’, I can enter that text and it will show me all setting pages having something to do with ‘color’:
USB MSD Host for the Freedom Board
Sometimes things take longer than anticipated. And this is definitely the case for my USB MSD Host project where I wanted to use a USB memory stick with the Freedom FRDM-KL25Z board.
But finally, I have things working. At least most of the time ….
Switching Processor Package in Processor Expert
When I create a new project for the KL05Z with Processor Expert, then it shows up as 48 pin LQFP package in the project:
However, when I look at my board, it has a KL05Z32 in a LQFP package with 32 pins:
Freedom Logic Analyzer with Triggers
The first FRDM-KL25Z Freedom Logic Analyzer firmware was missing one important feature: Triggers! But this weekend the firmware has evolved a bit :-).
Triggers
DAC Example with the Freedom Board
After working on an ADC example, a DAC one was missing. Julio E. Fajardo is a reader of this blog, and he was so kind to send me an example project for the FRDM-KL25Z. The example is able to produce produce different waveforms with the DAC. The project has two examples which they are enabled/disabled in main(). One example waveform the sawtooth:
Skipping Breakpoints
The challenge with small microcontroller like the ARM-Cortex-M0+ is that they have very limited debugging resources. As such, the number of hardware break points is very limited (see this post). For example for the KL25Z on the Freedom board, I only have 2 break points available if I want to do stepping:
Be Aware of the Baud Problem
I’m using serial communication in different flavors for my project: with the shell, with OpenSDA USB CDC, to use printf(), and with the Bluetooth module. Processor Expert is a big helper, but as for any software, it is not bug free. And there is a problem with Processor Expert in CodeWarrior for MCU10.3 in respect with Baud settings for a serial interface.
Processor Expert Configuration Registers View
In “Using the Reset Button on the Freedom Board as User Button”, I had the problem to find out why a setting did not make it into my generated code. There is the fundamental question: “How does a setting impact my microcontroller register settings?”. There is an answer to that question: The Configuration Registers view:










