AnsweredAssumed Answered

STM32CubeMX - Bug - IAR Project Generator

Question asked by li.zixun.002 on Nov 21, 2016
Latest reply on Jan 27, 2017 by Sirma Siang
Path of HAL driver is incorrect in the project generated by CubeMX when using following config:
A none default toolchain folder + Add library files as references.
1.png
2.png
 Then in the generated project IAR can't find HAL drivers as the path is incorrect:
5.png

Because in the project.ewp there is a  "$PROJ_DIR$" redundant.
<name>$PROJ_DIR$/E:/mcu/STM32Cube/STM32Cube_FW_F3_V1.6.0/Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_spi_ex.c</name>

Which should be:
<name>E:/mcu/STM32Cube/STM32Cube_FW_F3_V1.6.0/Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_spi_ex.c</name>

Outcomes