Re: RepRapFirmware 3.0 port for LPC1768/9 based boards February 11, 2020 02:53AM |
Registered: 4 years ago Posts: 213 |
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards February 11, 2020 03:01AM |
Registered: 13 years ago Posts: 224 |
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards February 11, 2020 03:27AM |
Registered: 10 years ago Posts: 14,685 |
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards February 11, 2020 05:50AM |
Registered: 4 years ago Posts: 1 |
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards February 11, 2020 06:00AM |
Registered: 4 years ago Posts: 7 |
I just tested on an SKR 1.4 board with 2208 XYZ and 2209 E drivers.Quote
gloomyandy
I have just updated my build (that does have support for TMC22XX devices in UART mode) and if you would like to try it you can grab the binary here:
[github.com]
Note that this is built for WiFi not ethernet.
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards February 11, 2020 07:36AM |
Registered: 4 years ago Posts: 213 |
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards February 11, 2020 07:41AM |
Registered: 4 years ago Posts: 213 |
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards February 11, 2020 09:06AM |
Registered: 4 years ago Posts: 7 |
The same printer running Marlin 2.0 runs completely silently. Perhaps the default settings in Marlin are configured more correctly. Can you compare the 2208 default settings from Marlin with the settings in RepRap?Quote
gloomyandy
What are you doing to set stealthchop and how are you determining what mode they are in?
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards February 11, 2020 12:01PM |
Registered: 4 years ago Posts: 213 |
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards February 11, 2020 09:09PM |
Registered: 11 years ago Posts: 341 |
Quote
gloomyandy
@jay_s firstly things may have changed since I last tried this, but last time I looked none of the pins for the stepper drivers are in the pin table (because they are specified in a "special" array of pins), similarly I don't think the pins used for the external SPI or the UART pins are in pin map (because normally they will be referenced as a UART or SPI device implicitly), but if you want to use then for some other purpose then it is not possible to do so. But as I said this needs to be checked as it has been a while!
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards February 13, 2020 02:59AM |
Registered: 4 years ago Posts: 213 |
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards February 13, 2020 06:02AM |
Registered: 4 years ago Posts: 213 |
Quote
sdavi
Yes this was done on purpose for those using the pre-compiled binary, to avoid someone making a typo etc leading to errors/weird behaviour on the steppers, UART and SPI (which could have a SDCard connected etc). If there is no display/sdcard connected then there is already a number of spare pins that are already usable.
But yes it is possible to use nearly any pin you want by compiling your own firmware.bin. UART is assumed to be used, but can be disabled by not defining SERIAL_AUX_DEVICE in Pins_LPC.h. Any pins you want to make available for gcode need to be in the pintable. SPP isn't initialised until it is first used so if using those pins then you just need to ensure you don't enable anything that uses it. The generic board has most pins available already (i think even including UART), you only need to uncomment a few lines if you really want access to the SPI pins.
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards February 13, 2020 09:52PM |
Registered: 11 years ago Posts: 341 |
Quote
gloomyandy
Hi @sdavi, I've just noticed that some of your RRF repos are currently marked as archived. I hope that doesn't mean you no longer plan to update them as that would be a great pity.
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards February 18, 2020 05:57PM |
Registered: 4 years ago Posts: 213 |
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards February 21, 2020 11:21AM |
Registered: 7 years ago Posts: 1,007 |
Quote
sdavi
Quote
gloomyandy
Hi @sdavi, I've just noticed that some of your RRF repos are currently marked as archived. I hope that doesn't mean you no longer plan to update them as that would be a great pity.
They have been archived as I don't plan to do any further updates at this time. I've left everything there on GitHub so others can fork it and can merge in changes from the official RRF repository to stay up-to-date.
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards February 25, 2020 08:44AM |
Registered: 4 years ago Posts: 213 |
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards February 25, 2020 08:55AM |
Registered: 13 years ago Posts: 224 |
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards February 25, 2020 06:51PM |
Registered: 11 years ago Posts: 341 |
Quote
jay_s
Maybe we would be able to leverage a connection to an SBC if and when that's implemented on the Duet 2?
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards February 27, 2020 04:21AM |
Registered: 4 years ago Posts: 213 |
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards February 27, 2020 06:26AM |
Registered: 11 years ago Posts: 341 |
Quote
gloomyandy
@sdavi That's interesting I've not really paid much attention to the SBC/DSF side of RRF 3.0 (I assuming it was simply not possible with the LPC version). Having now had a quick glance at it I wonder if it may be possible. My understanding is that certain functions get migrated to the rPi from the RRF control board. Does this migration free up any RAM on the LPC I wonder (things like the network buffers if using WiFi or possibly the SD card buffers?). Just random thoughts really. Is there any sort of documentation of how all of this hangs together? 16Kb for buffers is a big ask for an LPC though!
On a related note, do you have a good way to take a look at what the memory usage of an LPC based port is? I guess the map file contains information on the statically allocated parts, but it would be nice to have an overall picture of what the RAM is being used for.
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards February 29, 2020 10:15PM |
Registered: 11 years ago Posts: 341 |
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards March 01, 2020 03:43AM |
Registered: 4 years ago Posts: 213 |
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards March 01, 2020 03:51AM |
Registered: 4 years ago Posts: 213 |
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards March 01, 2020 04:52AM |
Registered: 11 years ago Posts: 341 |
Quote
gloomyandy
@sdavi, that's interesting, but a little worrying that we need to go so much lower on the buffer sizes, to get things to fit. I wonder if it will even run with buffers that are so much smaller? I had a quick look at the DSF code and changing the buffer size looked reasonably simple (as DC42 already changes it from the default 4K). In your build do you have code that actually handles the Linux SPI interface on the LPC, or would that need doing to be able to test things? I wonder how much space building without the SD card would save (I thinksome of the V3 duet cards operate without an SD card)? Though notbeing able to load the board config would be a pain.
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards March 01, 2020 07:18AM |
Registered: 13 years ago Posts: 224 |
The SBC hosts a virtual SD card which displays on DWC exactly the same way as an onboard one does. Therefore, we should have no issue loading the board.txt file.Quote
gloomyandy
@sdavi, that's interesting, but a little worrying that we need to go so much lower on the buffer sizes, to get things to fit. I wonder if it will even run with buffers that are so much smaller? I had a quick look at the DSF code and changing the buffer size looked reasonably simple (as DC42 already changes it from the default 4K). In your build do you have code that actually handles the Linux SPI interface on the LPC, or would that need doing to be able to test things? I wonder how much space building without the SD card would save (I thinksome of the V3 duet cards operate without an SD card)? Though notbeing able to load the board config would be a pain.
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards March 01, 2020 07:29AM |
Registered: 4 years ago Posts: 213 |
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards March 01, 2020 07:55AM |
Registered: 13 years ago Posts: 224 |
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards March 02, 2020 03:59AM |
Registered: 11 years ago Posts: 341 |
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards March 02, 2020 04:06AM |
Registered: 13 years ago Posts: 224 |
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards March 02, 2020 10:03AM |
Registered: 4 years ago Posts: 213 |