-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
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] Marlin doesn't work on LERDGE-K on Marlin 2.0.9.3 and up. Display doesn't work on LERDGE-K on Marlin 2.0.8.2-2.0.9.2 #24355
Comments
Confirmed: (mostly) |
I see only one 2.0.9.3 commit that mentions Lerdge. Delete after encrypt. Lerdge encrypt only once (b4904cc) |
could i get your config file to try out the LCD on older versions? or did you use the one i uploaded? |
I just made the changes listed in this post. I did set TFT_DRIVER to ST7796 in all cases except with 2.0.9.2 I tried both. |
this is very weird. for me it doesn't recognize the display at all. |
Which version? Also, I use VSCode to compile Marlin. |
Here's 2.0.9.2 . If you want you can post your config files & I'll compile & post the bin file. |
i meant the compiled folder you upload to the lerdge board. The "Lerdge_K_system" folder |
It's in there. |
My LCD has the V1.04 bootloader on it. V1.0.2 is on the LCD's silkscreen. V1.0.1 is on the LerdgeK's silkscreen. |
Check if this make any difference for you: #24353 (comment) it seems some of the casts are making the compiler behave crazy in some overload optimizations. |
No luck. Bugfix_2.1.x still hangs after loading the new firmware and is dead after a power cycle. |
Sounds like the same issues we’re seeing on BX builds. |
My setup is the same except I have the lerdge V1.0.0. EDIT: |
did you try disable |
Yes, SDSUPPORT is disabled. |
I have a ledge kit here. I will try use git bisect to find the bad commit. |
I just tried the |
@rhapsodyv - if you can get me started I can do the git bisect. Perhaps these are the steps:
|
you must use git, needs the full commit history git clone https://github.com/MarlinFirmware/Marlin.git git will then select a commit half way between these two commits, git bisect good or git bisect bad git now repeats using a new commit mid way between the new good and bad commits This is repeated a bunch till it finds the one commit that broke it. |
Stuck at specifying the good and bad commits. a185ce2, 2.0.9.2, and V2.0.9.2 all come back as:
|
Hint: You can the the commit of version number checking the history of Version.h file: https://github.com/MarlinFirmware/Marlin/commits/2.1.x/Marlin/Version.h here you can get the commit for each release, for example. |
I've tried the following - all with the above results.
Finally got commit numbers that were accepted by doing a I can do one bisect then can't get past the "commit or stash" changes error message. Time for someone that knows what they're doing to jump in. |
Finally stumbled through all the git bisect steps. The offending commit is:
Interesting - same label as mentioned previously but different commit number. |
The only meaningful change I see was the removed the |
I was able to get 2.0.9.3 to build & run by just backing out the marlin.py changes. Doing the same change to bugfix_2.1.x did not work. Usual hang at "firmware update OK" with no USB coms. What I did on 2.0.9.3:
What I did on bugfix_2.1.x:
Someone needs to verify marlin.py changes is all that was needed on 2.0.9.3. |
Changing stm34f4.ini + marlin.py didn’t work for 2.1? |
bugfix_2.1.x works when both are backed out! |
Only changing stm32f4.ini isn’t enough? |
Both are neeeded. I've tried with & without the marlin.py changes several times. Reverting marlin.py is required for it to get past the "firmware update OK" screen. With the old INI and the new PY, VSCode gives the following:
With the old INI and the new PY, a new Lerdge_K_firmware_force.bin is created. The Lerdge firmware loader likes it but it hangs there. Maybe the Lerdge_K_firmware_force.bin file isn't getting encrypted and the Ledge firmware loader is too dumb to notice. The first 320 bytes of the new image is not encrypted so maybe everything the bootloader needs is in the unencrypted section. I don't see why the old version of the marlin.py program is needed. Seems like the old and new do the same thing. |
@odbee - does this fix your problems? |
#24391 has been merged. |
Just tested the latest bugfix-2.1.x. Compiles with no errors and runs on my Lerdge K. |
hey, sorry for the late reply, it seems like the whole issue occured because i fried my display. the new version works now!. ill be running my printer via octoprint for now, thanks alot!! |
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. |
Did you test the latest
bugfix-2.1.x
code?Yes, and the problem still exists.
Bug Description
i have tried getting marlin to work on my LERDGE-K board with no success so far.
Building works in most versions so far.
With versions 2.0.8.2 to 2.0.9.2 i get a reading using the serial port communcation, so marlin is successfully installed, but the display doesn't work.
With versions 2.0.9.3 and upwards the board doesn't work at all after flashing the firmware no matter what I do.
Bug Timeline
No response
Expected behavior
No response
Actual behavior
No response
Steps to Reproduce
set Configuration.h to:
#define MOTHERBOARD BOARD_LERDGE_K
#define SERIAL_PORT 1
#define TFT_GENERIC
#define TFT_INTERFACE_FSMC
#define TFT_RES_480x320
#define TFT_COLOR_UI
as well as
#define TFT_DRIVER AUTO
or
#define TFT_DRIVER ST7796
Version of Marlin Firmware
all versions
Printer model
No response
Electronics
No response
Add-ons
No response
Bed Leveling
No response
Your Slicer
No response
Host Software
No response
Don't forget to include
Configuration.h
andConfiguration_adv.h
.Additional information & file uploads
Config.zip
The text was updated successfully, but these errors were encountered: