-
-
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
[FR] Lerdge-K/X I²C EEPROM #21313
Comments
p.s.: write address +1 |
Not sure, I haven't checked code but maybe address is shifted by code, so you may have to define it as 0x50 |
GMagician: yes ! EEPROM_DEVICE_ADDRESS must be 0x50 ! Thank you ! (127 devices on i2c) But not working :(
|
Hmmm. on Lerdge X with same i2c chip it working.... PR with pins later.... After testing... |
Need help.... Marlin/buildroot/share/PlatformIO/variants/LERDGE/PeripheralPins.c Lines 106 to 128 in 19b94ec
and TIMERS Marlin/buildroot/share/PlatformIO/variants/LERDGE/PeripheralPins.c Lines 132 to 208 in 19b94ec
|
Who can help ? |
I don't know how your board works, but have you seen #21337, give it a try |
I think it won't help. Lerdge-X works with this flash without problems. |
with #21337 problem not solved on Lerdge-K :(
config:
|
Is there anything I can do to help testing this? I'm trying to move from the awful OFW to Marlin on my Lerdge K too. |
OK, I have this working on K. I 'm not very familiar with git usage and never worked with a project as large as this one, so maybe my approach wasn't the best. I will describe what I did and if anyone else can help me on sending a pull request I would be glad. This is what I did:
Then I downloaded SlowSoftWire.cpp and SlowSoftWire.h from this github and manually copied it to Marlin.pio\libdeps\LERDGEK\SlowSoftI2CMaster. Made this changes to Marlin\src\pins\stm32f4\pins_LERDGE_K.h
On Marlin\src\HAL\shared\eeprom_if_i2c.cpp I made this changes:
After the changes, so far working fine! I was facing some issues with the display initialization. I can confirm this on bugfix and git main. I had to insert two lines from teh standard ST7796S initialization code to make it work properly. Now I'm having some issues with my dual Z connected to Ex-Motor. At this moment I'm writing some details which I will update in here. Any help is appreciated. Edit: some typos. |
I see that there is some kind of soft i2c support when IIC_BL24CXX_EEPROM is enabled, maybe this can be used this the changed pinout you discovered |
I will take a look and do some code cleanup this night before I made a PR. |
If anyone wanna try, I just made a change to my fork which should solve this issue dolence/Marlin@c3940a82218e93e27157501ff35528d643a69411 Also, I would like to know if someone else is having problems with display initialization on K version 2.0.1 board. |
Hello. I downloaded your Marlin build, checked the work with epprom - it's ok. |
Your display definition doesn't look right. If it worked, your colors are probably wrong (RGB channels inverted). Try changing TFT_DRIVER ST7796 to TFT_DRIVER LERDGE_ST7796 Are you sure you are using the bugfix-2.0.x-LerdgeK branch? I will try the USB-OTG thing and see if it works. Actually I'm having a problem with dual Z endstops and can't use my printer until it's figured out and have no idea on how to proceed, so I have decided to abandon this firmware and go back to original until someone else help to solve this #21414 |
Yes, I used the wrong branch, but the problem was the display rotated 180 degrees and the touch screen did not work. I copied from my previous build. Now I used your branch with the correct LERDGE driver: the colors did change, but I liked it more with "TFT_DRIVER ST7796"). I also copied the settings of the touchscreen from my previous config-everything worked, thank you!)
I'll look at your problem with the second Z-axis motor.
|
You should be able to change the display orientation this way:
|
@sanek88lbl |
I think this was implemented in #21812. |
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. |
How to make I²C EEPROM work?
Chip FM24CL64 F-RAM 64K (8Kx8)
Datasheet: https://www.cypress.com/file/41656/download
Wiring:
A0,A1,A2 on gnd. i.e. EEPROM_DEVICE_ADDRESS 0xA0 ?
In this case M500 gets error "Error writing to EEPROM"
I tried with BL24CXX, but it doesn't compile.
What am I doing wrong ?
Need additional code for FM24CL64 ?
The text was updated successfully, but these errors were encountered: