Welcome! Log In Create A New Profile

Advanced

RepRapFirmware 3.0 port for LPC1768/9 based boards

Posted by sdavi 
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
July 04, 2020 07:18AM
Quote
kostasbmw
hi
just received the lpc board for my skr 1.4 for the rep rap conversion and i m looking for a tutorial of how to......

thanks

[github.com]
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
July 04, 2020 02:25PM
no way i can connect

my m122
SENDING:M122
=== Diagnostics ===
RepRapFirmware for LPC176x based Boards (biquskr_1.4) version 3.1.1 running on LPC176x at 100Mhz
Used output buffers: 1 of 16 (1 max)
=== RTOS ===
Static ram: 3876
Dynamic Memory (RTOS Heap 5): 3296 free, 3272 never used
Exception stack ram used: 304
Never used ram: 380
Tasks: NETWORK(ready,1992) HEAT(blocked,1360) MAIN(running,1084) IDLE(ready,80)
Owned mutexes:
=== Platform ===
Last reset 00:00:36 ago, cause: [power up]
LPC Flash Slot[114]:
Last software reset details not available
Error status: 0
[ERROR] Error status: 0

Driver 0: ok, read errors 0, write errors 0, ifcount 0, reads 0, timeouts 73
Driver 1: ok, read errors 0, write errors 0, ifcount 0, reads 0, timeouts 72
Driver 2: ok, read errors 0, write errors 0, ifcount 0, reads 0, timeouts 72
Driver 3: ok, read errors 0, write errors 0, ifcount 0, reads 0, timeouts 72
Driver 4: ok, read errors 0, write errors 0, ifcount 0, reads 0, timeouts 72
Date/time: 1970-01-01 00:00:00
Slowest loop: 7.08ms; fastest: 0.31ms
=== Storage ===
Free file entries: 4
SD card 0 detected
SD card longest read time 1.6ms, write time 0.0ms, max retries 0
=== Move ===
Hiccups: 0, FreeDm: 100, MinFreeDm: 100, MaxWait: 0ms
Bed compensation in use: none, comp offset 0.000
=== DDARing ===
Scheduled moves: 0, completed moves: 0, StepErrors: 0, LaErrors: 0, Underruns: 0, 0 CDDA state: -1
=== Heat ===
Bed heaters = -1, chamberHeaters = -1
=== GCodes ===
Segments left: 0
Movement lock held by null
HTTP is idle in state(s) 0
File is idle in state(s) 0
USB is ready with "M122" in state(s) 0
Aux is idle in state(s) 0
Trigger is idle in state(s) 0
Queue is idle in state(s) 0
Daemon is idle in state(s) 0
Autopause is idle in state(s) 0
Code queue is empty.
=== Network ===
Slowest loop: 0.77ms; fastest: 0.00ms
Responder states: HTTP(0) HTTP(0)
HTTP sessions: 0 of 2
- WiFi -
Network state is starting2
WiFi module is disabled
Failed messages: pending 0, notready 0, noresp 0
Socket states: 0 0
Failed to initialise WiFi module, code -10 with m552 s0
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
July 04, 2020 02:35PM
You are not running the latest RRF version, but it should still work, the current release is 3.1.1-12 (see here [github.com]). Please post the output from M122 p200. Please post a picture of your board and wifi module so we can see how you have it connected. Did your WiFi module come with firmware installed? If not have you installed the correct firmware (what version did you install and how did you install it)?
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
July 04, 2020 02:36PM
What type of adapter is it? How is it connected? What's in your board.txt file?


Based in Darlington, North East
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
July 05, 2020 03:47AM
ok the adapter is the one I got from tindie ,supposed to have the server installed but I flashed it again through the USB port with the duetserverwifi.bin and the I connected to the sky 1.4 with the exp1 and exp2 cables
when I switch the power on I see only a blue flash from the adapter board
then I try to connect through yat terminal software ...no luck
I tried pronterface and I get the m122 as above but when I type m552 I get wifi disabled if I type m552 s0 I get error -10
thats the story

now I tried to down load the latest rrf but I can't find the download link or I m so blind and I can't find the download link

the board txt file I did nt touch it

thanks for your patience

Edited 1 time(s). Last edit at 07/05/2020 03:50AM by kostasbmw.
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
July 05, 2020 03:50AM
The latest release is [github.com]

