Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] LERDGE_ST7796 driver error #21815

Closed
sanek88lbl opened this issue May 5, 2021 · 3 comments
Closed

[BUG] LERDGE_ST7796 driver error #21815

sanek88lbl opened this issue May 5, 2021 · 3 comments

Comments

@sanek88lbl
Copy link
Contributor

sanek88lbl commented May 5, 2021

Did you test the latest bugfix-2.0.x code?

Yes, and the problem still exists.

Bug Description

After last big update of Marlin-bugfix-2.0.x LERDGE_ST7796 driver don't work. Just ST7796 works, but changes colors.
It's build without errors and board connect to Octoprint host. Command M111 S247 and M115 do not give results.

Bug Timeline

No response

Expected behavior

No response

Actual behavior

Building in VSCode\Platformio:

Log Output
> Executing task: C:\Users\user\.platformio\penv\Scripts\platformio.exe run --environment LERDGEK <

Processing LERDGEK (platform: ststm32@~12.1; board: marlin_STM32F407ZGT6; framework: arduino)
------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/marlin_STM32F407ZGT6.html
PLATFORM: ST STM32 (12.1.1) > STM32F407ZGT6(192k RAM. 1024k Flash)
HARDWARE: STM32F407ZGT6 168MHz, 192KB RAM, 1MB Flash
DEBUG: Current (jlink) External (jlink, stlink)
PACKAGES:
 - framework-arduinoststm32 4.10900.200819 (1.9.0)
 - framework-cmsis 2.50501.200527 (5.5.1)
 - toolchain-gccarmnoneeabi 1.90201.191206 (9.2.1)
Converting Marlin.ino
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 12 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <TMCStepper> 0.7.1
|   |-- <SoftwareSerial> 1.0
|   |-- <SPI> 1.0
|-- <SPI> 1.0
|-- <Servo> 1.1.2
|-- <SoftwareSerial> 1.0
|-- <IWatchdog> 1.0.0
|-- <Wire> 1.0
|-- <EEPROM> 2.0.1
Building in release mode
Compiling .pio\build\LERDGEK\src\src\HAL\STM32\HAL.cpp.o
. . .
Compiling .pio\build\LERDGEK\src\src\sd\cardreader.cpp.o
Linking .pio\build\LERDGEK\firmware.elf
Checking size .pio\build\LERDGEK\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [===       ]  28.2% (used 55480 bytes from 196608 bytes)
Flash: [==        ]  22.3% (used 234224 bytes from 1048576 bytes)
Building .pio\build\LERDGEK\firmware.bin
encrypt([".pio\build\LERDGEK\firmware.bin"], [".pio\build\LERDGEK\firmware.elf"])
Encrypting to: Lerdge_K_firmware_force.bin
============================================= [SUCCESS] Took 48.95 seconds =============================================
Environment    Status    Duration
-------------  --------  ------------
LERDGEK        SUCCESS   00:00:48.951
============================================= 1 succeeded in 00:00:48.951 ============================================= 

In Octoprint:

Log Output
Send: M111 S247
Recv: echo:DEBUG:ECHO,INFO,ERRORS,COMMUNICATION,LEVELING
Recv: ok
Send: M115
Recv: echo:M115
Recv: FIRMWARE_NAME:Marlin bugfix-2.0.x (May  5 2021 17:18:46) SOURCE_CODE_URL:github.com/MarlinFirmware/Marlin PROTOCOL_VERSION:1.0 MACHINE_TYPE:LERDGE EXTRUDER_COUNT:1 UUID:cede2a2f-41a2-4748-9b12-c55c62f367ff
Recv: Cap:SERIAL_XON_XOFF:0
Recv: Cap:BINARY_FILE_TRANSFER:0
Recv: Cap:EEPROM:1
Recv: Cap:VOLUMETRIC:1
Recv: Cap:AUTOREPORT_TEMP:1
Recv: Cap:PROGRESS:0
Recv: Cap:PRINT_JOB:1
Recv: Cap:AUTOLEVEL:1
Recv: Cap:RUNOUT:0
Recv: Cap:Z_PROBE:1
Recv: Cap:LEVELING_DATA:1
Recv: Cap:BUILD_PERCENT:0
Recv: Cap:SOFTWARE_POWER:1
Recv: Cap:TOGGLE_LIGHTS:0
Recv: Cap:CASE_LIGHT_BRIGHTNESS:0
Recv: Cap:EMERGENCY_PARSER:0
Recv: Cap:PROMPT_SUPPORT:0
Recv: Cap:SDCARD:1
Recv: Cap:REPEAT:0
Recv: Cap:SD_WRITE:1
Recv: Cap:AUTOREPORT_SD_STATUS:0
Recv: Cap:LONG_FILENAME:0
Recv: Cap:THERMAL_PROTECTION:1
Recv: Cap:MOTION_MODES:0
Recv: Cap:ARCS:1
Recv: Cap:BABYSTEPPING:0
Recv: Cap:CHAMBER_TEMPERATURE:0
Recv: Cap:COOLER_TEMPERATURE:0
Recv: Cap:MEATPACK:0
Recv: ok
Send: M155 S2
Recv: echo:M155 S2
Recv: ok

Steps to Reproduce

  1. Clone bugfix-2.0.x branch.
  2. Replace Configuration.h from my Configuration.zip.
  3. Build from PROJECT TASKS -> LERDGEK->General.
  4. Flash your Lerdge K/X board.

Version of Marlin Firmware

Marlin 2.0.8 (May 5 2021)

Printer model

Custom, B&R

Electronics

Lerdge K board

Add-ons

No response

Your Slicer

No response

Host Software

OctoPrint

Additional information & file uploads

No response

@rhapsodyv
Copy link
Member

Try adding this:
#define TFT_COLOR TFT_COLOR_RGB

@sanek88lbl
Copy link
Contributor Author

Try adding this:
#define TFT_COLOR TFT_COLOR_RGB

Thanks, but it didn't help(
But I fixed the problem: fix display.

@github-actions
Copy link

github-actions bot commented Jul 8, 2021

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Jul 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants