pazi88 / STM32_CAN

CAN bus Library for Arduino STM32
GNU General Public License v3.0
67 stars 28 forks source link

maple_mini_origin compiles, maple_mini_b20 doesn't #21

Closed HoeckDK closed 4 months ago

HoeckDK commented 9 months ago

HI

I'm trying to use your liberary. Maple Mini, bootloader v2.0.

If I use the ini as below, it does not compile. If I switch to origin, it does. Same for blue pill. What am I missing? Any ideas?

main.ccp only blinks LED.

[platformio]
workspace_dir = D:\PlatformIObuild\$PROJECT_HASH\.pio

[env:maple_mini_b20]

framework = arduino 
platform = ststm32

board = maple_mini_b20
;board = maple_mini_origin

upload_protocol = dfu

upload_port = COM3
monitor_port = COM3

lib_deps = 
  mikalhart/Streaming
  pazi88/STM32_CAN

build_flags =
  -DHAL_CAN_MODULE_ENABLED
pazi88 commented 4 months ago

maple_mini_origin seems to use the stm32duino -core that this library is meant to be used with. The maple_mini_b20 uses something different and it's missing the STM32 HAL drivers. So that's why it wont work.