Can you post the contents of your board.txt file?


Based in Darlington, North East
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
July 05, 2020 04:01AM
// Board Hardware configuration file for SKR v1.3
// generated by RepRapFirmware Configuration Tool (LPC Version) v2
// on Thu May 07 2020 07:31:52 GMT+0200 (Mitteleuropäische Sommerzeit)

//Note: Each line should be less than 120 characters.
// : Unwanted options can be commented out or set to NoPin. Lines commented out will get default values
// : for pins the default is NoPin.
// : Values for Arrays need to be contained within { and }
// : Comments can be defined with // or # (comments are not supported inside arrays)
// : Each config entry must be all on a single line.

lpc.board = biquskr_1.4;
//wifi pins
8266wifi.espDataReadyPin = 0.28
8266wifi.lpcTfrReadyPin = 1.30
8266wifi.espResetPin = 1.31
adc.prefilter.enable = true



//LED blinks to indicate Platform is spinning or other diagnostic
//Comment out or set to NoPin if not wanted.
leds.diagnostic = NoPin;

//Internal SDCard SPI Frequency.
lpc.internalSDCard.spiFrequencyHz = 25000000;

//Only supports 1 External SDCard
//externalSDCard.csPin = 0.16;
//externalSDCard.cardDetectPin = 1.31;
//lpc.externalSDCard.spiFrequencyHz = 4000000;
//lpc.externalSDCard.spiChannel = 0;

//LCD Pins (only ST9720 SPI currently supported)
//setup the Software SPI Pins for LCD
lpc.softwareSPI.pins = {1.20, NoPin, 1.18}; //Set to GPIO pins to use as SCK, MISO, MOSI
//lcd.spiChannel = 2;
//lcd.lcdCSPin = 1.19;
//lcd.lcdBeepPin = 1.30;
//lcd.encoderPinA = 3.26;
//lcd.encoderPinB = 3.25;
//lcd.encoderPinSw = 0.28; //click
//lcd.lcdDCPin = NoPin; //DataControl Pin (A0) if none used set to NoPin
//lcd.panelButtonPin = NoPin; //Extra button on RRD Panel


heat.tempSensePins = {bedtemp, e0temp}; //Max of 3 entries
//heat.spiTempSensorCSPins = { }; //Max of 2 entries
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
July 05, 2020 04:05AM
ok, that looks right.
Can you port an output of M122 P200 just to check they are loaded correctly?


Based in Darlington, North East
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
July 05, 2020 04:12AM
ok here we are
SENDING:M122 P200
== Configurable Board.txt Settings ==
lpc.board = generic
leds.diagnostic = NoPin
stepper.enablePins = { NoPin NoPin NoPin NoPin NoPin }
stepper.stepPins = { NoPin NoPin NoPin NoPin NoPin }
stepper.directionPins = { NoPin NoPin NoPin NoPin NoPin }
stepper.digipotFactor = 0.00
stepper.TmcUartPins = { NoPin NoPin NoPin NoPin NoPin }
stepper.numSmartDrivers = 0
heat.tempSensePins = { NoPin NoPin NoPin NoPin }
heat.spiTempSensorCSPins = { NoPin NoPin }
heat.spiTempSensorChannel = 0
atx.powerPin = NoPin
atx.powerPinInverted = false
sdCard.internal.spiFrequencyHz = 25000000
sdCard.external.csPin = NoPin
sdCard.external.cardDetectPin = NoPin
sdCard.external.spiFrequencyHz = 4000000
sdCard.external.spiChannel = 255
softwareSPI.pins = { NoPin NoPin NoPin }
SSP0.pins = { 0.15 0.17 0.18 0.16 }
8266wifi.espDataReadyPin = NoPin
8266wifi.lpcTfrReadyPin = NoPin
8266wifi.espResetPin = NoPin
8266wifi.serialRxTxPins = { NoPin NoPin }
serial.aux.rxTxPins = { 0.3 0.2 }
adc.prefilter.enable = false
adc.preFilter.numberSamples = 8
adc.preFilter.sampleRate = 10000
== Hardware Serial ==
AUX Serial: Disabled
WIFI Serial: Disabled
== Software PWM ==
== Servo PWM ==
Hardware PWM = 50Hz [ NoPin NoPin NoPin NoPin NoPin NoPin ]
Timer2 PWM = 50Hz [ NoPin NoPin NoPin ]
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
July 05, 2020 04:14AM
note that i m on 2130 stepper drivers if that means something and they were working
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
July 05, 2020 04:21AM
ok. your board.txt file is not getting loaded, hence why the board type is showing as generic.
Where have you put your board.txt file?


