2018-03-14 10:43 AM
anybody know the process to load examples in STM32Cube_FW_F4_V1.21.0 into TrueStudio?
I suffer several major issues
1) folder 'driver' include all libraries for the whole stm32 family. How to set default path to take all of library into truestudio?
2) all examples include folder into different toolchain; but for TrueStudio, how can I use it?
3) I am using NUCLEO-F429ZI, there is library for this board (stm32f4xx_nucleo_144.h), how we set it to link to example folder
2018-03-14 11:32 AM
After I try to add some path into the example project, I got some progress, but I got the following compiler issue:
How can I fix it?
2018-03-14 12:46 PM
Add library source files to the project with the code for those functions in them?
STM32Cube_FW_F4_V1.21.0\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal.c
STM32Cube_FW_F4_V1.21.0\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_gpio.c
etc
Your project should have a configuration file pulling in the include files
stm32f4xx_hal_conf.h
And the define
USE_HAL_DRIVER
2018-03-14 01:04 PM
Your project should have a configuration file pulling in the include files
stm32f4xx_hal_conf.h
How can I get this configuration file? I import the fw folder into truestudio, I can't imagine how difficult to start even one simple example using truestudio.
2018-03-14 01:09 PM
Use CubeMX to create a project for TrueStudio. You have from the start a compilable project with all the drivers included. Then it is really easy to add your code. This is the best method for HAL based projects. Even regarding the examples you want to import, just recreate them in CubeMX.
2018-03-14 01:24 PM
Then why use TrueStudio? Do you have some prior experience with creating projects for it, driving the use here? Use something professional like Keil or IAR where examples and templates exist and work already
STM32Cube_FW_F4_V1.21.0\Projects\STM32F429ZI-Nucleo\Templates\Inc\stm32f4xx_hal_conf.h
STM32Cube_FW_F4_V1.21.0\Projects\STM32F429ZI-Nucleo\Examples\GPIO\GPIO_IOToggle\Inc\stm32f4xx_hal_conf.h
STM32Cube_FW_F4_V1.21.0\Drivers\BSP\STM32F4xx_Nucleo_144\stm32f4xx_nucleo_144.h
2018-03-14 01:44 PM
Thanks. It works now.
Why I don't use other tools, first of all truestudio belongs to ST and free of charge. I don't have much experience for STM32 before. I am trying for our new project, but at this moment, I can't ask 5000USD to buy some tools if we finally decide not to use it.
2018-03-14 01:59 PM
The ST Workbench thing is free also, and most of the examples are small and will build in Eval download of Keil. It would be helpful to understand the form and construction of the examples/template.
http://www.st.com/en/development-tools/sw4stm32.html
https://www.keil.com/demo/eval/arm.htm