Welcome! Log In Create A New Profile

Advanced

Marlin 2.0.7.2 can´t be compiled with RADDS-Board

Posted by Legion 2.3 
Marlin 2.0.7.2 can´t be compiled with RADDS-Board
May 24, 2021 04:02AM
Dear community

I´m trying to test the Marlin v2-firmware because I want to try out the s-curve acceleration feature.
Currently, I´m using Repetier v1.

My printer uses a RADDS board with an Arduino Due.
I use Visual Studio Code with installed PlatformIO and Auto Build Marlin.
I´ve already edited the config so that it fits my needs and i´ve defined the motherboard as "BOARD_RADDS".

The problem is that I can´t compile the firmware without errors.

What I get is the following:
Scanning dependencies...
Dependency Graph
|--  1.0
|--  1.0
Building in release mode
Compiling .pio\build\DUE\src\src\HAL\DUE\DebugMonitor.cpp.o
Compiling .pio\build\DUE\src\src\HAL\DUE\HAL.cpp.o
Compiling .pio\build\DUE\src\src\HAL\DUE\HAL_SPI.cpp.o
Compiling .pio\build\DUE\src\src\HAL\DUE\InterruptVectors.cpp.o
Compiling .pio\build\DUE\src\src\HAL\DUE\MarlinSerial.cpp.o
Compiling .pio\build\DUE\src\src\HAL\DUE\MarlinSerialUSB.cpp.o
In file included from Marlin\src\HAL\DUE\../../core/../inc/../HAL/./DUE/../shared/Marduino.h:36:0,
                 from Marlin\src\HAL\DUE\../../core/../inc/../HAL/./DUE/HAL.h:30,
                 from Marlin\src\HAL\DUE\../../core/../inc/../HAL/HAL.h:26,
                 from Marlin\src\HAL\DUE\../../core/../inc/MarlinConfig.h:31,
                 from Marlin\src\HAL\DUE\../../core/serial.h:24,
                 from Marlin\src\HAL\DUE\DebugMonitor.cpp:25:
C:\Users\danie\.platformio\packages\framework-arduino-sam\cores\arduino/Arduino.h:42:10: fatal error: chip.h: No such file or directory

**************************************************************
* Looking for chip.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:chip.h"
* Web  > [platformio.org]
*
**************************************************************

 #include 
          ^~~~~~~~
compilation terminated.
*** [.pio\build\DUE\src\src\HAL\DUE\DebugMonitor.cpp.o] Error 1
In file included from Marlin\src\HAL\DUE\../../inc/../HAL/./DUE/../shared/Marduino.h:36:0,
                 from Marlin\src\HAL\DUE\../../inc/../HAL/./DUE/HAL.h:30,
                 from Marlin\src\HAL\DUE\../../inc/../HAL/HAL.h:26,
                 from Marlin\src\HAL\DUE\../../inc/MarlinConfig.h:31,
                 from Marlin\src\HAL\DUE\HAL.cpp:27:
C:\Users\danie\.platformio\packages\framework-arduino-sam\cores\arduino/Arduino.h:42:10: fatal error: chip.h: No such file or directory

**************************************************************
* Looking for chip.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:chip.h"
* Web  > [platformio.org]
*
**************************************************************

 #include 
          ^~~~~~~~
compilation terminated.
In file included from Marlin\src\HAL\DUE\../../inc/../HAL/./DUE/../shared/Marduino.h:36:0,
                 from Marlin\src\HAL\DUE\../../inc/../HAL/./DUE/HAL.h:30,
                 from Marlin\src\HAL\DUE\../../inc/../HAL/HAL.h:26,
                 from Marlin\src\HAL\DUE\../../inc/MarlinConfig.h:31,
                 from Marlin\src\HAL\DUE\MarlinSerial.cpp:30:
C:\Users\danie\.platformio\packages\framework-arduino-sam\cores\arduino/Arduino.h:42:10: fatal error: chip.h: No such file or directory

**************************************************************
* Looking for chip.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:chip.h"
* Web  > [platformio.org]
*
**************************************************************

 #include 
          ^~~~~~~~
compilation terminated.
In file included from Marlin\src\HAL\DUE\../../inc/../HAL/./DUE/../shared/Marduino.h:36:0,
                 from Marlin\src\HAL\DUE\../../inc/../HAL/./DUE/HAL.h:30,
                 from Marlin\src\HAL\DUE\../../inc/../HAL/HAL.h:26,
                 from Marlin\src\HAL\DUE\../../inc/MarlinConfig.h:31,
                 from Marlin\src\HAL\DUE\HAL_SPI.cpp:40:
C:\Users\danie\.platformio\packages\framework-arduino-sam\cores\arduino/Arduino.h:42:10: fatal error: chip.h: No such file or directory

