Re: LPC port of RepRapFirmware March 31, 2018 07:38AM |
Registered: 11 years ago Posts: 14,685 |
Re: LPC port of RepRapFirmware April 04, 2018 07:54PM |
Registered: 11 years ago Posts: 14,685 |
Re: LPC port of RepRapFirmware April 04, 2018 08:24PM |
Registered: 6 years ago Posts: 17 |
Re: LPC port of RepRapFirmware April 05, 2018 12:22AM |
Registered: 11 years ago Posts: 341 |
Quote
dc42
There are two things in the new v2-dev branch of RRF in github that may be useful to you for your LPC port:
- I've added a spreadsheet to help calculate what is using RAM, to make it easier to see where savings can be made;
- I've changed to using newlib-nano instead of regular newlib, and our own strtod function instead of the library one. Between them this has saved around 3K of RAM.
Re: LPC port of RepRapFirmware April 11, 2018 05:43PM |
Registered: 6 years ago Posts: 9 |
Re: LPC port of RepRapFirmware April 12, 2018 01:46AM |
Registered: 11 years ago Posts: 14,685 |
Re: LPC port of RepRapFirmware April 12, 2018 01:49AM |
Registered: 11 years ago Posts: 14,685 |
Quote
sdavi
Quote
dc42
There are two things in the new v2-dev branch of RRF in github that may be useful to you for your LPC port:
- I've added a spreadsheet to help calculate what is using RAM, to make it easier to see where savings can be made;
- I've changed to using newlib-nano instead of regular newlib, and our own strtod function instead of the library one. Between them this has saved around 3K of RAM.
Great!! I'll check those out. 3K would be a big saving here.
Re: LPC port of RepRapFirmware April 12, 2018 06:14AM |
Registered: 11 years ago Posts: 341 |
Quote
dc42
The latest v2-dev sources also include a custom vsnprintf implementation (based on the FreeRTOS one with floating point support added), which saves a little more RAM.
Re: LPC port of RepRapFirmware April 12, 2018 10:10AM |
Registered: 11 years ago Posts: 14,685 |
Re: LPC port of RepRapFirmware April 12, 2018 10:16AM |
Registered: 6 years ago Posts: 9 |
Re: LPC port of RepRapFirmware April 12, 2018 11:32AM |
Registered: 11 years ago Posts: 14,685 |
Re: LPC port of RepRapFirmware April 12, 2018 10:16PM |
Registered: 6 years ago Posts: 17 |
Error: G29: Failed to load height map from file heightmap.csv: number expected at line 3 column 1
Re: LPC port of RepRapFirmware April 13, 2018 01:25AM |
Registered: 11 years ago Posts: 14,685 |
Re: LPC port of RepRapFirmware April 13, 2018 01:54AM |
Registered: 6 years ago Posts: 17 |
Re: LPC port of RepRapFirmware April 13, 2018 06:27AM |
Registered: 11 years ago Posts: 341 |
Quote
digi2life
Thanks, dc42. Those timings seem to work fine.
I have motors and XY endstops working now. But I am running a BLtouch connected to the Zmin endstop and the servo to D4 (pin 1.18) on the RAMPS (and Re-Arm) and can't figure out if that pin is set up. I tried to find the mapping in the header files, but I'm not very familiar with RRF (nor am I a programmer). Is there a way I can connect it with the compiled firmware or do I need to change something and re-compile (which I'd have to set up)?
Also, I have a PT100 with e3d amplifier. I'm guessing there's no easy way to get that working... or is there?
Re: LPC port of RepRapFirmware April 13, 2018 06:36AM |
Registered: 11 years ago Posts: 341 |
Quote
dc42
You'll need to ask sdavi about the pin mapping for bltouch.
PT100 with analog amplifier is not supported by RRF because it supports the more accurate digital interface boards instead. If the LPC port implements the usual sharing of the SPI bus that RRF normally does, then you can add an external MAX31865-based digital PT100 interface board. These are available inexpensively on ebay etc.
Re: LPC port of RepRapFirmware April 13, 2018 06:43AM |
Registered: 11 years ago Posts: 341 |
Quote
cyris69
Thanks, I haven't downloaded any source to build from. I'm sure sdavi will see this.
Re: LPC port of RepRapFirmware April 13, 2018 09:34AM |
Registered: 11 years ago Posts: 14,685 |
M280 P65 S10retractprobe.g:
M280 P65 S90and my z-probe section of config.g:
; Z-Probe M574 Z1 S2 ; Set endstops controlled by probe M558 P9 X0 Y0 Z1 H5 F200 T2000 ; BLTouch specific G31 X-26.5 Y-1.5 Z.9 P25 M557 X5:295 Y5:195 S40 ; Define mesh grid
Re: LPC port of RepRapFirmware April 13, 2018 08:07PM |
Registered: 6 years ago Posts: 17 |
Quote
sdavi
Quote
cyris69
Thanks, I haven't downloaded any source to build from. I'm sure sdavi will see this.
I've updated to the latest strtod and uploaded new binaries. I haven't included the new grid.cpp as it wasn't a straight drop in, so hopefully the new strtod fixes it for now - grid loads ok for me here.
Re: LPC port of RepRapFirmware April 14, 2018 01:37AM |
Registered: 11 years ago Posts: 14,685 |
network connection issues April 30, 2018 12:21PM |
Registered: 6 years ago Posts: 9 |
Re: network connection issues May 01, 2018 03:06AM |
Registered: 11 years ago Posts: 341 |
Quote
digi2life
I've been using this firmware on the Re-Arm for the last couple weeks and it's been great except for 2 network issues I'm having. There are times when I just can't get a connection to the web interface and have to reboot/reset the board multiple times until it decides to cooperate again. Usually, this is when first connecting to the board upon startup of the machine, but I've also lost the connection occasionally after the board is connected. is there a good way to diagnose this problem?
The second issue just began last Friday. When I attempt to view the g-code file directory through the web interface, the board disconnects after a few seconds (see attached image for a note on the file icons). I was still able to play files if I was fast enough to get them started before the disconnect. If I don't navigate to the g-code file tab, I have no issues. The config file editor works perfectly fine.
I tried a different sd-card and still had the same issue. Now that I'm writing this, the issue appears to be gone. I was able to upload a file and view the list with no issues.... so that's weird.
Re: LPC port of RepRapFirmware June 25, 2018 09:37PM |
Registered: 9 years ago Posts: 916 |
Re: LPC port of RepRapFirmware June 27, 2018 05:32AM |
Registered: 11 years ago Posts: 341 |
Quote
nebbian
Excellent work sdavi!
Personally i'm not interested in any form of networking, just a 128x64 display with control knob, and reading files from the removable SD card would do me fine (just as my printer has always worked with RAMPS/Marlin, RAMPS/Repetier, Re-Arm/Smoothie and Re-Arm/Marlin 2.0).
The RepRapFirmware page says that it is starting to add support for 12864 displays, does anyone know how mature this is? Have you tried RepRapFirmware on Re-Arm with a RepRapDiscount 12864 full graphic display?
Re: LPC port of RepRapFirmware June 29, 2018 01:25PM |
Registered: 9 years ago Posts: 916 |
Re: LPC port of RepRapFirmware July 31, 2018 09:43PM |
Registered: 9 years ago Posts: 166 |
Re: LPC port of RepRapFirmware July 31, 2018 11:59PM |
Registered: 11 years ago Posts: 341 |
Quote
AlexY
I've got an AZSMZ board which uses an LPC1768 and would like to try getting this RRF port onto it. Ideally, the AZSMZ 12864 LCD/Controller that was bundled with it would be functional as well.
What has to be done to add support for another board? Looks like I'll need to add a pin mapping in the variants folder and change Pins_LPC.h to accept the new mapping as an option; is there anything else that needs to be tweaked?
void Platform:: SetBoardType(BoardType bt) const char* Platform::GetElectronicsString() const const char* Platform::GetBoardString() constAnd in Platform.h update
enum class BoardType : uint8_tIf using the 1.21 version, in Platform.cpp also update the UpdateMotorCurrent function to avoid attemping to set the digipots as with rearm.
Re: LPC port of RepRapFirmware August 01, 2018 08:47PM |
Registered: 9 years ago Posts: 166 |