suikan4github / murasaki

STM32 HAL class library
MIT License
18 stars 3 forks source link

Template for STM32L152 has wrong UART_PORT define. #154

Closed suikan4github closed 1 year ago

suikan4github commented 1 year ago

Describe the bug

The template declares the UART_PORT is hlphuart2. This makes compile errors.

https://github.com/suikan4github/murasaki/blob/66e7aa3ad8f9890ed77fda7e5335445aeb7816a3/template/murasaki_platform.cpp.tmp#L102-L107

To Reproduce Create a project for Nucleo L152. And then build ( At 2023/Jun, this procedure fails because of the bug of the CubeIDE ). This problem always happens.

Expected behavior No error at compilation.

To make it happen, hlpuart2 should be changed to huart2.

suikan4github commented 1 year ago

Merged to develop. Ready to release.