nuttx/boards/arm/stm32/b-g431b-esc1
Nathan Hartman ce20211357 Fix various typos in comments and documentation
Fix typos in these files:
    * Documentation/components/drivers/character/foc.rst
    * Documentation/guides/cpp_cmake.rst
    * Kconfig
    * arch/arm/src/imxrt/imxrt_lpspi.c
    * arch/arm/src/kinetis/kinetis_spi.c
    * arch/arm/src/kl/kl_spi.c
    * arch/arm/src/lpc31xx/lpc31_spi.c
    * arch/arm/src/nrf52/nrf52_radio.h
    * arch/arm/src/s32k1xx/s32k1xx_lpspi.c
    * arch/arm/src/stm32/Kconfig
    * arch/arm/src/stm32/stm32_adc.c
    * arch/arm/src/stm32/stm32_foc.c
    * arch/arm/src/stm32/stm32_foc.h
    * arch/arm/src/stm32/stm32_pwm.c
    * arch/arm/src/stm32/stm32_spi.c
    * arch/arm/src/stm32f0l0g0/stm32_spi.c
    * arch/arm/src/stm32f7/Kconfig
    * arch/arm/src/stm32f7/stm32_spi.c
    * arch/arm/src/stm32h7/Kconfig
    * arch/arm/src/stm32h7/stm32_allocateheap.c
    * arch/arm/src/stm32h7/stm32_fmc.c
    * arch/arm/src/stm32h7/stm32_fmc.h
    * arch/arm/src/stm32h7/stm32_pwm.c
    * arch/arm/src/stm32h7/stm32_qspi.c
    * arch/arm/src/stm32h7/stm32_spi.c
    * arch/arm/src/stm32l4/stm32l4_pwm.c
    * arch/arm/src/stm32l4/stm32l4_spi.c
    * arch/arm/src/stm32l5/Kconfig
    * arch/arm/src/stm32l5/stm32l5_spi.c
    * arch/renesas/src/rx65n/rx65n_dtc.c
    * arch/renesas/src/rx65n/rx65n_usbdev.c
    * arch/risc-v/src/rv32m1/rv32m1_serial.c
    * boards/arm/stm32/b-g431b-esc1/src/stm32_foc.c
    * boards/arm/stm32/nucleo-f103rb/src/stm32_foc_ihm07m1.c
    * boards/arm/stm32/nucleo-f302r8/src/stm32_foc_ihm07m1.c
    * boards/arm/stm32h7/nucleo-h743zi2/README.txt
    * boards/risc-v/rv32m1/rv32m1-vega/README.txt
    * boards/sim/sim/sim/scripts/Make.defs
    * drivers/1wire/1wire.c
    * drivers/1wire/1wire_internal.h
    * drivers/lcd/Kconfig
    * drivers/syslog/ramlog.c
    * fs/fat/Kconfig
    * libs/libc/debug/Kconfig
    * libs/libc/machine/Kconfig
    * libs/libc/stdio/lib_libvsprintf.c
    * libs/libc/stdlib/lib_div.c
    * libs/libc/stdlib/lib_ldiv.c
    * libs/libc/stdlib/lib_lldiv.c
    * libs/libdsp/lib_observer.c
2021-07-04 11:23:26 -05:00
..
configs boards/b-g431b-esc1: add support for FOC configurations 2021-06-10 13:58:33 -03:00
include boards/b-g431b-esc1: add support for FOC configurations 2021-06-10 13:58:33 -03:00
scripts Make: use gcc as LD 2021-06-10 03:43:18 -07:00
src Fix various typos in comments and documentation 2021-07-04 11:23:26 -05:00
Kconfig boards/b-g431b-esc1: add support for FOC configurations 2021-06-10 13:58:33 -03:00
README.txt boards/b-g431b-esc1: add support for FOC configurations 2021-06-10 13:58:33 -03:00

README
======

The B-G431B-ESC Discovery kit board is based on the STM32G431CB microcontroller,
the L6387 driver and STL180N6F7 power MOSFETs.

UART/USART PINS
---------------

USART2 is accessible through J3 pads and ST LINK Virtual Console:
  USART2_TX - PB3
  USART2_RX - PB4

Configuration Sub-directories
-------------------------

  nsh:
  ---
    Configures the NuttShell (nsh) located at apps/examples/nsh.  The
    Configuration enables the serial interfaces on USART2.

  foc_f32 and foc_b16:
  ---------------------
    FOC examples based on hardware on board.

    Pin configuration:

    Board Function   Chip Function      Chip Pin Number
    --------------   --------------     ---------------
    Phase U high     TIM1_CH1           PA8
    Phase U low      TIM1_CH1N          PC13
    Phase V high     TIM1_CH2           PA9
    Phase V low      TIM1_CH2N          PA12
    Phase W high     TIM1_CH3           PA10
    Phase W low      TIM1_CH3N          PB15
    Current U +      OPAMP1_VINP        PA1
    Current U -      OPAMP1_VINM        PA3
    Current V +      OPAMP2_VINP        PA7
    Current V -      OPAMP2_VINM        PA5
    Current W +      OPAMP3_VINP        PB0
    Current W -      OPAMP3_VINM        PB2
    Temperature                         PB14
    VBUS             ADC1_IN1           PA0
    POT              ADC1_IN11          PB12
    LED              GPIO_PC6           PC6
    ENCO_A/HALL_H1                      PB6
    ENCO_B/HALL_H2                      PB7
    ENCO_Z/HALL_H3                      PB8
    BUTTON           GPIO_PC10          PC10
    PWM                                 PA15

    Current shunt resistance          = 0.003
    PGA gain                          = 16
    Current sense gain                = -9.14 (inverted current)
    Vbus sense gain = 18k/(18k+169k)  = 0.0962
    Vbus min                          = ?
    Vbus max                          = 25V
    Iout max                          = 40A peak

    IPHASE_RATIO = 1/(R_shunt*gain) = -36.47
    VBUS_RATIO   = 1/VBUS_gain      = 10.4