rogerclarkmelbourne / Arduino_STM32

Arduino STM32. Hardware files to support STM32 boards, on Arduino IDE 1.8.x including LeafLabs Maple and other generic STM32F103 boards
Other
2.53k stars 1.26k forks source link

Problems building for STM32F401CCu6 clone BlackPill #872

Closed z80micro-mc closed 2 years ago

z80micro-mc commented 2 years ago

I am having problems trying to build for a Blackpill clone - WeAct v3 type - with 3 oval buttons, STM32F401ccu6 processor, LED on PC13.

I can build and upload simple sketches ok. (eg Blink ) But keep getting compile errors:

mapledma.h

Acsi.cpp:240:10: fatal error: libmaple/dma.h: No such file or directory 240 | #include <libmaple/dma.h> | ^~~~ compilation terminated.

exit status 1 libmaple/dma.h: No such file or directory

Not sure why it wants the maple library it is a Blackpill not a Bluepill.

I have the SDfat library installed and have created a Hardware directory with the STM32 files in it.

image image

image image

Any input would be appreciated.

Thanks

Peter

stevstrong commented 2 years ago

As far as I can read from the library github page:

Hardware needed A STM32F103C8T6 or compatible board. You can find them for a few dollars online. The "blue pill" works out of the box and the "black pill" requires minor modifications.

So it is designed for F103C8 family.

You need to make a lot of changes in order to run it on F4x family, because there are lot of low-level register accesses which are different from F1x to F4y family.

I suggest to post this topic on the originator site as issue.