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

Build time compiler errors #5

Closed
JoNilsson opened this issue Jul 2, 2020 · 7 comments
Closed

Build time compiler errors #5

JoNilsson opened this issue Jul 2, 2020 · 7 comments

Comments

@JoNilsson
Copy link

JoNilsson commented Jul 2, 2020

ArdSCSinoV2

Environment:
Arduino IDE v1.8.12
STM32 Cores v1.9.0
SdFat v1.1.4

Getting the following compile error:

ArdSCSinoV2:34:17: error: no matching function for call to 'SPIClass::SPIClass(int)'
   34 | SPIClass SPI_1(1);
      |                 ^
In file included from ~/Arduino/libraries/SdFat/src/SysCall.h:33,
                 from ~/Arduino/libraries/SdFat/src/SdFat.h:31,
                 from ~/ArdSCSino-stm32/ArdSCSinoV2/ArdSCSinoV2.ino:28:

Suspicion; STM Cores may be newer than what was intended to be used?

☠️

@ztto
Copy link
Owner

ztto commented Jul 2, 2020

tools -> board -> Boards Manager -> Filter your search
Find and install "Arduino SAM Boards (32-bits ARM Cortex-M3)"
select board "Generic STM32F103C series"

@JoNilsson
Copy link
Author

JoNilsson commented Jul 3, 2020

image

image

"Arduino SAM Boards (32-bits ARM Cortex-M3)" does not include profiles for STM32F103C boards.
These board profile are included in "STM32 Cores"

furthermore, have the correct board selected. "Generic STM32F1 Series"
specifically "BluePill F103C8"

The compile error remains:

ArdSCSinoV2:34:17: error: no matching function for call to 'SPIClass::SPIClass(int)'
   34 | SPIClass SPI_1(1);
      |                 ^
In file included from~/Arduino/libraries/SdFat/src/SysCall.h:33,
                 from ~/Arduino/libraries/SdFat/src/SdFat.h:31,
                 from ~/ArdSCSino-stm32/ArdSCSinoV2/ArdSCSinoV2.ino:28:
~/Arduino15/packages/STM32/hardware/stm32/1.9.0/libraries/SPI/src/SPI.h:117:5: note: candidate: 'SPIClass::SPIClass(uint8_t, uint8_t, uint8_t, uint8_t)'

34 SPIClass SPI_1(1);

@JoNilsson JoNilsson changed the title error: no matching function for call to 'SPIClass::SPIClass(int)' Issues with call to SPI function, SPI.h / SdFat.h Jul 3, 2020
@ztto
Copy link
Owner

ztto commented Jul 3, 2020

https://github.com/rogerclarkmelbourne/Arduino_STM32

@JoNilsson
Copy link
Author

JoNilsson commented Jul 3, 2020

That seems to have gotten me past that original SPIClass error. I guess you can close the issue now.

However, this just opened up a pandoras box of new formatting errors in the SdFat lib... most of them stemming from /Arduino/libraries/SdFat/src/FatLib/istream.h
... ( ͡° ʖ̯ ͡°)

Full error log here: https://gist.github.com/JoNilsson/ffee2534ecc5976409e2c4734d6a2b91

Super sad can't get the project to compile! maybe you hook us up with a binary or hex of the compiled firmware?

@JoNilsson JoNilsson changed the title Issues with call to SPI function, SPI.h / SdFat.h Build time compiler errors Jul 3, 2020
@JoNilsson
Copy link
Author

Looking deeper into SdFat, where the majority of my compilation errors seem to be stemming from, I realize that the Lib is highly configurable. Possibly, you have customized SdFatConfig.h?

@ztto
Copy link
Owner

ztto commented Jul 4, 2020

https://github.com/rogerclarkmelbourne/Arduino_STM32/releases/tag/v1.0.0

@JoNilsson
Copy link
Author

image
Closing issue now.
Thanks for the insights.

erichelgeson pushed a commit to erichelgeson/BlueSCSI that referenced this issue Nov 4, 2022
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

2 participants