Based in Darlington, North East
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
July 05, 2020 04:38AM
Also please note that there is currently no support for the 2130 SPI interface. So you will have no way of setting current etc. via software. You will also probably need to set the number of smart drivers to 0 to stop the firmware trying to talk to them via the UART interface.
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
July 05, 2020 04:44AM
Quote
jay_s
ok. your board.txt file is not getting loaded, hence why the board type is showing as generic.
Where have you put your board.txt file?

in the sys file
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
July 05, 2020 04:46AM
Quote
gloomyandy
Also please note that there is currently no support for the 2130 SPI interface. So you will have no way of setting current etc. via software. You will also probably need to set the number of smart drivers to 0 to stop the firmware trying to talk to them via the UART interface.

ok i have the 2209s in the side to install but the communication should be ok apart of the drivers....or am i wrong???
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
July 05, 2020 04:48AM
well you've got something wrong somewhere are your board.txt file is not being loaded.
Can you show the contents of your sd card?


Based in Darlington, North East
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
July 05, 2020 05:05AM
Quote
jay_s
well you've got something wrong somewhere are your board.txt file is not being loaded.
Can you show the contents of your sd card?[/quote

gcodes
macros
sys
www
firmware
duetdriverfiles
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
July 05, 2020 05:36AM
i think i m going to start from the begining

what files should i have on the sd card ??

i guess i dont have to flash again the board ...the blue light blinks when connect

but from what i understand i have a problem with my board so it does nt connect through wifi but i have a serial connection somehow with pronterface

is there a package to download and put it on the card???

i would nt ask so many questions but i have a duet working fora year and i m used to the software and i want to make it work

thanks again
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
July 05, 2020 06:24AM
Just to be clear, it does not look like you have a problem with either the WiFi board or the SKR. However you do have a problem with the board.txt file. Either there is a problem with the content that is causing an error as it is being read, or you have it in the wrong place (it should be in the /sys folder and must be called board.txt), we can't tell because you did not post a complete directory listing of the sd card, or there is a problem with your SD card (please don't use the "free" card that comes with the SKR, they often have problems). I would start by deleting the board.txt file from the sd card and creating a new one. This wiki page [github.com] provides the basics that you will need to get started.

I'm out for the rest of the day, but someone else may be able to help. You may get more help by using the discord channels (Jay can provide a link).
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
July 05, 2020 11:59AM
Quote
jay_s
well you've got something wrong somewhere are your board.txt file is not being loaded.
Can you show the contents of your sd card?

what should be the content of the sd card ?? i dont see anything as a package for old people like me and i m reading the last 3 days to get this working

thanks
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
July 05, 2020 12:11PM
Join us on discord [discord.gg]
it'll be easier to be able to troubleshoot with you


Based in Darlington, North East
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
July 06, 2020 09:51AM
Quote
jay_s
@MKSA

Those changes are only in sdavi's build. Gloomyandy doesn't have access to sdavi's changes.

I am asking again, would it be possible to start new threads and move all the posts unrelated to sdavi build. This thread became so confused. Now it is dealing with hardware mods ?


"A comical prototype doesn't mean a dumb idea is possible" (Thunderf00t)
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
July 07, 2020 03:09AM
A new thread [reprap.org] has been created for the gloomyandy variant of RRF.
From now on, please direct all queries to that thread as this one will only be used for sdavi's version.
Support for gloomyandy's version can also be obtained through discord [discord.gg]


Based in Darlington, North East
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
July 19, 2020 10:27AM
Hey guys,

I made a guide on how to install RepRap firmware for Sidewinder X1. You can read it here: RepRap Firmware on Sidewinder X1: SKR 1.3/1.4
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
July 20, 2020 11:24AM
Quote
3DPrintBeginner
Hey guys,

I made a guide on how to install RepRap firmware for Sidewinder X1. You can read it here: RepRap Firmware on Sidewinder X1: SKR 1.3/1.4
Will your settings work with TMC 2209 ?
Sorry, only registered users may post in this forum.

Click here to login