**************************************************************
* Looking for chip.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:chip.h"
* Web  > [platformio.org]
*
**************************************************************

 #include 
          ^~~~~~~~
compilation terminated.
In file included from Marlin\src\HAL\DUE\../../inc/../HAL/./DUE/../shared/Marduino.h:36:0,
                 from Marlin\src\HAL\DUE\../../inc/../HAL/./DUE/HAL.h:30,
                 from Marlin\src\HAL\DUE\../../inc/../HAL/HAL.h:26,
                 from Marlin\src\HAL\DUE\../../inc/MarlinConfig.h:31,
                 from Marlin\src\HAL\DUE\InterruptVectors.cpp:35:
C:\Users\danie\.platformio\packages\framework-arduino-sam\cores\arduino/Arduino.h:42:10: fatal error: chip.h: No such file or directory

**************************************************************
* Looking for chip.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:chip.h"
* Web  > [platformio.org]
*
**************************************************************

 #include 
          ^~~~~~~~
compilation terminated.
*** [.pio\build\DUE\src\src\HAL\DUE\HAL.cpp.o] Error 1
*** [.pio\build\DUE\src\src\HAL\DUE\MarlinSerial.cpp.o] Error 1
*** [.pio\build\DUE\src\src\HAL\DUE\InterruptVectors.cpp.o] Error 1
*** [.pio\build\DUE\src\src\HAL\DUE\HAL_SPI.cpp.o] Error 1
In file included from Marlin\src\HAL\DUE\../../inc/../HAL/./DUE/../shared/Marduino.h:36:0,
                 from Marlin\src\HAL\DUE\../../inc/../HAL/./DUE/HAL.h:30,
                 from Marlin\src\HAL\DUE\../../inc/../HAL/HAL.h:26,
                 from Marlin\src\HAL\DUE\../../inc/MarlinConfig.h:31,
                 from Marlin\src\HAL\DUE\MarlinSerialUSB.cpp:30:
C:\Users\danie\.platformio\packages\framework-arduino-sam\cores\arduino/Arduino.h:42:10: fatal error: chip.h: No such file or directory

**************************************************************
* Looking for chip.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:chip.h"
* Web  > [platformio.org]
*
**************************************************************
 #include 
          ^~~~~~~~
compilation terminated.
*** [.pio\build\DUE\src\src\HAL\DUE\MarlinSerialUSB.cpp.o] Error 1
=========================================================================== [FAILED] Took 3.16 seconds ===========================================================================

Environment    Status    Duration
-------------  --------  ------------
DUE            FAILED    00:00:03.160
===================================================================== 1 failed, 0 succeeded in 00:00:03.160 =====================================================================

It seems like the compiler is missing the file "chip.h".
I also tried other 32bit-boards (the RUMBA32 for example) with the same error.
When I define an ATmega2560-based board, the built works without errors.
Is there anything I am doing wrong, do I need to add some addons, or is it a bug in the Marlin-FW?
Re: Marlin 2.0.7.2 can´t be compiled with RADDS-Board
May 24, 2021 05:00AM
Cant reproduce this

also 2.0.8.1 is out now.. should really use that.

but check these are the same as yours

CONFIGURATION: [docs.platformio.org]
PLATFORM: Atmel SAM (6.0.1) > Arduino Due (Programming Port)
HARDWARE: AT91SAM3X8E 84MHz, 96KB RAM, 512KB Flash
DEBUG: Current (atmel-ice) External (atmel-ice, blackmagic, jlink, stlink)
PACKAGES:
- framework-arduino-sam 1.6.12
- framework-cmsis 1.40500.0 (4.5.0)
- framework-cmsis-atmel 1.2.1
- toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)

that file should be in .platformio/packages/framework-arduino-sam/system/libsam/chip.h if its not there delete platformio/packages/framework-arduino-sam this forces platformio to reinstall it
Re: Marlin 2.0.7.2 can´t be compiled with RADDS-Board
May 24, 2021 05:24AM
Thank you for your fast response.

That was it!
The entire folder .platformio/packages/framework-arduino-sam/system/libsam was missing.
I deleted it and reloaded it with PlatformIO. Now I can compile everything without errors.

Thank you very much.
Re: Marlin 2.0.7.2 can´t be compiled with RADDS-Board
May 24, 2021 03:12PM
Now that I was able to compile Marlin and flash the arduino, I got the next problem: I can´t get the communication working.

The arduino is connected to a windows 10 tablet pc with repetier Server. There is no problem when the arduino works with Repetier firmware, but as soon as I install Marlin, the communication won´t work anymore.
I can´t move any axis, I can´t access the EEPROM and there are no temp readings.
The log looks like this:

