We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I am training myself to use MDK5 on an ST Micro 32F429IDISCOVERY board, which uses the STM32F429ZI, Cortex-M4 processor. I found a cheat sheet on the Keil web site entitled "STMicroelectronics: Cortex(TM)-M4 Training STM32F429" at:
- http://www.keil.com/appnotes/files/apnt_253.pdf
The sheet claims to have been written in 'Winter 2013' and to be based on MDK4 (pg 3). I have made it to page 11 and found it to exhibit most of the claimed features with the following exceptions:
1. On pg. 6, after you have built, loaded, and executed the 'Blinky' project, the LEDs LD3 and LD4 are supposed to blink. On my board, they do not, even though I can step through the main control loop and see calls to LED_On () and LED_Off(num) being executed.
2. On pg. 10 it teaches you how to load global variables into the Logic Analyzer and display them in in a manner resembling a scope trace. I can get the variables to register, but no values are displayed (not even 0).
3. On pg. 11 it walks you through testing the printf feature, and view "Hello World" in the Debug Viewer window. It attributes this to the: printf("Hello World\n\r");
statement near line 100 of Blinky.c.
The version of Blinky.c that I installed with MDK5 has no printf statements whatsoever. The app note has an accompanying set of project files which MDK5 tells you were designed for MDK4 and which cannot be built without installing "Legacy support", but that Blinky.c contains no printf statements either.
Before I dive any deeper, I am wondering:
1. How many Blinky projects for the 32F429IDISCOVERY board exist? Where are they located? Did I use the wrong one? Are there multiple versions of the 32F429IDISCOVERY board with incompatible pinouts?
2. Is there some additional trick to get the Logic Analyzer to work? As suggested by the cheat sheet, I tried exiting and re-entering debug mode and cycling power the the Discovery board. They made no difference.
3. Where have all the printf's gone?
My thanks for any insights.
CORRECTION!
Despite all my pre-cautions, I still managed to get lost in that directory jungle and loaded the wrong app. The Blinky app that comes with App Note 253 MIGHT be functional, but will not build under MDK5 without installing "Legacy Support" as it was created with MDK4.
I can't install "Legacy Support" myself and the guy who can was out to lunch, so while waiting I tried using the "20) Creating your own project from scratch: Using Blinky source files" chapter of the App Note 253 PDF, but instead of creating an empty project, pulled in the source files from the App note 253 .zip module.
App Note 253 itself was written for MDK4 and there are subtle differences in several of the windows, but I managed to guess my way through all of them, build, load, and run the Blinky example without further tweaking of the source files. (It works!)
So, while I would still like to know how to identify the location of a file if it's not in the project directory, this gap is not holding me up any more.
Thanks for your hints!