EEVblog® Electronics Community Forum
Electronics => Microcontrollers => Topic started by: Torrentula on September 16, 2012, 04:29:43 pm
-
Hey guys!
Because of the recent uprising STM32F-Series posts in here I thought I'd give the STM32F4 another chance. I have given up trying to use GCC loads of errors because filenames and locations are changing frequently.
So now I'm trying to add the STM32F4 peripheral library to my project in the Keil IDE. I have tried adding it as a group but when I try to compile it, the compiler complains about 'assert_param' being defined implicitly.
I'm sure there should be some simple fix (maybe a file I have forgotten to include) but I can't seem to figure it out...
Thanks in advance :)
-
Because of the recent uprising STM32F-Series posts in here I thought I'd give the STM32F4 another chance. I have given up trying to use GCC loads of errors because filenames and locations are changing frequently.
That statement doesn't make sense.
So now I'm trying to add the STM32F4 peripheral library to my project in the Keil IDE. I have tried adding it as a group but when I try to compile it, the compiler complains about 'assert_param' being defined implicitly.
That can't be. We have just been told that Keil is painless and worry-free.
-
Okay I might not have been very precise so I'll try again:
I need to somehow include the STM32F4 peripheral library provided by ST into my Keil project so I can use the peripherals like USART, SPI, I2C etc. without having to care about setting each individual bit (quite cumbersome to do this e.g. for all 4 USARTs).
I believe Keil is painless after you've got everything set up correctly. Until then there are quite a lot of obscure menus which you need to figure out.
-
I believe Keil is painless after you've got everything set up correctly.
you mean.. anykind of softwares/IDEs? paid or unpaid?
if you are me, and i dont know shit where that 'assert_param' located, i'll either
1) step debug it until it reaches there.
2) start a brute force search for keyword 'assert_param' in every related folders.
3) both (1) and (2) and (1) again and (2) etc etc
-
In ST's STM32F1 libraries, the assert_param macro is defined in the stm32f10x_conf.h header file which is included in the project templates. I don't remember how/where you were supposed to #include the header, but I assume the STM32F4 libs have a similar setup.
BTW, one big annoyance I had with Keil's IDE is that it always, unconditionally adds its bundled copy of the firmware library to your include paths. If you try to add another version to your project, you'll get completely insane, undiagnosable build errors until everything is configured exactly right.
-
can you put in ifdef directive in?