Wiki

The most recent version of this page is a draft.DiffThis version (25 Jul 2023 07:13) was approved by Janani Sunil.

This is an old revision of the document!


Precision Converters Firmware Build Guide for STM32 Platform

Building Using STM32CubeIDE

In order to leverage the STM32 firmware, it is necessary that the STM32CubeIDE and the STM32CubeMX are downloaded Download and install then on the windows machine

STM32CubeMX and STM32CubeIDE for Windows (Use below link):

  • Clone the Precision Converters Firmware repository into your local Studio.
  • Open the adxxxx_iio.ioc file from the “precision_converters_firmware/adxxxx_iio/STM32/” directory. This would open the file in STM32CubeMX.
  • Click on the “Generate Code” option seen on the top right corner

  • Upon successful generation of drivers for the selected MCU, the autogenerated files would be seen in the same directory where the .ioc file was present. Double click and open the “.project” file seen in the list of files

  • After the project is loaded to the STM32CubeIDE, unfold the adxxxx_iio project seen in the project explorer, right click the “app” folder, select “Settings” under the “C/C++ Build” section on the left pane and un-check the “Exclude resources from build” checkbox. This would ensure that the project specific files are included by the build system

  • In order to choose STM32 platform in the firmware, select the “ACTIVE_PLATFORM” as “STM32_PLATFORM” in the app_config.h from the project files.

  • Add compiler flags “-u _printf_float” to the project settings.

  • Program by clicking on the “Run adxxxx_iio” option seen or by performing a copy→paste option of the .hex file seen in the STM32/Debug folder

/srv/wiki.analog.com/data/pages/resources/tools-software/product-support-software/pcg-fw-stm32-build-guide.txt · Last modified: 11 Sep 2023 09:04 by Janani Sunil