Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatibility with other libraries #118

Open
SunboX opened this issue Sep 19, 2022 · 3 comments
Open

Incompatibility with other libraries #118

SunboX opened this issue Sep 19, 2022 · 3 comments

Comments

@SunboX
Copy link

SunboX commented Sep 19, 2022

First, thanks for this great library! :)

Many libraries nowadays are using the STM32Duino core instead of the Maple core. Regarding this thread [1], the Maple core seems also to be outdated and difficult to set up.

Is there any plan to move the Library to STM32Duino core?

[1] https://community.platformio.org/t/stm32-platform-uploads-elf-file-not-bin/29065/14

@SunboX
Copy link
Author

SunboX commented Sep 19, 2022

ah, just found this issue: stm32duino/Arduino_Core_STM32#668 (followup: stm32duino/Arduino_Core_STM32#687)

@arpruss
Copy link
Owner

arpruss commented Sep 19, 2022

It would be a difficult task and I am not up to it.

I am not sure what you mean by saying the Maple core is difficult to set up. It seems to be pretty straightforward: download it to your Arduino/Hardware directory, fix permissions of scripts if necessary, and it works, at least for me.

Additionally, the Maple core involves less abstraction and hence should produce smaller and faster code (though to be honest, I haven't checked it).

The big advantage of the standard core is that it supports more devices, however.

@alex-eri
Copy link

[env:bluepill_f103c8]
platform = ststm32
board = bluepill_f103c8
framework = arduino
board_build.core = maple
upload_flags = -c set CPUTAPID 0x2ba01477
debug_server = /home/eri/.platformio/packages/tool-openocd/bin/openocd
        -s /home/user/.platformio/packages/tool-openocd/scripts
        -f interface/stlink.cfg
        -c "transport select hla_swd"
        -c "set CPUTAPID 0x2ba01477"
        -f target/stm32f1x.cfg
        -c "reset_config none"
lib_deps =
        SPI
        arpruss/USBComposite for STM32F1@^1.0.9
debug_init_break =
board_build.ldscript = jtag_c8.ld

My setup for f103c8 clone in platformio. So to setup start with:

[env:bluepill_f103c8]
platform = ststm32
board = bluepill_f103c8
framework = arduino
board_build.core = maple

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants