Closed Jugulaire closed 4 years ago
Which board and firmware branch are you using ? Your board type in configuration.h and default build in platformio.ini should be corresponding. Such as if you define BOARD FYSETC_F6 you need to change default build to mega2560
Hi, i'm compilling the CHEETAH/V12 Branch. For a Cheetah v1.2B board.
Now i can compile it but when i upload the Firmware to my board i got an error "TMC CONNEXION ERROR" Looked around on forum from FYSECT but nothing.
NOTE : I have compiled the firmware with the default platformio.ini file and default configuration.h and configuration_adv.h.
Someone tell to set TMC2208_STANDALONE instead of TMC2208 in the Configuration.h file but it is not working. I got layer shifting which is normal since the TMC2208 need to communicate with the board.
I've runned this m122 gcode and get error on ALL the TMC2208.
CHEETAH/V12 is bit old , i will update it soon. Try CHEETAH/V12-2.0.x branch https://github.com/FYSETC/Marlin-2.0.x-FYSETC/tree/CHEETAH/V12-2.0.x
Thx for response, tried with this one. It has failed too.
Step to reproduce : Download the zip from https://github.com/FYSETC/Marlin-2.0.x-FYSETC/tree/CHEETAH/V12-2.0.x
Open it up in platformIO and hit Build.
I got this error :
Compiling .pio\build\STM32F103RC_fysetc\libb61\Adafruit BusIO_ID6214\Adafruit_I2CDevice.cpp.o
.pio\libdeps\STM32F103RC_fysetc\Adafruit BusIO_ID6214\Adafruit_I2CDevice.cpp: In member function 'bool Adafruit_I2CDevice::read(uint8_t*, size_t, bool)':
.pio\libdeps\STM32F103RC_fysetc\Adafruit BusIO_ID6214\Adafruit_I2CDevice.cpp:160:79: error: no matching function for call to 'TwoWire::requestFrom(uint8_t, uint8_t, uint8_t)'
size_t recv = _wire->requestFrom((uint8_t)_addr, (uint8_t)len, (uint8_t)stop);
^
In file included from C:\Users\jugu\.platformio\packages\framework-arduinoststm32-maple\STM32F1\libraries\Wire/Wire.h:42:0,
from .pio\libdeps\STM32F103RC_fysetc\Adafruit BusIO_ID6214/Adafruit_I2CDevice.h:1,
from .pio\libdeps\STM32F103RC_fysetc\Adafruit BusIO_ID6214\Adafruit_I2CDevice.cpp:1:
C:\Users\jugu\.platformio\packages\framework-arduinoststm32-maple\STM32F1\libraries\Wire/utility/WireBase.h:101:11:
note: candidate: uint8 WireBase::requestFrom(uint8, int)
uint8 requestFrom(uint8, int);
^~~~~~~~~~~
C:\Users\jugu\.platformio\packages\framework-arduinoststm32-maple\STM32F1\libraries\Wire/utility/WireBase.h:101:11:
note: candidate expects 2 arguments, 3 provided
C:\Users\jugu\.platformio\packages\framework-arduinoststm32-maple\STM32F1\libraries\Wire/utility/WireBase.h:106:11:
note: candidate: uint8 WireBase::requestFrom(int, int)
uint8 requestFrom(int, int);
^~~~~~~~~~~
C:\Users\jugu\.platformio\packages\framework-arduinoststm32-maple\STM32F1\libraries\Wire/utility/WireBase.h:106:11:
note: candidate expects 2 arguments, 3 provided
*** [.pio\build\STM32F103RC_fysetc\libb61\Adafruit BusIO_ID6214\Adafruit_I2CDevice.cpp.o] Error 1
This error is related to the same library as before : Adafruit BusIO_ID6214
This is cause by Adafruit_MAX31865 lib. Comment following line in platformio.ini file Adafruit_MAX31865=https://github.com/adafruit/Adafruit_MAX31865/archive/master.zip And delete folder in Marlin\.pio\build\ Then compile again.
Hey, did exactly what you've said.
But it has failed again. So instead of remove just the build
file i removed the uildAND ibdeps
.
Now it compile I have some problem to get the flash to work but here is my solution for helping other :
# Identify the usr port by it's id
ls /dev/serial/by-id/
# run the stmflash with the right parameters
sudo stm32flash -w firmware.bin -v -i rts,dtr /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
Compilation was succesfull but I have 1 yellow remark: C:\Users\wes.platformio\packages\framework-arduinoststm32-maple\STM32F1\libraries\STM32ADC\src\utility\util_adc.c:10:30: warning: 'adc_result' initialized and declared 'extern' extern volatile unsigned int adc_result = 0;
Can I ignore it?
Yes you can
This issue is stale because it has been open 30 days with no activity. Remove stale label / comment or this will be closed in 5 days.
Description
Unable to build the firmware by following the documentation.
Steps to Reproduce
Then, edit the platformio.ini and switch the default build to STM32F103RC_fysetc.
Hit build again and have this nice error :
additional info
Followed this link which is not helpfull : https://github.com/FYSETC/Marlin-2.0.x-FYSETC/issues/10
Can you give me the right procedure to build this firmware ? Or give me the correctly configured hex file ?