Friday, June 19, 2026

STM32 Development Log 1: Internet required 4 times= CubeIDE + CubeMX + Firmware H7 download + STLink upgrage

  1.  For STM32 cube IDE version 2.1.1, the stm32cubeMX has to be downloaded separately
  2.  stm32cubeMX is required to open ioc file.
  3. With  stm32cubeMX and ioc file of the board, the stm32halxx.c and stm32halxx.h files have to be generated.
  4. 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

  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"" . 
  2. Ensure the project is ticked in the list below 
  3. Ensure "Copy projects into workspace" is ticked. Otherwise the original copy will be edited when i make changes in the ide.
  4. In the project explorer, right click and refresh, then project>clean, then build project. 
  5. 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.
  6. The driver c and h files are not in the Drivers  directory at all. 
  7. 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)

  8.  
  9. Then download the required H7 package. 584 MB, only the firmware packages.  
  10.  After generating code, the folder is populated with driver c and h files.

No comments:

Post a Comment