![]() Now, go in the Eclipse project and delete the following files: If you need to know more about what the GNU ARM Plugin has generated, please refer to this other post. In this tutorial I won't go into details of the project structure. It’s also required a vendor specific Hardware Abstraction Layer (HAL). However, the CMSIS package is not sufficient to start programming with a STM32 chip. The project generated by GNU ARM Plug-in for Eclipse is a skeleton containing Cortex Microcontroller Software Interface Standard (CMSIS) by ARM. Tool-chain name: GNU Tools for ARM Embedded Processors (arm-none-eabi-gcc) The final step is about the GCC tool-chain. You can leave the default parameters in the next steps. Change it from DEVICE to stm32f4xx if you have a STM32F4 based board, or stm32f1xx for F1 boards, and so on.Ĭlick on “ Next“. ![]() ![]() In the next step leave all parameters unchanged except for the last one: Vendor CMSIS name. For Nucleo-F401RE you can use the same values shown in the following picture. For a STM32-F4 you have to choose Cortex-M4 core, while for a STM32-F1 you have to choose Cortex-M3. The Clock, Flash size and RAM parameters depend on your Nucleo MCU. Click on “ Next“. In the next step you have to configure your processor. Start Eclipse and go to File->New->C Project and select “Hello World ARM Cortex-M C/C++ project. You can choose the project name you want (I chose “ stm32-nucleof4-freertos“). So, let's create a basic project where we’ll put HAL library from ST and FreeRTOS sources. If you are not interested in repeating the whole procedure, you can download the project from my github repository and rearrange it if your tool-chain configuration differs. Then, we'll use CubeMX to generate configuration files we need to setup FreeRTOS and the main.c file. The procedure is almost the same described in this post, but I'll describe it again to clarify some steps. Once created, we'll import inside the project all the FreeRTOS related files. In the first step of this tutorial we'll create a skeleton project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |