They are not present in any board definitions. Is there no way to ever change the USB pins used from defaults?
I see in the Alt Functions table there is no other set of pins the USB shows on, so I guess that is why.
Not having a 1 to 1 correspondence between lines in mpconfigboard.h and pins available in a MCU package makes
checking for correctness harder. Would it be OK to find the underlying lines similar to
#define MICROPY_HW_USB_OTG_ID_PIN (pin_A10)
and include them in mpconfigboard.h?
Lines about OTG_FS_DM, OTG_FS_DP, OTG_FS_SOF?
Where are they?
Also JTAG -- it only shows in the stm32f401_af.csv file, and then that name does not match what is in STM32 AF table.
When I grep for matches three seems to be disagreement between stm32f4xx_af.csv files on those names:
Code: Select all
john@toolbench64 [micropython]grep -r SWDIO
ports/stm32/boards/stm32f439_af.csv:PortA,PA13,JTMS-SWDIO,,,,,,,,,,,,,,,EVENTOUT,
ports/stm32/boards/stm32f411_af.csv:PortA,PA13,JTMS-SWDIO,,,,,,,,,,,,,,,EVENTOUT,
ports/stm32/boards/stm32f429_af.csv:PortA,PA13,JTMS-SWDIO,,,,,,,,,,,,,,,EVENTOUT,
ports/stm32/boards/stm32l476_af.csv:PortA,PA13,JTMS-SWDIO,IR_OUT,,,,,,,,,OTG_FS_NOE,,,,,EVENTOUT,,
ports/stm32/boards/stm32f746_af.csv:PortA,PA13,JTMS,SWDIO,,,,,,,,,,,,,,EVENTOUT
ports/stm32/boards/stm32f767_af.csv:PortA,PA13,JTMS,SWDIO,,,,,,,,,,,,,,EVENTOUT
ports/stm32/boards/stm32f401_af.csv:PortA,PA13,JTMS_SWDIO,,,,,,,,,,,,,,,EVENTOUT,
some have a dash: JTMS-SWDIO
The F401 file, tested on G30_TH platform has JTMS_SWDIO, which is same as in STM32 datasheet table 9 of AltFunctions -- AF.
Is this mismatching a mistake?