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
April 10, 2020 06:03PM
I'm not totally sure what it is you need, but to get a list of files (optionally in json format) you can use M20, you can then use M36 to obtain information about the file. M21 through to M37 can be used to manipulate files, start/stop/pause print jobs etc.
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
April 11, 2020 03:24PM
Thanks. I've done everything. While it works fine.
You can control it both through the web and through the touch screen. I’m testing the screen further.
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
April 12, 2020 05:07AM
Hi again!

I have some problems that I want to report just to know if they could come from using RC5 (if I have to upgrade to RC6 to solve...)
Some times, when moving, this error appears:
Warning: motor phase A may be disconnected reported by driver(s) 1
usually driver 0 and/or driver 1, sometimes phase A, others B or both.

when powering the heatbed, usually the system disconnects:
Warning: Lost connection to Duet (Timeout while waiting for transfer ready pin)
But this error I assume becomes from the external heatbed MOSFET as it is close to the Pi-SKR connection.

I'm using the 0.28 pin to the "sbc.lpcTfrReadyPin", is it possible to use the pin 1.31, this one is on the same EXP2 connector and would come in the same shielded cable, so safer. I would try any case.
I would try to change driver's positions as driver 3 has never (until now) said anything about disconnected phases, just to discard defective drivers (TMC2208 UART).

Kind regards.
Chema

Edited 1 time(s). Last edit at 04/12/2020 05:11AM by ChemaFuji.
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
April 12, 2020 06:01AM
@ChemaFuji

I get random driver warnings as well. I just ignore them.


Based in Darlington, North East
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
April 12, 2020 06:41AM
Yes I also get the driver warnings (pretty much always on the extruder driver in my case). But they are only a warning, so I just ignore them!

There should be no problem in switching to use P1.31. Personally I'd be tempted to switch it to P1.30 as that is the pin I use for the same function on my WiFi adaptor board. I'm not really sure why I decided to use P0.28 to be honest as P1.30 makes more sense! Once things settle down and I get access again to my soldering iron I will probably switch to that. I will also probably modify my adaptor board to add a reset button that is easy to get to!

BTW I've never seen any lost connection messages with my setup (Even with RC6 which runs the SPI bus at a much higher speed - 8MHz rather then 2MHz), but I only have a relatively short ribbon cable between the SKR and PI, 20cm I think. What length connector are you using?

Finally I hope that you will make your Touch screen project public, I'm sure it will be of interest to others using RRF.
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
April 12, 2020 07:20AM
I should have said that P1.31 makes sense if you want to just use pins from EXP2 (P1.30 is on EXP1), For me using some of the pins from EXP1 makes the wiring of the adaptor board a little easier.
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
April 12, 2020 03:05PM
Here is my modification of the firmware for the TFT screen.

Connect to AUX.

Tested for BIQU TFT24_V1.1. So it should work on the other TFT35 V1.0/V1.1/V1.2/V2.0/V3.0, TFT28, TFT24 V1.1, MKS 32

github.com
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
April 12, 2020 03:18PM
@bcmob

Does it look any different to the standard touch interface?


Based in Darlington, North East
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
April 12, 2020 05:04PM
Quote
jay_s
Does it look any different to the standard touch interface?
The standard touch interface does not work through the AUX as there is no confirmation of commands and works differently unlike the MARLIN standard

Edited 1 time(s). Last edit at 04/12/2020 05:05PM by bcmob.
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
April 13, 2020 05:08AM
@bcmob perhaps you could post a link to a video showing what it looks like and what works?
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
April 13, 2020 08:21AM
Hi @jay_s,

I can't ignore the Lost connection warning as it is real, so the bed is heating with no control and no other thing is controlled anymore (as the SKR is disconnected from the Pi). But this is something that comes with the powering on of the heated bed, so by now, I'll not use it 'till find some kind of sorting way to it. The other warnings, I'm ignoring at all.

@gloomyandy

Changed the tr pin to the P1.31 works fine (almost the same way as the P0.28). I was using a 50mm cable, but it makes it very difficult to find a good position for the SKR AND the Pi, so now I'm using a longer one (about 150mm) with the same results.

@bcmob

The TFT firmware on github has your modification, but the compiled .bin with that mod is only the 2.4" version? or you have compiled all the "sizes", I have a 3.5 one and want to check it, and the easy way is to have the release compiled file.
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
April 13, 2020 09:11AM
@ChemaFuji

Build all versions

github.com
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
April 13, 2020 09:51AM
@ChemaFuji
So did switching pins help with your disconnect problem or do you still have that?