Mesg:20:28:28.769: Dtr: false Rts: false
Mesg:20:28:28.799: Dtr: true Rts: true
Recv:20:28:28.929: Printer reset detected:start
Recv:20:28:28.940: start
Send:20:28:28.940: N0 M110 N0
Send:20:28:28.940: N1 M999 ; In case we did not reset recover from fatal state
Send:20:28:28.940: N0 M110 N0
Recv:20:28:28.940: PowerUp
Recv:20:28:28.940: Marlin 2.0.8.1
Recv:20:28:28.940: echo: Last Updated: 2021-05-15 | Author: (, MOAP Remastered)
Recv:20:28:28.940: echo:Compiled: May 24 2021
Recv:20:28:28.940: echo: Free Memory: 83516 PlannerBufferBytes: 3328
Recv:20:28:28.949: echo:EEPROM version mismatch (EEPROM=? Marlin=V83)
Recv:20:28:28.949: echo:Hardcoded Default Settings Loaded
Recv:20:28:28.949: echo:Unknown command: " "
Recv:20:28:28.949: ok
Mesg:20:28:47.319: Connection started
Mesg:20:28:47.319: Dtr: false Rts: false
Mesg:20:28:47.359: Dtr: true Rts: true
Recv:20:28:47.495: Printer reset detected:start
Recv:20:28:47.495: start
Send:20:28:47.495: N0 M110 N0
Send:20:28:47.495: N1 M999 ; In case we did not reset recover from fatal state
Send:20:28:47.495: N0 M110 N0
Recv:20:28:47.495: PowerUp
Recv:20:28:47.495: Marlin 2.0.8.1
Recv:20:28:47.495: echo: Last Updated: 2021-05-15 | Author: (Daniel Klimek, MOAP Remastered)
Recv:20:28:47.503: echo:Compiled: May 24 2021
Recv:20:28:47.503: echo: Free Memory: 83516 PlannerBufferBytes: 3328
Recv:20:28:47.511: echo:EEPROM version mismatch (EEPROM=? Marlin=V83)
Recv:20:28:47.511: echo:Hardcoded Default Settings Loaded
Recv:20:28:47.511: echo:Unknown command: " "
Recv:20:28:47.511: ok
Send:20:28:47.511: N2 M115 ; Check firmware and capabilities
Mesg:20:29:07.505: Warning: Communication timeout - resetting communication buffer.
Mesg:20:29:07.505: Connection status: Buffered:32, Manual Commands: 14, Job Commands: 0
Mesg:20:29:07.505: Buffer used:32 Enforced free byte:11 lines stored:4
Send:20:29:07.505: N3 M220 S100 ; set speed multiplier
Send:20:29:07.505: N4 M221 S100 ; set flow multiplier
Send:20:29:07.505: N5 M355 ; get light status
Recv:20:29:07.505: echo:Unknown command: " "
Recv:20:29:07.513: ok
Send:20:29:07.513: N6 G92 E0 ; reset extruder position
Mesg:20:29:11.523: Warning: Communication timeout - resetting communication buffer.
Mesg:20:29:11.523: Connection status: Buffered:33, Manual Commands: 10, Job Commands: 0
Mesg:20:29:11.523: Buffer used:33 Enforced free byte:7 lines stored:3
Send:20:29:11.523: N7 G90 ; absolute coordinates
Send:20:29:11.523: N8 M82 ; absolute E values
Send:20:29:11.523: N9 G21 ; units are mm
Send:20:29:11.523: N10 M114 ; check position
Recv:20:29:11.530: echo:Unknown command: " "
Recv:20:29:11.530: ok
Send:20:29:11.530: N11 M111 S6 ; debug flags
Mesg:20:29:15.530: Warning: Communication timeout - resetting communication buffer.
Mesg:20:29:15.530: Connection status: Buffered:32, Manual Commands: 5, Job Commands: 0
Mesg:20:29:15.530: Buffer used:32 Enforced free byte:12 lines stored:4
Send:20:29:15.530: N12 M360 ; get configuration
Send:20:29:15.530: N13 M539 S1
Send:20:29:15.530: @getip
Recv:20:29:15.586: echo:Unknown command: ""
Recv:20:29:15.586: ok
Recv:20:29:15.586: Error:Line Number is not Last Line Number+1, Last Line: 0
Recv:20:29:15.586: Resend: 1
Recv:20:29:15.586: ok
Send:20:29:15.594: @getip
Send:20:29:15.634: N15 M117 192.168.2.107:3344
Recv:20:29:15.642: echo:Unknown command: " "
Recv:20:29:15.642: ok
Mesg:20:29:19.647: Warning: Communication timeout - resetting communication buffer.
Mesg:20:29:19.647: Connection status: Buffered:38, Manual Commands: 2, Job Commands: 0
Mesg:20:29:19.647: Buffer used:38 Enforced free byte:31 lines stored:2
Send:20:29:19.647: N17 M117 192.168.2.107:3344
Recv:20:29:19.647: echo:Unknown command: " "
Recv:20:29:19.647: ok
Mesg:20:29:26.652: Warning: Communication timeout - resetting communication buffer.
Mesg:20:29:26.652: Connection status: Buffered:35, Manual Commands: 1, Job Commands: 0
Mesg:20:29:26.652: Buffer used:35 Enforced free byte:7 lines stored:5
.
.
###Here I try to move the x axis###
.
.
Recv:20:34:21.027: ok
Send:20:34:22.830: N93 G1 X2.00 F6000
Send:20:34:23.033: N95 G1 X3.00 F6000
Mesg:20:34:27.041: Warning: Communication timeout - resetting communication buffer.
Mesg:20:34:27.041: Connection status: Buffered:100, Manual Commands: 19, Job Commands: 0
Mesg:20:34:27.041: Buffer used:100 Enforced free byte:15 lines stored:12
Send:20:34:27.041: N96 G1 X4.00 F6000
Send:20:34:27.041: N97 G1 X5.00 F6000
Send:20:34:27.041: N98 G1 X6.00 F6000
Send:20:34:27.042: N99 G1 X7.00 F6000
Send:20:34:27.042: N100 G1 X8.00 F6000
Send:20:34:27.042: N101 G1 X9.00 F6000
Mesg:20:34:31.049: Warning: Communication timeout - resetting communication buffer.
Mesg:20:34:31.049: Connection status: Buffered:97, Manual Commands: 24, Job Commands: 0
Mesg:20:34:31.049: Buffer used:97 Enforced free byte:15 lines stored:7
Send:20:34:31.049: N103 G1 X10.00 F6000
Send:20:34:31.049: N104 G1 X11.00 F6000
Send:20:34:31.050: N105 G1 X12.00 F6000
Send:20:34:31.050: N106 G1 X13.00 F6000
Send:20:34:31.050: N107 G1 X14.00 F6000
Send:20:34:31.050: N108 G1 X15.00 F6000
Recv:20:34:31.053: echo:Unknown command: " "
Recv:20:34:31.053: ok
Send:20:34:31.053: N109 G1 X16.00 F6000
Mesg:20:34:35.062: Warning: Communication timeout - resetting communication buffer.
Mesg:20:34:35.062: Connection status: Buffered:90, Manual Commands: 17, Job Commands: 0
Mesg:20:34:35.062: Buffer used:90 Enforced free byte:15 lines stored:6

