- Sat May 07, 2022 4:30 pm
#56837
hello friends, I test visual studio to compile my firmware.
currently i am going through arduino ide and it works as i want.
my topic is about stm32.
I am looking for information on the line: build_flags = - std =gnu++11 -UBOARD_MAX_IO_PINS -DENABLE_HWSERIAL2 -DENABLE_HWSERIAL3 -DUSBCON -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC -DHAL_CAN_MODULE_ENABLED
platform=ststm32 uses local variants.
This line activates the compiler for stm32 with the pin hardware assignments, but also the CAN bus and
activation of the usb port with the other 2 serial ports.
I want to disable the usb port and only enable the serial port on PA9 and PA10. I think it is not possible to have usb and PA9 PA10 in hardware serial.
because my serial communication port is UART usb and bluetooth separated from the board and I use all the stm32 pins.
what are the command lines to enter?
On arduino ide it's simple, I have this configuration which works well in tools:
- U(S)ART support: "enabled (generic 'serial')"
- USB support (if avaible): nothing
the variant files are identical on PlatformIO as on arduino15
currently i am going through arduino ide and it works as i want.
my topic is about stm32.
I am looking for information on the line: build_flags = - std =gnu++11 -UBOARD_MAX_IO_PINS -DENABLE_HWSERIAL2 -DENABLE_HWSERIAL3 -DUSBCON -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC -DHAL_CAN_MODULE_ENABLED
platform=ststm32 uses local variants.
This line activates the compiler for stm32 with the pin hardware assignments, but also the CAN bus and
activation of the usb port with the other 2 serial ports.
I want to disable the usb port and only enable the serial port on PA9 and PA10. I think it is not possible to have usb and PA9 PA10 in hardware serial.
because my serial communication port is UART usb and bluetooth separated from the board and I use all the stm32 pins.
what are the command lines to enter?
On arduino ide it's simple, I have this configuration which works well in tools:
- U(S)ART support: "enabled (generic 'serial')"
- USB support (if avaible): nothing
the variant files are identical on PlatformIO as on arduino15