Ventilator icon indicating copy to clipboard operation
Ventilator copied to clipboard

PCB pin assignments comments from Daniel Heater

Open inceptionev opened this issue 4 years ago • 1 comments
trafficstars

I've been using STM32CubeMX to map the pins and check them against the PCB and HAL code. I'm finding a few things that look like conflicts: CubeMX won't let PB4 and PA11 both be mapped as UART. They both map to UART1. PB5 will only map to UART_CK, not UART_CTS There are several pins where the mapping in the code is different from the schematic. Should I assume that the schematic is correct and the code is not up to date with the latest schematic?

inceptionev avatar Jun 14 '21 23:06 inceptionev

  1. PB4 was supposed to be used for UART5_RTS_DE, see page 109 or 95 of the STM32L496 datasheet. If it won't let you use UART5 for some reason, maybe there's a bug in CubeMX? (or there's some additional constraints I missed that the alternate function table doesn't mention) The Interface Control Document, if you don't have the link already, might make things easier too: https://docs.google.com/spreadsheets/d/1EPEkAWZGx5ASWL2mgTzymS2f11Ow9ptx9c8Sycb3_Go/edit#gid=0
  2. As a result of 1, PB5 has CTS on UART5 (rather than the USART1_CK).
  3. Yep the schematic is what we got manufactured! You're probably the first to start updating the code for the new board rev.

dcstraney avatar Jun 15 '21 01:06 dcstraney