This is the config from Repetier Server:


I already tried different settings:
Serial_Port 0 / -1 (-1 makes it worse)
BAUDRATE 250000 / 115200 (no changes)
TX_Buffer_Size 0 / 128 (no changes)
RX_Buffer_SIZE undefinded / 1024 (no changes)
Repetier Input Buffer 63 / 128 (no changes)

I´ve attached the config files.

Any ideas what I´m doing wrong?
Attachments:
open | download - Configuration_adv.h (160.3 KB)
open | download - Configuration.h (100.1 KB)
Re: Marlin 2.0.7.2 can´t be compiled with RADDS-Board
May 24, 2021 06:46PM
When ever you flash a new version of marlin, you must update the eeprom. Send the machine a M502 (reset to Configuration.h defaults) then a M500 (save)
Re: Marlin 2.0.7.2 can´t be compiled with RADDS-Board
May 24, 2021 09:23PM
You also need to enable #define ADVANCED_OK and #define TX_BUFFER_SIZE 32

Edited 1 time(s). Last edit at 05/24/2021 09:25PM by Dust.
Re: Marlin 2.0.7.2 can´t be compiled with RADDS-Board
May 25, 2021 03:25PM
Quote
Dust
You also need to enable #define ADVANCED_OK and #define TX_BUFFER_SIZE 32

I´ve modified the config, but it didn´t change anything.

Quote
Dust
When ever you flash a new version of marlin, you must update the eeprom. Send the machine a M502 (reset to Configuration.h defaults) then a M500 (save)

I tried this as well, but it seems like Marlin doesn´t even respond to this code in any way. The serial monitor of Repetier Server doesn´t show an answer from Marlin after I´ve sent this code.

Could it be that Repetier Server and Marlin don´t speak the same "language" and are not compatible with each other?
Re: Marlin 2.0.7.2 can´t be compiled with RADDS-Board
May 25, 2021 05:44PM
I am so stupid eye rolling smiley

There IS a setting for the firmware in Repetier server, I just didn´t see it...
I´ve set it from Repetier to Marlin an it works. Damn it.
communication timeout
August 24, 2021 02:47PM
can't print on my prusia I3 (Flsun) the printer connect to repetier but when I clic print I receive Communication timeout - reset send buffer block

some one can help me
quelqu'un peux m'aider ?
Sorry, only registered users may post in this forum.

Click here to login