Oh and 150mm is pretty long cable to SPI over. This may be especially true with RC6 (and probably later) which ups the speed to 8MHz, so something to keep an eye on. It is easy to reduce the speed used for the SPI bus, but I'm not sure how running a slower speed will impact things.
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
April 13, 2020 10:43AM
@gloomyandy
I recorded it as I could))) video of the touch screen
https://youtu.be/CxpymTDjtL8
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
April 13, 2020 12:46PM
@bcmob Thanks for that, looks like it is working pretty well!
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
April 14, 2020 03:38AM
I have been trying to use the latest sbc version on a skr1.3 board connected to a pi3.
I cannot get the pi to connect it only shows "DCS is not started" on the web page.
I can connect to the skr via usb and M122 returns the firmware info, so the firmware should be ok.
I have built the cable on a board so i do not think it is a bad connection.

Has anybody succeeded with the same combination?
Are there any checks I can do?
Thanks.
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
April 14, 2020 05:41AM
Questions...
1. What exactly do you mean by "latest sbc version" RC6?
2. What version of the DSF are you using? Is this from the stable or unsttable feed?
3. Have you downloaded the LPC modifications for DSF and used these to update the installed version?
4. Have you ever had a connection work between the SBC and the SKR board? If not you may have some sort of problem with the hardware.
5. How long is the cable you are using?
6. Do you have a sys/board.txt (with the correct entries in it for the SBC connection) on the SD card in the SKR?
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
April 14, 2020 05:49AM
@Micktol

Have you followed the instructions on the wiki [github.com]


Based in Darlington, North East
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
April 14, 2020 07:16AM
Thank you both for the quick reply, I now have it working.
I am using RC6 and followed the wiki. I had the board.txt file in the root directory of the sd card in the skr, but as @gloomyandy stated it needs to be in the /sys directory. The board.txt example in the wiki has the old name "linux.TfrReadyPin" which I had to change to "sbc.lpcTfrReadyPin" . It would be worth making it clearer in the wiki.
Thanks again for your help.
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
April 14, 2020 07:20AM
@Micktol, glad you have things working now. Please be aware that there seem to be a fair number of issues with RC6 and DSF 1.3.1 most of which do not seem to be LPC related (at least as far as I know), so I would take care when using it. I've been printing things with it and so far not had any big issues, but I'm not leaving the printer unattended just in case!
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
April 14, 2020 07:23AM
@Micktol

Thanks for pointing that out. I have updated the wiki accordingly.

As gloomyandy has said, there have been a number of reports of prints stopping mid print. At the moment, this is all to do with the DSF running on the pi.
There is an updated release of the DSF (1.3.2) and DWC (2.1.2) due shortly but even then, all the issues won't be fixed.


Based in Darlington, North East
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
April 15, 2020 02:39PM
Hi,
RC7 is now available. I've tested it a litlle with both SBC and WiFi modes. In SBC mode things seem to be more stable then with RC6.
[github.com]

Tagged Repos:
[github.com]
[github.com]
[github.com]
[github.com]
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
April 16, 2020 03:09AM
@gloomyandy I have been trying the RC7 version on my skr1.3 + pi3 and it has not disconnected as was the case with RC6. So looking good.

I have been trying to upload a gcode file directly from cura and prusa slicer but I receive a http 404 error. Is this a known problem?
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
April 16, 2020 03:17AM
Yes, this is a known problem.
There is an updated version of the plug-in that is due to be released at the weekend.
In the meantime, you can manually install it. See the last post here [forum.duet3d.com]


Based in Darlington, North East
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
April 16, 2020 04:23AM
@jay_s do you happen to know if there is anything being developed for Prusa slicer?
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
April 16, 2020 04:49AM
@gloomyandy

Not that I know of at the moment.


Based in Darlington, North East
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
April 16, 2020 02:38PM
Hi Guys!
Finally I have solved the problem with DCS disconnecting when powering up the heated Bed, I used short (60mm) and coax cables (from old video cams). Now it works like a charm. Time to upgrade to RC7+1.3.2... Looking for problems Hahahaha.

@bcmob, I've installed the 3.5v2.0 touch screen with your forked firmware and it works too very well...

Thanks to all for your work. Regards.
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
April 17, 2020 04:29PM
RC8 is now available here:
[github.com]

Tagged repos:
[github.com]
[github.com]
[github.com]
[github.com]
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
April 18, 2020 02:44PM
Hahaha, just my RC7 is working perfectly, now RC8... Any advantage? Any good news?
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
April 18, 2020 03:07PM
A few details here: [github.com]
Sorry, only registered users may post in this forum.

Click here to login