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
May 06, 2020 03:14PM
As per the duet 2 wifi wiring schematic found here [github.com]
Look at the top right of page 5.

Edited 1 time(s). Last edit at 05/06/2020 03:15PM by jay_s.


Based in Darlington, North East
PCR
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
May 06, 2020 04:09PM
Ah ok, because when its connected i can Not flash the Firmware winking smiley
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
May 06, 2020 05:47PM
@PCR to hold the 8266 in a reset state until after the LPC boots and then signals that it is ready to talk to the 8266.
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
May 06, 2020 05:50PM
@PCR If you allow the LPC to boot and talk to the 8266 (so it is no longer in a reset state), then you can flash the 8266 via USB. You can't use this to flash the device initially, but you can do it to update the firmware. When I was testing my updated version of the 8266 firmware, I flashed it many times this way.
PCR
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
May 07, 2020 02:52AM
Thank You winking smiley Its working in "dryrun" winking smiley
PCR
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
May 07, 2020 02:57AM
Another question. Would it be possible to use something like this ? [de.aliexpress.com] Some other user in anther forum asked this!
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
May 07, 2020 03:04AM
@PCR

I don't think there is enough ram for that module.
You will also note that there aren't enough pins either.


Based in Darlington, North East
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
May 07, 2020 03:33AM
@PCR those boards are really designed for use as a serial line replacement so they only really bring out the RX/TX pins. For the full RRF solution you need access to the SPI pins (which also runs at a much higher speed then the serial interface). So although you could potentially use them as a sort of wireless serial, you wouldn't be able to run the RRF web interface etc.
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
May 07, 2020 03:40AM
They probably can run the esp3d firmware, but that will still be feeding RRF via serial. I'm not sure how well esp3d works with RRF and how it compares to DWC.
PCR
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
May 07, 2020 03:41AM
Dear all thank you!
PCR
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
May 07, 2020 04:17AM
One other thing. It should be noted in the wiki that you have to change the firmware_wifi.bin to firmware.bin. If not the firmware would not flash on the SKR.

Another thing. Would it be possible to activate the issue thing on github?

Best
PCR
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
May 07, 2020 04:37AM
And another thing. Could the TFT Pins on the SKR be used for a PanelDue without SD ?
Best
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
May 07, 2020 06:01AM
@PCR see previous comments in this thread, the PanelDue already works with the SKR. Yes you connect it to the TFT pins.

I hadn't realised that issues was disabled by default. I will enable it (on the main repo only for now), but I would prefer that things are discussed here first, it just makes it easier to have things in one place.
PCR
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
May 07, 2020 08:14AM
Will do! winking smiley Thanx!
PCR
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
May 07, 2020 01:56PM
So its me again. I flashed the firmware and everthing works! Great Stuff.

now i wanted to connect the TFT35 to the aux port. I flashed the custom firmware for the tft which was mentioned here in the forum but is does not connect! Do i have to change something in the config.h or boards.txt?


Best
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
May 07, 2020 02:29PM
I've never used the TFT35 stuff, but the obvious things to check are do you have the TX/RX connections the right way around and is the baud rate set correctly (the default baud rate for the serial port when using RRF is 57600).
PCR
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
May 07, 2020 03:36PM
Yes they are TX to RX and RX to TX. Hmmm so i do not have to define Pins? Best
PCR
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
May 07, 2020 03:47PM
Solved it.

M575 P1 B115200 S1
PCR
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
May 08, 2020 03:40AM
Would it be possible to expand the Firmware to stm32 Boards?

Best
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
May 08, 2020 04:03AM
There was someone that DC42 knows who was supposed to be working on just that. Not heard anything about it for a few months though.

@DC42 any update on the STM32 port?


Based in Darlington, North East
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
May 08, 2020 11:25AM
Quote
jay_s
There was someone that DC42 knows who was supposed to be working on just that. Not heard anything about it for a few months though.

@DC42 any update on the STM32 port?

I've seen nothing since this [3dtoday.ru].



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
May 10, 2020 09:21PM
**Feature Request**
Please enable Stall Detection using TMC2209 on LPC1768/9 boards.

I was able to use/tune Stall Detection on a Duet2Wifi board using M915 X Y S5 R2.
* Snnn is a value -64/+64 to set the detection threshold.
* Rn determines action when Stall is detected: 0 = no action, 1 = log it, 2 = pause, 3 = pause/re-home/resume
Stall Detection works, however motor noise is noticeable (no StealthChop on TMC2660).

Using a SKR V1.3 board and TMC2209:
* RepRapFirmware for LPC176x based Boards (biquskr_1.3) version 3.01-RC12 running on LPC176x at 100Mhz
I am able to connect to the board and drive the motors with Pronterface: G1 X100.
Motor drives as expected, with zero noise.
However when I try to enable/tune StallGuard using M915, I get an error:
>>> M915
SENDING:M915
Warning: M915: Command is not supported

Also, I noticed in the LPCConfigurator Tool https://jaysuk.github.io/LPCConfigurator/Endstops
The "Sensorless" Endstop button is grayed out and not enabled.

