Re: LPC port of RepRapFirmware July 15, 2019 06:23PM |
Registered: 3 years ago Posts: 27 |
Quote
dc42
Quote
PB
Sinned,
thank you for helping to verify that everything were connected right.
Found that at F100000-50000 some part of image appeared and was becoming increasingly in sync
M918 P1 F30000 helped completely (but screen redraw is slow)
Is there some way to get same at faster redraw or it is not worth efforts?
I believe the problem is that the SBase drives the 12864 display with 3.3V signals, but the minimum input high voltage specified by the datasheet for the ST7920 chip on the display when it is powered from 5V is 3.5V. That's why it only works at low data rates. They should have included level shifters on that board, like we did on the Duet Maestro.
Re: LPC port of RepRapFirmware July 16, 2019 05:29AM |
Registered: 3 years ago Posts: 27 |
Re: LPC port of RepRapFirmware July 16, 2019 05:30AM |
Registered: 9 years ago Posts: 341 |
Quote
PB
heat.tempSensePins = {0.24, 0.23, 0.25};
heat.heatOnPins = {2.5, 2.7, 2.6};
fan.pins = {2.4, 2.6};
M307 H0 B0 S1.00
M305 P0 T100000 B4981 C1.632834e-7 R4700
M143 H0 S160
M301 H0 P16.2427 I0.6705 D98.3699 B30
M307 H1 B0 S1.00
M305 P1 T100000 B4981 C1.632834e-7 R4700
M143 H1 S280
M301 H1 P240.7739 I18.5211 D782.5151 B30
M307 H2 B1 A-1 C-1 D-1 ;By my idea it should release 2.6 from heatOnPins for use it as PSU fan
M305 P2 T10000 B3435 R4700 ;PSU thermistor
M143 H2 S70
M106 P0 S0 I0 F500 H-1 ;hotend fan
M106 P1 S0.5 I0 F500 H2 T40 ;PSU fan
Is there nice way to turn on PSU fan when thermistor is over 40C and halt system if it is over 70C?
Re: LPC port of RepRapFirmware July 16, 2019 06:31AM |
Registered: 9 years ago Posts: 341 |
Quote
sinned
it looks like its using different pins for SPI functions on EXP2 header. You might have to jumper the SPI pins for SCK, MISO and MOSI: 0.15, 0.17, 0.18. Even thought it worked on Smoothiware, the LPC port only uses the hardware SPI pins, and the others are SW driven. sdavi might be able to help here.
Re: LPC port of RepRapFirmware July 16, 2019 07:13AM |
Registered: 3 years ago Posts: 27 |
Quote
PB
Quote
PB
Seems Sbase do have level shifters i.e. SN74LVC1T45DCK at 0.15, 0.16, 0.18 [attachment 112060 Untitled.jpg]
I can not guess why it has problem with RRD displays.
May it be incompatibility like inverted SCK levels (wrong CPOL) or time shifted MOSI to SCK (wrong CPHA)?
Re: LPC port of RepRapFirmware July 16, 2019 07:31AM |
Registered: 9 years ago Posts: 341 |
Quote
PB
Quote
PB
Quote
PB
Seems Sbase do have level shifters i.e. SN74LVC1T45DCK at 0.15, 0.16, 0.18 [attachment 112060 Untitled.jpg]
I can not guess why it has problem with RRD displays.
May it be incompatibility like inverted SCK levels (wrong CPOL) or time shifted MOSI to SCK (wrong CPHA)?
BTW Sbase 1.2 schematics available [github.com]
The only thing I can confirm about Sbase 1.3 that level shifters IC at same places are present in 1.3 board.
Re: LPC port of RepRapFirmware July 16, 2019 09:49AM |
Registered: 5 years ago Posts: 110 |
Re: LPC port of RepRapFirmware July 16, 2019 09:57AM |
Registered: 3 years ago Posts: 27 |
Quote
sdavi
If you don't want to use 2.6 as a heater, then just remove it from the heatOnPins array in board.txt.
As for setting up the PSU thermostatic fan, just guessing here (never tried that before), but maybe its not yet monitoring heater 2 temps? So have you tried creating another "tool" with Heater2 (but without any drives etc attached)? Perhaps something like M563 P2 H2 might work. I also think that command M106 will only turn on at 50% when triggered?, if you want it running full speed i think you need S1.
Re: LPC port of RepRapFirmware July 16, 2019 10:23AM |
Registered: 5 years ago Posts: 110 |
Re: LPC port of RepRapFirmware July 16, 2019 12:22PM |
Registered: 5 years ago Posts: 1,007 |
Re: LPC port of RepRapFirmware July 16, 2019 12:32PM |
Registered: 5 years ago Posts: 110 |
Re: LPC port of RepRapFirmware July 16, 2019 05:17PM |
Registered: 3 years ago Posts: 27 |
Re: LPC port of RepRapFirmware July 17, 2019 01:24AM |
Registered: 5 years ago Posts: 1,007 |
Quote
sinned
Quote
MKSA
With the Sbase, just use a TFT32 display, cheap and less hassle.
How does that connect to the mainboard?
Re: LPC port of RepRapFirmware July 17, 2019 02:19AM |
Registered: 9 years ago Posts: 14,640 |
Quote
PB
When I try auto calibration G32 everything seems to proceed fine, homing and probing all points without any error messages but resulting M665 M666 parameters are completely same like before calibration.
config.g
M208 Z0 S1
M574 X2 Y2 Z2 S0
M558 P5 R0 H5 F300 T18000
M558 H15
G31 P500 X0 Y0 Z0
M556 S50 X0 Y0 Z0
M557 R95 S20
bed.g
M561
G28
G30 P0 X0 Y94.9 H0 Z-99999
G30 P1 X55.78 Y76.78 H0 Z-99999
G30 P2 X90.26 Y29.33 H0 Z-99999
G30 P3 X90.26 Y-29.33 H0 Z-99999
G30 P4 X55.78 Y-76.78 H0 Z-99999
G30 P5 X0 Y-94.9 H0 Z-99999
G30 P6 X-55.78 Y-76.78 H0 Z-99999
G30 P7 X-90.26 Y-29.33 H0 Z-99999
G30 P8 X-90.26 Y29.33 H0 Z-99999
G30 P9 X-55.78 Y76.78 H0 Z-99999
G30 P10 X0 Y47.4 H0 Z-99999
G30 P11 X41.05 Y23.7 H0 Z-99999
G30 P12 X41.05 Y-23.7 H0 Z-99999
G30 P13 X0 Y-47.4 H0 Z-99999
G30 P14 X-41.05 Y-23.7 H0 Z-99999
G30 P15 X-41.05 Y23.7 H0 Z-99999
G30 P16 X0 Y0 H0 Z-99999 S6
What can be the reason why calibration doesn't update geometry?
Re: LPC port of RepRapFirmware July 17, 2019 03:55AM |
Registered: 3 years ago Posts: 27 |
Quote
dc42
Have you tried sending M665 and M666 without parameters after running G32, to see if they have changed? Then you can run M500 to save the new values to config-override.g.
Re: LPC port of RepRapFirmware July 17, 2019 05:49AM |
Registered: 9 years ago Posts: 341 |
Quote
PB
Quote
dc42
Have you tried sending M665 and M666 without parameters after running G32, to see if they have changed? Then you can run M500 to save the new values to config-override.g.
Yes I run M665 and M666 without parameters before and after G32 and all values reported are completely same. I even tried to put 1mm thick sheet on half of bed to make it feel differently inclined for probe and no error messages and no changes in values either. Also tried 6,7,8,9 factor calibration and 16 points specified above.
Completely puzzled about that.
Re: LPC port of RepRapFirmware July 17, 2019 06:11AM |
Registered: 3 years ago Posts: 27 |
Re: LPC port of RepRapFirmware July 18, 2019 08:41AM |
Registered: 3 years ago Posts: 27 |
Re: LPC port of RepRapFirmware July 18, 2019 11:45PM |
Registered: 9 years ago Posts: 341 |
Quote
PB
3. On temperature plot I notice short but high spikes at all thermistors. Probably only one reading wrong. Not causing problems.
4. Only one question where it is better to place start and stop g-codes universal for each prints like M104 S0
M140 S0
G0 X0 Y0 Z220
M84
at the end. Now I insert it with slicer, but probably it is nice to do it in firmware. Should I place it in stop.g? Will run if job complete or only if stopped job manually? Is there something like start.g (before each print)?
Also I'd like to make G32 every time when printer is turned on but not between prints. If I place it in config.g it works but delays web-interface loading until G32 is complete which is long as I heat bed inside bed.g Now I do it manually.
Re: LPC port of RepRapFirmware July 19, 2019 03:01AM |
Registered: 5 years ago Posts: 110 |
Re: LPC port of RepRapFirmware July 19, 2019 02:15PM |
Registered: 3 years ago Posts: 27 |
When stepper drivers are off and heaters are off fluctuations are absent. If one heater is on then there are fluctuations. Maybe PWM noise somehow make transient.Quote
sdavi
3. So far it seems only some users of mkssbase 1.3 boards have reported those temperature fluctuations. As mentioned a few times in the thread, also make sure to use the thermistor analog gnd all the way to the thermistor. Are the temps are stable after running M84?Quote
PB
3. On temperature plot I notice short but high spikes at all thermistors. Probably only one reading wrong. Not causing problems.
Re: LPC port of RepRapFirmware July 19, 2019 04:06PM |
Registered: 5 years ago Posts: 110 |
Re: LPC port of RepRapFirmware July 21, 2019 05:34PM |
Registered: 3 years ago Posts: 27 |
Re: LPC port of RepRapFirmware July 24, 2019 12:05PM |
Registered: 3 years ago Posts: 27 |
Re: LPC port of RepRapFirmware July 24, 2019 05:15PM |
Registered: 5 years ago Posts: 110 |
Re: LPC port of RepRapFirmware July 24, 2019 05:59PM |
Registered: 3 years ago Posts: 27 |
Re: LPC port of RepRapFirmware July 24, 2019 07:44PM |
Registered: 9 years ago Posts: 341 |
Quote
PB
I try to use nonlinear extrusion feature but firmware says "M592 not supported".
RepRapFirmware for LPC176x based Boards 2.03+2
Duet Web Control 2.0.0-RC5
According to changelog I think it is already implemented. What can be done to enable it?
Re: LPC port of RepRapFirmware July 25, 2019 04:20AM |
Registered: 3 years ago Posts: 27 |
Thanks! I tried to make from current source (of course I enabled it in Pins_LPC.h beforehand) and got some syntax errors I consider they are because of older version compiler.Quote
sdavi
Quote
PB
I try to use nonlinear extrusion feature but firmware says "M592 not supported".
RepRapFirmware for LPC176x based Boards 2.03+2
Duet Web Control 2.0.0-RC5
According to changelog I think it is already implemented. What can be done to enable it?
Yeah I just checked the code and it's still disabled in Pins_LPC.h, so it's not currently compiled in. I'll enable it for next version.
1. ../RepRapFirmware/src//Libraries/Fatfs/port/lpc/diskio.cpp:64:51: error: no matching function for call to 'SDCard::disk_read(BYTE*&, DWORD&, BYTE&)' while(_ffs[drv]->disk_read(buff, sector, count) != RES_OK){ ^ In file included from ../RepRapFirmware/src//Libraries/Fatfs/port/lpc/diskio.cpp:16:0: CoreLPC2/libraries/SDCard/SDCard.h:60:9: note: candidate: int SDCard::disk_read(uint8_t*, uint32_t) int disk_read(uint8_t *buffer, uint32_t block_number); ^~~~~~~~~ CoreLPC2/libraries/SDCard/SDCard.h:60:9: note: candidate expects 2 arguments, 3 provided 2. stdptional is unsupported by compiler (got a recommendation to replace for std::experimental
ptional in all code.) etc.
Re: LPC port of RepRapFirmware July 25, 2019 05:04AM |
Registered: 9 years ago Posts: 341 |
Quote
PB
Thanks! I tried to make from current source (of course I enabled it in Pins_LPC.h beforehand) and got some syntax errors I consider they are because of older version compiler.
1. ../RepRapFirmware/src//Libraries/Fatfs/port/lpc/diskio.cpp:64:51: error: no matching function for call to 'SDCard::disk_read(BYTE*&, DWORD&, BYTE&)' while(_ffs[drv]->disk_read(buff, sector, count) != RES_OK){ ^ In file included from ../RepRapFirmware/src//Libraries/Fatfs/port/lpc/diskio.cpp:16:0: CoreLPC2/libraries/SDCard/SDCard.h:60:9: note: candidate: int SDCard::disk_read(uint8_t*, uint32_t) int disk_read(uint8_t *buffer, uint32_t block_number); ^~~~~~~~~ CoreLPC2/libraries/SDCard/SDCard.h:60:9: note: candidate expects 2 arguments, 3 provided 2. stdptional is unsupported by compiler (got a recommendation to replace for std::experimental
ptional in all code.) etc.
I use arm-none-eabi-g++ (GNU Tools for ARM Embedded Processors 6-2017-q2-update) 6.3.1 20170620 (release) [ARM/embedded-6-branch revision 249437] (OS X)
maybe I need to use another version?
Re: LPC port of RepRapFirmware July 25, 2019 05:42AM |
Registered: 3 years ago Posts: 27 |
Quote
sdavi
Quote
PB
Thanks! I tried to make from current source (of course I enabled it in Pins_LPC.h beforehand) and got some syntax errors I consider they are because of older version compiler.
1. ../RepRapFirmware/src//Libraries/Fatfs/port/lpc/diskio.cpp:64:51: error: no matching function for call to 'SDCard::disk_read(BYTE*&, DWORD&, BYTE&)' while(_ffs[drv]->disk_read(buff, sector, count) != RES_OK){ ^ In file included from ../RepRapFirmware/src//Libraries/Fatfs/port/lpc/diskio.cpp:16:0: CoreLPC2/libraries/SDCard/SDCard.h:60:9: note: candidate: int SDCard::disk_read(uint8_t*, uint32_t) int disk_read(uint8_t *buffer, uint32_t block_number); ^~~~~~~~~ CoreLPC2/libraries/SDCard/SDCard.h:60:9: note: candidate expects 2 arguments, 3 provided 2. stdptional is unsupported by compiler (got a recommendation to replace for std::experimental
ptional in all code.) etc.
I use arm-none-eabi-g++ (GNU Tools for ARM Embedded Processors 6-2017-q2-update) 6.3.1 20170620 (release) [ARM/embedded-6-branch revision 249437] (OS X)
maybe I need to use another version?
Make sure to grab the v2-dev branch of the corelpc as well. Maybe you checked out the Master branch which has the old SDCard files?
This is the version of arm toolchain I currently use (also on OSX): gcc version 8.2.1 20181213 (release) [gcc-8-branch revision 267074] (GNU Tools for Arm Embedded Processors 8-2018-q4-major)