ioc-collection/README.md

37 lines
1.7 KiB
Markdown

# ioc-collection
A collection of .ioc-files for working with different STM32 μCs and TACOS. The .ioc-files are already correctly configured for TACOS-based projects.
## Using An .ioc
You can create a project from an existing .ioc-file (e.g. one of the .ioc's provided in this repository) by pressing `file > new > STM32 Project from an Existing STM32CubeMX Configuration File` and choosing the desired file under `STM32CubeMX .ioc file > Browse`.
## Creating An .ioc
If your microcontroller is not supported yet, you can create a .ioc-file by creating a new project with the desired microcontroller and selecting the following settings in the project's .ioc:
`Project Manager > Project`
![Step 1](media/6Cggrafik.png)
`Project Manager > Code Generator`
![Step 2](media/StCgrafik.png)
`Pinout & Configuration > Middleware and Software Packs`
![Step 3](media/bV1grafik.png)
`Pinout & Configuration > Middleware and Software Packs > FREERTOS > Config Parameters`
![Step 4](media/vXUgrafik.png)
![Step 5](media/z9wgrafik.png)
`Pinout & Configuration > Middleware and Software Packs > FREERTOS > Advanced Settings`
![Step 5](media/RMqgrafik.png)
Please note that 256 words (1 word = 4 bytes) of stack memory tend to be insufficient for many applications. You might want to increase that by adjusting the setting `Pinout & Configuration > Middleware and Software Packs > FREERTOS > Config parameters > Kernel Settings > MINIMAL_STACK_SIZE`. Usually, you also have to increase the FreeRTOS heap size `Pinout & Configuration > Middleware and Software Packs > FREERTOS > Config parameters > Memory management settings > TOTAL_HEAP_SIZE` since the stack of each task is allocated on the FreeRTOS heap.
###