-
Notifications
You must be signed in to change notification settings - Fork 9
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
Unable to compile blink project when board Maple(RET6) is selected from Arduino studio #42
Comments
OK, I will have a look on this. |
Your core files are from: http://dan.drown.org/stm32duino/package_STM32duino_index.json |
@stevstrong I don't understand how Arduino studio manage its packages. Are you saying I'm actually not using your code? |
Yes, that is what I am saying. |
I have tried both. Roger's core downloaded from this link, worked. |
It is good that it works with Roger's core, use that, you don't need to use my core, I do not support all board types. |
I will close this as it seems to be resolved. |
Hi,
I hope this is the right place to log this issue, if not please close this issue and tell me where to log it
Environment:
OS: Mac OS X
Arduino Studio 1.18.12
STM32duino: 2020.6.20
Board: Leaflabs Maple RET6
Additional Board Manager URLs: http://dan.drown.org/stm32duino/package_STM32duino_index.json
Please check attached image for details. The same code compiles fine when Maple Rev3 is selected.
My remedy is to add the following to the beginning of Arduino15/packages/stm32duino/hardware/STM32F1/2020.6.20/cores/maple/sdio.cpp. Sample blink project, rtos blink project compiled and runs fine with this change.
Note, if I uncomment the #ifdef __cplusplus block, the code wont compile, same error.
//#ifdef __cplusplus
// #include
// using namespace std;
//#else // C
#include <stdlib.h>
#ifndef min
#define min(a,b) ((a)<(b)?(a):(b))
#endif // min
//#endif // __cplusplus
Board manager dialog:
The text was updated successfully, but these errors were encountered: