2024-07-16 07:56 AM
E.g. the FatFs_USBDisk sample does not have a *.ioc file.
Maybe not all example projects use STM32CubeMX?
(the issue sounds like https://community.st.com/t5/stm32-mcus/creating-stm32cubmx-ioc-project-for-older-stm32cube-firmware/ta-p/49664)
How can I enable the view "Device Configuration Tool" for that example project?
Or: what's the best way to see the Mikrocontroller resources used by that project?
Reason for asking:
I can't add support for serial console (including DMA) to FatFs_USBDisk from a reference project. There seems to be a clashing of using the resources.
Solved! Go to Solution.
2024-07-16 09:51 AM
@Andrew Neil wrote:Correct - they don't all have a .ioc file.
I think the 'Configurable' column tells you which is which:
for the ones which do have a .ioc file;
for the ones which don't.
2024-07-16 08:02 AM - edited 2024-11-21 02:09 AM
Correct - they don't all have a .ioc file.
Some just have C initialisation code for the clocks, peripherals, etc.
@FBerg.1 wrote:How can I enable the view "Device Configuration Tool" for that example project?
You can't.
@FBerg.1 wrote:Or: what's the best way to see the Mikrocontroller resources used by that project?
Just have to browse the code to see what's used.
If the example in question is for an ST board, then MXCube should have awareness of that board ...
See also:
2024-07-16 08:35 AM
Yes, some of the examples were actually coded by engineers familiar with the job, and not pressing buttons.
CubeMX generates code from templates and boiler-plate, and whilst it uses HAL, its not the type of HAL or SPL code we typically write.
With the Non-IOC methods, it's perhaps better to sand-box your CubeMX/IDE stuff into it own project, and then pull/merge the salient code, for initialization and interaction, into the more generic HAL implementation.
The Reference Manual then becomes your resource to know what peripherals work/conflict with each other, and how to make choices from the tables of routing/interconnectivity the IC facilitates, and the Data Sheet is the resource with respect to the pins and alternate function mappings there.
2024-07-16 09:51 AM
@Andrew Neil wrote:Correct - they don't all have a .ioc file.
I think the 'Configurable' column tells you which is which:
for the ones which do have a .ioc file;
for the ones which don't.