CRC Error Downloading STM32 Board Files in Arduino IDE
tcontrada Mon Jul 09, 2018 2:28 pm
Image
tcontrada Mon Jul 09, 2018 2:28 pm
Image
fpiSTM Wed Jul 11, 2018 6:27 pm
Review Serial menu, 3 options:
Enabled with generic Serial: default, define HAL_UART_MODULE_ENABLED
and instantiate Serial using SERIAL_UART_INSTANCE and PIN_SERIAL_RX/PIN_SERIAL_Tx
Enabled without generic Serial: define HAL_UART_MODULE_ENABLED
Disabled (No Serial): HAL_UART_MODULE_ENABLED not defined
Allow to build without HAL_UART_MODULE_ENABLED (save memory)
Now, HAL_UART_MODULE_ENABLED should not be defined in stm32yyxx_hal_conf.h
As I said in my previous post up to you to declare the instance.
[fpiSTM – Wed Jul 11, 2018 3:17 pm] –
So up to you to define other instance you want to use…
HardwareSerial Serial2(rx, tx);
tcontrada Wed Jul 11, 2018 8:34 pm
Honestly, I like 1.2.0 better for this reason. MHO…
-Tony
fpiSTM Wed Jul 11, 2018 8:40 pm
To use your previous code. Add a build_opt.h file to your sketch then define the Serial you want, for example to have Serial2 and Serial3:
-DENABLE_HWSERIAL2 -DENABLE_HWSERIAL3