Repetier-Firmware icon indicating copy to clipboard operation
Repetier-Firmware copied to clipboard

Due software SPI doesn't support MAX6675

Open ghost opened this issue 9 years ago • 1 comments

If enable DUE_SOFTWARE_SPI and SUPPORT_MAX6675, it causes compiling error because Due software SPI mode doesn't have HAL::spiReceive(int).

error message: AppData\Local\Temp\build32422364d58d638c255ef101e289513d.tmp\sketch\Extruder.cpp: In function 'int16_t read_max6675(uint8_t)':

Extruder.cpp:1955: error: no matching function for call to 'HAL::spiReceive(int)'

     max6675_temp = HAL::spiReceive(0);

                                     ^

AppData\Local\Temp\build32422364d58d638c255ef101e289513d.tmp\sketch\Extruder.cpp:1955:41: note: candidate is:

In file included from AppData\Local\Temp\build32422364d58d638c255ef101e289513d.tmp\sketch\Repetier.h:514:0,

             from AppData\Local\Temp\build32422364d58d638c255ef101e289513d.tmp\sketch\Extruder.cpp:22:

AppData\Local\Temp\build32422364d58d638c255ef101e289513d.tmp\sketch\HAL.h:740:27: note: static uint8_t HAL::spiReceive()

 static inline uint8_t spiReceive()

                       ^

AppData\Local\Temp\build32422364d58d638c255ef101e289513d.tmp\sketch\HAL.h:740:27: note: candidate expects 0 arguments, 1 provided

Extruder.cpp:1957: error: no matching function for call to 'HAL::spiReceive(int)'

     max6675_temp |= HAL::spiReceive(0);

                                      ^

AppData\Local\Temp\build32422364d58d638c255ef101e289513d.tmp\sketch\Extruder.cpp:1957:42: note: candidate is:

In file included from AppData\Local\Temp\build32422364d58d638c255ef101e289513d.tmp\sketch\Repetier.h:514:0,

             from AppData\Local\Temp\build32422364d58d638c255ef101e289513d.tmp\sketch\Extruder.cpp:22:

AppData\Local\Temp\build32422364d58d638c255ef101e289513d.tmp\sketch\HAL.h:740:27: note: static uint8_t HAL::spiReceive()

 static inline uint8_t spiReceive()

                       ^

AppData\Local\Temp\build32422364d58d638c255ef101e289513d.tmp\sketch\HAL.h:740:27: note: candidate expects 0 arguments, 1 provided

ghost avatar Mar 02 '16 16:03 ghost

Hello! I experienced the same problems with the latest Repetierfirmware 1.0.3 , Arduino Due and Max6675. With Max6675 the compiling fails, with MAX31855 it works. Is there the possibility to correct the code in later versions? Greets,

ThiloBaWue avatar Feb 27 '19 07:02 ThiloBaWue