- For STM32 cube IDE version 2.1.1, the stm32cubeMX has to be downloaded separately
- stm32cubeMX is required to open ioc file.
- With stm32cubeMX and ioc file of the board, the stm32halxx.c and stm32halxx.h files have to be generated.
- STM32 cube IDE version 2.1.1 will also ask to upgrade the firmware of STLINKV2 . This requires internet.
Importing project folder from older stm32cube into stm32 2.1.1
- File>Import>General>Existing projects into workspace>Next>""G:\03_NAL\2024_RC_amb\10_controls\controlPrograms\20260327_baseBoardTestCodes\BASE BOARD TEST CODES\Switches_LED Demo"" .
- Ensure the project is ticked in the list below
- Ensure "Copy projects into workspace" is ticked. Otherwise the original copy will be edited when i make changes in the ide.
- In the project explorer, right click and refresh, then project>clean, then build project.
- Error: 16:15:55 **** Build of configuration Debug for project Switches_LED Demo ****
make -j4 all
make: *** No rule to make target 'G:/03_NAL/2024_RC_amb/10_controls/controlPrograms/STM32Cube/Repository/STM32Cube_FW_H7_V1.12.0/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c', needed by 'Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal.o'. Stop.
"make -j4 all" terminated with exit code 2. Build might be incomplete. - The driver c and h files are not in the Drivers directory at all.
- Double click the ioc file in the project explorer. It will launch the stm32cubeMx software separately. Enable:Copy only the necessary library files Generate peripheral initialization as a pair of '.c/.h' files per peripheral (optional)
- Then download the required H7 package. 584 MB, only the firmware packages.
- After generating code, the folder is populated with driver c and h files.
No comments:
Post a Comment