retro16 / acsi2stm

Atari ST ACSI to SD card converter with a STM32
GNU General Public License v3.0
160 stars 38 forks source link

Problems building for STM32F401CCu6 clone BlackPill #20

Open z80micro-mc opened 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 am running Arduino 1.8.12 with STM 2.2 boards

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

image

Any input would be appreciated.

Thanks

Peter

retro16 commented 2 years ago

Hi, this projects doesn't use the official STM32 board (selected in your last screenshot). It uses the Roger Clark Melbourne framework (for historical reasons) available here: https://github.com/rogerclarkmelbourne/Arduino_STM32 This framework is based on the Maple framework, that's why you are missing libmaple includes.

Once it compiles, you will probably need to reassign pins based on the requirements of the integrated timers. Also, I cannot certify that the DMA input trick using an unused timer register will work on anything other than the original STM32F103C8. It does pretty wild stuff with timers and DMA to achieve stable and fast results.

JM

z80micro-mc commented 2 years ago

Jean,

Thanks for the reply. I take it from this that the 'BlackPills' that you refer to are the older STM32F103 based variants and not the newer STM32F401 / STM32F411 based versions.

I had hoped that as the notes suggested that the main issue was with LED on PB12 instead of PC13 being the most serious issue with the BlackPill so when I found the newer STM32F401 based versions with the LED already on PC13 I was hoping for a simple fast solution this together with the greater availability of the newer boards in the UK.

Peter

------ Original Message ------ From: "Jean-Matthieu COULON" @.> To: "retro16/acsi2stm" @.> Cc: "z80micro-mc" @.>; "Author" @.> Sent: Tuesday, 1 Mar, 22 At 12:01 Subject: Re: [retro16/acsi2stm] Problems building for STM32F401CCu6 clone BlackPill (Issue #20)

Hi, this projects doesn't use the official STM32 board (selected in your last screenshot). It uses the Roger Clark Melbourne framework (for historical reasons) available here: https://github.com/rogerclarkmelbourne/Arduino_STM32 https://github.com/rogerclarkmelbourne/Arduino_STM32 This framework is based on the Maple framework, that's why you are missing libmaple includes. Once it compiles, you will probably need to reassign pins based on the requirements of the integrated timers. Also, I cannot certify that the DMA input trick using an unused timer register will work on anything other than the original STM32F103C8. It does pretty wild stuff with timers and DMA to achieve stable and fast results. JM — Reply to this email directly, view it on GitHub https://github.com/retro16/acsi2stm/issues/20#issuecomment-1055362623 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ATCK64CMKJM355JSRE6GU3LU5YBJNANCNFSM5PSENBZA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub . You are receiving this because you authored the thread.Message ID: @.***>

retro16 commented 2 years ago

Oh you are absolutely right, I was refering to the older F103 black boards (which seem to be very rare). This needs an adjustment of the README to make it clear. Thanks a lot for bringing these new boards to my attention (I'm working on non-microcontroller projects these days and didn't keep up with the newer stuff).

retro16 commented 2 years ago

Updated the README. Keeping the issue opened if anyone want to try to make this project run on the newer black pill boards.