grbl_controller_stm32 icon indicating copy to clipboard operation
grbl_controller_stm32 copied to clipboard

Compile error

Open OMARCITO007 opened this issue 6 years ago • 4 comments

invalid conversion from 'int' to 'SPIClass*' [-fpermissive] Thank you for modifying GRBL and converting it into an independent controller. It will be possible for you to share your HEX file.

OMARCITO007 avatar Feb 24 '19 05:02 OMARCITO007

Can you try the following: There is a SdFatConfig.h file (normally in folder Documents/arduino/libraries/sdfat/src)

In this file there is an option to specify which SPI can be used. It is in line 78. There is #define USE_STANDARD_SPI_LIBRARY 1

can you try to replace it by #define USE_STANDARD_SPI_LIBRARY 0

Providing the HEX file is not really a good option because each user should fill the config.h file the GRBL commands he wants. The values I put where just to show the concept.

mstrens avatar Feb 24 '19 08:02 mstrens

@OMARCITO007 Had the same issue and got it compiled and running with Arduino 1.8.5 and Sdfat library version 1.0.7. No changes needed for SdFatConfig.h This is a GRBL offline controller ADD-ON not a GRBL replacement/convertion.

@mstrens thank you for this great work, any plans on further release/features?

ggaljoen avatar Mar 16 '19 16:03 ggaljoen

I am curently working on a version for ESP32 associated with a touchscreen (instead of a rotary switch) It offers more possibilies (e.g. file uploads on SD card via wifi (so no need to manipulate the SD card)) It can be used with BCNC too over wifi

mstrens avatar Mar 16 '19 16:03 mstrens

invalid conversion from 'int' to 'SPIClass*' [-fpermissive] Thank you for modifying GRBL and converting it into an independent controller. It will be possible for you to share your HEX file.

you can ad this below code... SPIClass SPI_1(1); SdFat sd1(&SPI_1); // use SPI 1 hardware (stm32f103 has 2 spi)

zlychen avatar Mar 28 '19 07:03 zlychen