2014-01-17 12:44 PM
I've got a STM32 F4 discovery board for STM32F401with the 9 axis sensors on it. I want to open up the demo project using Keil uVision 4 and modify it. I'm getting an error as soon as I open the project that says Error: Device not found Device: STM32F4_256KB Vendor STMicroelectronics Please update your device selection.
I've enclosed a screen shot of this error.I don't know what the heck that means. The board shows up in the device manager and is called STMicroelectronics STLink dongle which I think is correct. I've got version 5.1.0.0 of uVision. It is the Lite version.... actually now that I think about it maybe that's my problem. The Lite version is only good for 32K, right? There is a lot going on in this demo with the accelerometers and such. Is that what this error means? I'm not sure though, when I try starting the debugger I get an error ''Cannot Load Flash Device Description'' Any help would be appreciated.Mike #stm32-f4-discovery2014-01-17 01:38 PM
So really the
http://www.st.com/web/en/catalog/tools/PF259098
then? Not sure what version of Keil supports the F401 chip, and if you have to install some other package/patch to Keil to address. In 4.71 you can just set the Target to a F405OE, truncate the memory settings to those of the F401, and select the regular 1MB flash algorithm. Make sure it has the right defines, and uses the appropriate startup/system files, and you should be fine.2014-01-17 01:40 PM
The error you get specifically means it doesn't like the Device/Target selected for the project, or the Flash Algorithm picked to program it.
2014-01-20 09:34 AM
Thanks a lot clive1.
Yes, I do have the STM32F401C-DISCO.I went and set the target device to STM32F401VC which is what I believe is what is on the discovery board. Now I get a bunch of compiler errors every time stm32f4xx.h is included which is a lot. All the errors areexpected a ''}''
. in the #if defined (STM32F401xx) block. That makes me think there is some incompatible combination of #defines.Argh! I don't know why this is so hard! It's supposed to be a canned demo for this Discovery board.I will keep trying stuff in a semi random way.Mike As an aside how do you get pictures to show up in the body of your post?2014-01-20 12:55 PM
You need to make sure you only have one CPU type defined, otherwise it will try to include multiple groups of incompatible code. USE_STDPERIPH_DRIVER,STM32F401xx