Support to F407ZET6 with PIO
Posted: Tue Feb 14, 2023 8:55 pm
Hello everybody!
I have developed a custom board with the F407ZET6 processor and now I am trying to write some FW to it using platformio and STM32duino. Well, first of all, this processor has not a generic board, so I have created the genericSTM32F407ZET6.json file (based on genericSTM32F407VE).
Now I can compile the project with the correct processor, but I am still not getting how the variant_generic.h works. If a look this file at the framework-arduinoststm32\variants\STM32F4xx\F407Z(E-G)T_F417Z(E-G)T, the pin assignment doesn't seems to match the processors; as an example, the .h has a
#define PB2 18
But if I look the device datasheet, PB2 is on pin 48.
So, is the variant_generic.h wrong or my understanding???
I have developed a custom board with the F407ZET6 processor and now I am trying to write some FW to it using platformio and STM32duino. Well, first of all, this processor has not a generic board, so I have created the genericSTM32F407ZET6.json file (based on genericSTM32F407VE).
Now I can compile the project with the correct processor, but I am still not getting how the variant_generic.h works. If a look this file at the framework-arduinoststm32\variants\STM32F4xx\F407Z(E-G)T_F417Z(E-G)T, the pin assignment doesn't seems to match the processors; as an example, the .h has a
#define PB2 18
But if I look the device datasheet, PB2 is on pin 48.
So, is the variant_generic.h wrong or my understanding???
