How to upgrade board definition files for IDE 106 ???

I have a zip file with bord definition files for a 3d printer controller (Project | SolderPad)

The files where made for ide 0022 but the firmware i need to flash to the unit is made for 106..

The board as such are allready supported in the firmware but i still need the board files updated

From what i understand my controller is VERY close related to the sanguino controller and i have tried to compare the 2 file sets but i failed big time on figuring what changes needs to be done...

can anyone help me through this?

the sanguino files are here: https://github.com/ErikZalm/Marlin/tree/Marlin_v1/ArduinoAddons/Arduino_1.x.x/hardware/Sanguino

the files for my board is attached

OMC.zip (55.3 KB)

did i post in wrong section?

??

Did you try copying the OMC folder to the 'hardware' folder in the directory where you keep your sketches. Then re-start the IDE and see if "OMC with Atmega644 at 20 Mhz" shows up under Tools->Boards.

yes i did... and they do show up

i then select the board via menu, load up the marlin firmware by opening the ino file. edit the config tab to match my board... but compile fails

i know why.... the OMC folder is not made for IDE 106 but 0022... i also know that there are a bit difference between my electronics and the sanguino controller... i just cant figure out what to edit to make it work

Perhaps if you could describe in what way it "will not work" we could help correct the actual problem.

i just did the best way i could... i'm not good at programming etc...

i just know that the OMC zip is made for IDE 0022 and that my marlin firmware (GitHub - ErikZalm/Marlin: Reprap FW with look ahead. SDcard and LCD support. It works on Gen6, Ultimaker, RAMPS and Sanguinololu) is made to work with IDE 106

i also have found a board definition folder for sanguino in there...

when i compare the OMC folder to the Sanguino folder in the git link i can only see difference in number of files and some difference in filenames---

sorry that i dont know how to descripe the problem better... all i know is that i get a compile error

In file included from BlinkM.cpp:5:
/Marlin.h:30:22: error: Arduino.h: No such file or directory
In file included from /Marlin.h:41,
from BlinkM.cpp:5:
MarlinSerial.h:150: error: expected ',' or '...' before '&' token
MarlinSerial.h:150: error: ISO C++ forbids declaration of 'String' with no type
MarlinSerial.h:169: error: expected ',' or '...' before '&' token
MarlinSerial.h:169: error: ISO C++ forbids declaration of 'String' with no type
/MarlinSerial.h: In member function 'void MarlinSerial::print(int)':
MarlinSerial.h:152: error: 's' was not declared in this scope

It looks like the Sanguino files no longer support the ATmega644 chip.

Looks like you are screwed. You can't use the latest Marlin firmware because it requires Arduino 1.0.x and you can't run the support for your board on 1.0.x. You may have to get a new controller board like the RAMPS 1.4 board on an Arduino MEGA 2560.

the sanguino is supported in latest marlin :smiley: and sanguino is still the 644 chip

https://github.com/ErikZalm/Marlin/tree/Marlin_v1/ArduinoAddons/Arduino_1.x.x/hardware/Sanguino

my problem is just that my board is based on the sanguino but things are connected differently to the chip... had it been a direct sanguni ripoff i could just use the support files for sanguino that comes with marlin

that is why i asked how to upgrade my spoort files for IDE 106

The "how things are connected" is mostly in the "pins_arduino.h" file in the core.

Try this:

  1. Install the hardware/Sanguino folder from Marlin.
  2. Rename the Sanguino folder to OMC
  3. Replace the boards.txt file with the one from the OMC distribution
  4. Replace the cores/arduino/pins_arduino.h file with the one from the OMC distribution
  5. Re-start the IDE and see if it compiles the sketch you want to compile.

hehe.... there was an pins_arduino in the variants folder under the marlin sanguino copy...

no such file in the OMC distro.... might be called different in 0022

me blind... found them

Got help from a nice man at TKJ Electronics (www.tkjelectronics.dk)

Again 1KG thanks to Kristian Sloth Lauszus

The work will be merged in to marlin firmware when i get added as collab