From a1ee551bd0571d67d632e5f009e619b48fa5ec87 Mon Sep 17 00:00:00 2001 From: Candas1 Date: Mon, 12 Apr 2021 17:56:56 +0200 Subject: [PATCH] Updated Firmware Compatibility (markdown) --- Firmware-Compatibility.md | 78 ++++++++++++++++++++------------------- 1 file changed, 40 insertions(+), 38 deletions(-) diff --git a/Firmware-Compatibility.md b/Firmware-Compatibility.md index 964542b..f7d6401 100644 --- a/Firmware-Compatibility.md +++ b/Firmware-Compatibility.md @@ -8,44 +8,46 @@ For AT32F403RCT6 or AT32F413RCT7 chips please check following [Firmware](https:/ ## Pin Mapping This is the pin mapping this firmware is using, you might have to adapt it to your board variant in [defines.h](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/blob/master/Inc/defines.h) file -|Port|Pin| -|---|---| -|SWCLK|PA14| -|SWDIO|PA13| -|TX/ADC1|PA2| -|RX/ADC2/PPM|PA3| -|TX/SCL|PB10| -|RX/SDA|PB11| -|LED|PB2| -|BUZZER|PA4| -|HALL LEFT U|PB5| -|HALL LEFT V|PB6| -|HALL LEFT W|PB7| -|HALL RIGHT U|PC10| -|HALL RIGHT V|PC11| -|HALL RIGHT W|PC12| -|LEFT UH|PC6| -|LEFT UL|PA7| -|LEFT VH|PC7| -|LEFT VL|PB0| -|LEFT WH|PC8| -|LEFT WL|PB1| -|RIGHT UH|PA8| -|RIGHT UL|PB13| -|RIGHT VH|PA9| -|RIGHT VL|PB14| -|RIGHT WH|PA10| -|RIGHT WL|PB15| -|LEFT_DC_CUR|PC0| -|LEFT_U_CUR|PA0| -|LEFT_V_CUR|PC3| -|RIGHT_DC_CUR|PC1| -|RIGHT_U_CUR|PC4| -|RIGHT_V_CUR|PC5| -|DCLINK|PC2| -|OFF|PA5| -|BUTTON|PA1| -|CHARGER|PA12| +Some boards have 6 wires on the hall sensors cable, with an additional white wire. For those you can use the alternate mapping by changing parameter BOARD_VARIANT in [config.h](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/blob/master/Inc/config.h) + +|Port|Pin|Alternate Mapping| +|---|---|---| +|SWCLK|PA14|| +|SWDIO|PA13|| +|TX/ADC1|PA2|| +|RX/ADC2/PPM|PA3|| +|TX/SCL|PB10|| +|RX/SDA|PB11|| +|LED|PB2|| +|BUZZER|PA4|PC13| +|HALL LEFT U|PB5|| +|HALL LEFT V|PB6|| +|HALL LEFT W|PB7|| +|HALL RIGHT U|PC10|| +|HALL RIGHT V|PC11|| +|HALL RIGHT W|PC12|| +|LEFT UH|PC6|| +|LEFT UL|PA7|| +|LEFT VH|PC7|| +|LEFT VL|PB0|| +|LEFT WH|PC8|| +|LEFT WL|PB1|| +|RIGHT UH|PA8|| +|RIGHT UL|PB13|| +|RIGHT VH|PA9|| +|RIGHT VL|PB14|| +|RIGHT WH|PA10|| +|RIGHT WL|PB15|| +|LEFT_DC_CUR|PC0|| +|LEFT_U_CUR|PA0|| +|LEFT_V_CUR|PC3|| +|RIGHT_DC_CUR|PC1|| +|RIGHT_U_CUR|PC4|| +|RIGHT_V_CUR|PC5|| +|DCLINK|PC2|PA1| +|OFF|PA5|PC15| +|BUTTON|PA1|PB9| +|CHARGER|PA12|PA11| ## Troubleshooting * Motors are cogging/not running in a smooth way - please try to swap the phases