cant get marlin 2.0 mks sbase
March 07, 2019 06:16PM
I cant get marlin to compile with lpc1768 and mks sbase any help would be appreciated
Attachments:
open | download - failed compile.txt (36.8 KB)
Re: cant get marlin 2.0 mks sbase
March 07, 2019 08:30PM
Its breaking on

.piolibdeps\Adafruit NeoPixel\Adafruit_NeoPixel.cpp: In member function 'void Adafruit_NeoPixel::show()':

.piolibdeps\Adafruit NeoPixel\Adafruit_NeoPixel.cpp:153:3: error: 'noInterrupts' was not declared in this scope

noInterrupts(); // Need 100% focus on instruction timing


UPDATED...

How did you add the neopixel libraries?

all I did was update platformio.ini section
[env:LPC1768]
platform = [github.com]
framework = arduino
board = nxp_lpc1768
build_flags = -DTARGET_LPC1768 -DU8G_HAL_LINKS -IMarlin/src/HAL/HAL_LPC1768/include -IMarlin/src/HAL/HAL_LPC1768/u8g ${common.build_flags}
# debug options for backtrace
# -funwind-tables
# -mpoke-function-name
lib_ldf_mode = off
lib_compat_mode = strict
extra_scripts = Marlin/src/HAL/HAL_LPC1768/upload_extra_script.py
src_filter = ${common.default_src_filter} +
monitor_speed = 250000
lib_deps = Servo
LiquidCrystal
U8glib-HAL=https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip
[email protected]<1.0.0
Adafruit NeoPixel


and made one tiny change to .piolibdeps/Adafruit NeoPixel_ID28/Adafruit_NeoPixel.h

//#if (ARDUINO >= 100)
#include
//#else
// #include
// #include
//#endif

ie force it to use Arduino.h not WProgram.h

And it compiled fine.

Edited 2 time(s). Last edit at 03/07/2019 08:55PM by Dust.
Re: cant get marlin 2.0 mks sbase
March 07, 2019 08:41PM
its not committed
Attachments:
open | download - Configuration.h (75.9 KB)
Re: cant get marlin 2.0 mks sbase
March 15, 2019 10:37AM
I'm having truble compiling Marlin on mks sbase board, I need some help pls

Edited 2 time(s). Last edit at 03/16/2019 04:07AM by Of3d.
Attachments:
open | download - Error serial.PNG (34.6 KB)
open | download - Configuration.h - error.h (75.9 KB)
Re: cant get marlin 2.0 mks sbase
March 15, 2019 10:41PM
The serial port used in the firmware (ie in configuration.h) has nothing to do with the upload_port

This is related to how you put firmware on the controller

the full error is

CURRENT: upload_protocol = mbed
Looking for upload disk...
Error: Please specify `upload_port` for environment or use global `--upload-port` option.
For some development platforms it can be a USB flash drive (i.e. /media//)
*** [upload] Explicit exit, status 1

If you want to automatically upload to your controller you need to add the following line to platform.ini
upload_port = {path to where the controller sd card is visible}

{path to where the controller sd card is visible} is of course just a place holder, you need to replace this with the path to the mounted controller sd card..

Edited 1 time(s). Last edit at 03/15/2019 10:43PM by Dust.
Re: cant get marlin 2.0 mks sbase
March 16, 2019 06:09AM
Sry I'm ba newbie, should I write it under #target=upload ?
Path - I'm running Windows, it's on a D drive, I tried few things but I'm obviously not really doing it - can you be more specific please with the line I'm meant to write pls?

Edited 2 time(s). Last edit at 03/16/2019 07:14AM by Of3d.
Re: cant get marlin 2.0 mks sbase
March 16, 2019 07:17AM
no

need to be under a [section] header

under [env:LPC1768] is required for your controller

As the first line is fine.

Edited 1 time(s). Last edit at 03/16/2019 07:17AM by Dust.
Re: cant get marlin 2.0 mks sbase
March 16, 2019 09:04AM
Hi Dust thank you for your help,

I wrote this but still can't get past it
Attachments:
open | download - port path.PNG (14.6 KB)
Re: cant get marlin 2.0 mks sbase
March 16, 2019 09:23AM
add a / to the end of the path
Re: cant get marlin 2.0 mks sbase
March 16, 2019 10:34AM
Madly enough I somehow managed to pass through - had to add FIRMWARE.CUR on my sd card
next to step 2

thanks a lot dust smiling bouncing smiley

Edited 2 time(s). Last edit at 03/16/2019 11:35AM by Of3d.
Attachments:
open | download - no frmwr.PNG (15.8 KB)
Re: cant get marlin 2.0 mks sbase
March 16, 2019 10:00PM
you probably have to make that

/media/disk\ a/

to get past that space.
Re: cant get marlin 2.0 mks sbase
March 18, 2019 04:14AM
Yup that worked - that's was it, THANKS
Sorry, only registered users may post in this forum.

Click here to login