Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 2 months ago.
What the difference between TARGET_STM32F4 and TARGET_STM32F4XX?
Hello,
Im just start learninig mbed. I have my custom designed board with STM32F407ZET6.
There are two branches of HAL files in mbed-src:
\mbed-src\targets\cmsis\TARGET_STM\TARGET_STM32F4\ \mbed-src\targets\hal\TARGET_STM\TARGET_STM32F4\
and
\mbed-src\targets\cmsis\TARGET_STM\TARGET_STM32F4XX\ \mbed-src\targets\hal\TARGET_STM\TARGET_STM32F4XX\
What branch should I use for future development? What is the difference between them?
1 Answer
9 years, 2 months ago.
I noticed that myself too. Here is the code which determines which folders are included: https://github.com/mbedmicro/mbed/blob/master/workspace_tools/targets.py. The STM32F407 is the only one which sets the XX variant, and I don't think that one is actually used, it is the Arch Max which contains that MCU, and that one does not set the XX variant.
So actually I think someone should delete it. For sure when developing use the non-XX.