Stm32 Mcu Save

Application components for STMicro STM32 MCUs

Project README

Application components for STMicro STM32 MCUs

Toolchain: Migrating from TrueSTUDIO+CubeMX to STM32CubeIDE

Common libraries

NUCLEO-F401RE board

Application components

NUCLEO-F401RE board

NUCLEO-L476RG board

NUCLEO-F401RE and NUCLEO-L476RG boards

Dynamic NFC tags

STM32F4 Discovery board

printf issue

I managed to support printf on USART2.

Physical configuration:

STM32F407
               +------------+
            X 5V            |
GND     ----- GND  FTDI     |
PA3(RX) ----- TX  USB-UART  ===== USB ======> PC
PA2(TX) ----- RX  converter |
               +------------+

Include the following snippet in main.c to support printf:

int _write(int file, char *pbuf, int len)
{
  HAL_UART_Transmit(&huart2, (uint8_t *)pbuf, len, 1000);
  return len;
}

PWM test

PWM output (100Hz, 50% duty) to PA8:

waveform

Tips

References

STM32L476 Nucleo-64

STM32F4 Discovery board

Open Source Agenda is not affiliated with "Stm32 Mcu" Project. README Source: araobp/stm32-mcu
Stars
27
Open Issues
1
Last Commit
4 years ago
Repository

Open Source Agenda Badge

Open Source Agenda Rating