This comment from dc42 from 10-Feb-20 might be of assistance?
Quote
dc42
Someone recently enquired when I was likely to add TMC2209 stall detection support to the TMC22xx driver in RRF, although I haven't found the original post. I've now added stall detection and configuration to the version of that driver in the Duet3Expansion project. It may be a little while before I port it over to the driver in RepRapFirmware (from which it was derived) because there isn't yet a Duet main board with TMC2209 drivers; but if someone else wants to port the changes across, it shouldn't be hard to do. The main difference between the two drivers is that the one in Duet3Expansion uses a separate FreeRTOS task to do the UART communication.

Thanks! Bill Trondsen
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
May 11, 2020 12:46AM
I was followinf thislink to compile RRF over vscode but it dows not work
[www.jayuk.org]
any advice
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
May 11, 2020 01:32AM
@DrDitto

You'll have to be a bit more specific about what doesn't work.
Are you getting error codes come up when you try to compile?


Based in Darlington, North East
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
May 11, 2020 01:46AM
> Executing task in folder CoreLPC4RRF: make all <

- Firmware Filename: firmware.bin
- Linker Script used: ./CoreLPC2/variants/LPC/linker_scripts/gcc/LPC17xx_smoothie_combined.ld
- Building ESP8266 WIFI Support
- Building LPC TMC22XX support
"[arm-none-eabi-gcc: Compiling CoreLPC2/cores/arduino/wdt.c]"
La sintaxis del comando no es correcta.
bin\make.exe: *** [makefile:155: build/./CoreLPC2/cores/arduino/wdt.o] Error 1
The terminal process terminated with exit code: 1

Terminal will be reused by tasks, press any key to close it.

> Executing task in folder CoreLPC4RRF: make all <

- Firmware Filename: firmware.bin
- Linker Script used: ./CoreLPC2/variants/LPC/linker_scripts/gcc/LPC17xx_smoothie_combined.ld
- Building ESP8266 WIFI Support
- Building LPC TMC22XX support
"[arm-none-eabi-gcc: Compiling CoreLPC2/cores/arduino/wdt.c]"
La sintaxis del comando no es correcta.
bin\make.exe: *** [makefile:155: build/./CoreLPC2/cores/arduino/wdt.o] Error 1
The terminal process terminated with exit code: 1

Terminal will be reused by tasks, press any key to close it.
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
May 11, 2020 01:53AM
I folow all the steps at this link
[www.jayuk.org]
But When do Terminal*/Run Task Build firmware
This comes out

> Executing task in folder CoreLPC4RRF: make all <

- Firmware Filename: firmware.bin
- Linker Script used: ./CoreLPC2/variants/LPC/linker_scripts/gcc/LPC17xx_smoothie_combined.ld
- Building ESP8266 WIFI Support
- Building LPC TMC22XX support
"[arm-none-eabi-gcc: Compiling CoreLPC2/cores/arduino/wdt.c]"
La sintaxis del comando no es correcta.
bin\make.exe: *** [makefile:155: build/./CoreLPC2/cores/arduino/wdt.o] Error 1
The terminal process terminated with exit code: 1

Terminal will be reused by tasks, press any key to close it.
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
May 11, 2020 01:56AM
Ok, you don't have make in your windows environmental variables.

Quote

Then download and install make. Use the “complete package except sources” version. Once installed you will need to add the location of the bin folder that is installed to your windows path environment setting. While there also add the location of mkdir.exe which will have been installed with git. It can be found in the usr/bin folder where git is installed. Once thats done, close VSCode and then reopen it.

Make can be found here

You need to add it to your system variables as described here
Make sure you add it to the system variables though and not the user variables

Edited 1 time(s). Last edit at 05/11/2020 01:56AM by jay_s.


Based in Darlington, North East
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
May 11, 2020 02:26AM
All,

The wiki has been updated.
The SKR instructions have been split into wifi and SBC. The stepper.numSmartDrivers in board.txt will be available when the next build is released. The code is already present if you want to create your own build
MKS Sbase instructions have been uploaded. Wifi instructions have been included which detail the hardware mod. The firmware to support this will be available when the next build is released. The code is already present if you want to create your own build


Based in Darlington, North East
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
May 11, 2020 03:06AM
Thanks a lot
It startd to compiling....
Attachments:
open | download - make.JPG (30.3 KB)
Re: RepRapFirmware 3.0 port for LPC1768/9 based boards
May 11, 2020 03:38AM
Thanks for the help
I get this error

RepRapFirmware/src/GCodes/GCodeBuffer/StringParser.cpp: In member function 'int32_t
StringParser::ReadIValue()':
RepRapFirmware/src/GCodes/GCodeBuffer/StringParser.cpp:1634:23: error: 'SafeStrtol'
was not declared in this scope
const int32_t rslt = SafeStrtol(gb.buffer + readPointer, &endptr);
^~~~~~~~~~
RepRapFirmware/src/GCodes/GCodeBuffer/StringParser.cpp:1634:23: note: suggested alternative: 'SafeStrtoul'
const int32_t rslt = SafeStrtol(gb.buffer + readPointer, &endptr);
^~~~~~~~~~
SafeStrtoul
bin\make.exe: *** [makefile:164: build/./RepRapFirmware/src/GCodes/GCodeBuffer/StringParser.o] Error 1
The terminal process terminated with exit code: 1

Any advice?
Sorry, only registered users may post in this forum.

Click here to login