classicrocker883 / MRiscoCProUI

This is optimized firmware for Voxelab Aquila & Ender3 V2/S1 3D printers.
https://classicrocker883.github.io/
Other
79 stars 17 forks source link

H32 BLT unlimited restart #33

Closed MadmanPan closed 11 months ago

MadmanPan commented 1 year ago

H32 BLT cannot start normally, and restarted infinitely after brushing the firmware

classicrocker883 commented 1 year ago

ill look into it, for now try the UBL

MadmanPan commented 1 year ago

UBL tried, the problem is still, it is still unlimited restart

MadmanPan commented 1 year ago

HC32_mm-PROUI.BIN and HC32_Default-NOPRO.BIN Normally

classicrocker883 commented 1 year ago

HC32_BLT-ProUI-2.bin

try this, i uploaded a second one that may have fixed the issue

MadmanPan commented 1 year ago

Thank you for your reply, I tried the question and still restarted infinitely

classicrocker883 commented 1 year ago

you can always try another file here

i ran this using the same code on my G32 board, no issues. I dont actually have a H32 to test, but the BLT - BL Touch firmware version should be working for the HC32 like the others.

MadmanPan commented 1 year ago

https://github.com/shadow578/Marlin-H32/issues/24 I read this link and I found user[pipe01] solved this issue.

classicrocker883 commented 1 year ago

yes apparently you can use JyersUI or Creality dwin, this firmware I have is for ProUI only, I do not have jyersUI or creality in the source code. it wouldn't make much difference using shadow578/Marlin-H32 and bilinear auto bed leveling enabled vs if you were to copy the files and make it work with this MriscocProUI repo because each dwin type has their own specific UI.

I know that the with BL-Touch / BLT works using G32 or N32 with ProUI, like the UBL, Default, and MM manual-mesh, so fixing it to work with HC32 should not be that difficult - rather than transferring the required JyersUI or Creality dwin files and code is not the direction I intend. I'll continue to look into seeing about getting this to work like it should, and I'll post any updates about it.

MadmanPan commented 1 year ago

I have used the latest firmware, but it still keeps restarting endlessly. I am using MM manual-mesh now, and I feel that the firmware is very useful. Thank you for your efforts, and I look forward to using firmware that supports BLT in the future.

classicrocker883 commented 1 year ago

I may have found what could have caused the restart loop. if you wanted to try it, ill post an updated file with the change for BLT version. its not a significant change but it could work anyway.

MadmanPan commented 1 year ago

I want to try it, please update the file, thx!

classicrocker883 commented 1 year ago

ok see if this works HC32_BLT-ProUI-test2.bin

MadmanPan commented 1 year ago

I'm excited because it's ready to go into the system, but it doesn't work because the x and y axes don't go home, the BLT scales properly

classicrocker883 commented 1 year ago

so it works, no more restart - boot loop? how about this one HC32_BLT-ProUI-test3b.bin

the problem now is x and y do not Home? how did you mean BLT scales properly?

MadmanPan commented 1 year ago

Yes, the system no longer reboots, and BLT scales properly, but x and y out of Home.

MadmanPan commented 1 year ago

The x-axis and y-axis can go home in the correct direction, but the limit switches of the x-axis and y-axis do not work

classicrocker883 commented 1 year ago

oh okay I see, I believe that was an issue brought up before, but apparently doesn't happen in the JyersUI or Creality. ill look through and try to get this fixed. otherwise that is good news and defining the BOOTSCREEN_TIMEOUT stopped the constant boot loops.

https://github.com/shadow578/Marlin-H32/issues/15

classicrocker883 commented 1 year ago

HC32_UBL-ProUI-test4.bin ok that should fix it!

MadmanPan commented 1 year ago

HC32_UBL-ProUI-test4.bin好的,应该可以解决它!

Tested the latest firmware, can not enter the system, stuck when booting

classicrocker883 commented 1 year ago

huh that is odd. here are two different ones, there is HC32_BLT-ProUI-test5

and here is HC32_BLT-ProUI-test5-8irq - which changed an IRQ value from 6 to 8

MadmanPan commented 1 year ago

Screenshot_2023-05-13-22-18-09-17_99c04817c0de5652397fc8b56c3b3817.jpg

All three firmwares have been tested, and the problem remains the same. They are all stuck on the boot. I don’t know how to program, so I am sorry that I can’t provide you with a lot of effective information. Thank you again for your contribution.

classicrocker883 commented 1 year ago

ok I may know what the issue may be, give me some time to test for myself. however I can only test with G32, which isn't much different, that is the same loading screen on every flash for some reason, even on other chips. but goes away after.

MadmanPan commented 1 year ago

Ok, as long as you have firmware uploaded, I will test it as soon as possible

classicrocker883 commented 1 year ago

I appreciate you being able to try it out for yourself, it helps everybody

classicrocker883 commented 1 year ago

HC32_BLT-ProUI-test6

there is something you can try, hopefully that now fixes it

MadmanPan commented 1 year ago

You can already enter the system, the x-axis, y-axis and BLT are normal, but the Z-axis compensation cannot save the settings, saving will cause a restart, and then the entire system settings cannot be saved, saving will cause the system to restart, and there is no way to preview the thumbnail of the printed file , will also restart, if possible, I hope to support Chinese, thank you again for your contribution

classicrocker883 commented 1 year ago

there was an update to HC32 source files, I merged with the newest Marlin. so here are a couple you can try out HC32_BLT-ProUI-test6a

HC32_BLT-ProUI-test6b

classicrocker883 commented 1 year ago

please follow these instructions in order to view the thumbnail for 3D model printed file

MadmanPan commented 1 year ago

https://github.com/classicrocker883/MriscocProUI/assets/10302605/f962791c-7721-4b2c-bc90-bc06415708d5

The problem remains.

classicrocker883 commented 1 year ago

that is so odd. okay this only happens with the BLT bl-touch version correct? the other ones UBL, MM, and Default work ok?

MadmanPan commented 1 year ago

https://github.com/classicrocker883/MriscocProUI/assets/10302605/fe2e681f-93d4-4b5a-a2c7-2aa63db67d48

HC32-MM-ProUI.bin tested and saved is normal, UBL and default can’t enter the system, stuck on the boot page

https://github.com/classicrocker883/MriscocProUI/releases/download/2.1.3c-hc2/HC32-MM-ProUI.bin

classicrocker883 commented 1 year ago

u can try HC32_BLT-ProUI-test7b, meatpack on serial port 1 disabled. my guess since MM works, there must be a setting causing it not to work.

or here is the NoPro ver. HC32_BLT-NoPro-test7a

have you also tried the UBL-7x7-NoPro before?

classicrocker883 commented 1 year ago

here is a stock ver. of the proui u can try HC32_BLT-Vanilla-NoPro-test8

in the Prepare Menu, at the bottom there is an option to change the language to Chinese if you wish. let me know if this goes well.

same for this, its the Manual Mesh ver. if you wish to test just to see it works if the others dont. HC32_MM-Vanilla-NoPro-test8a

MadmanPan commented 1 year ago

u can try HC32_BLT-ProUI-test7b, meatpack on serial port 1 disabled. my guess since MM works, there must be a setting causing it not to work.

or here is the NoPro ver. HC32_BLT-NoPro-test7a

have you also tried the UBL-7x7-NoPro before?

https://github.com/classicrocker883/MriscocProUI/assets/10302605/30a92732-ffeb-4c70-b680-377a653a9c61

Both firmwares are stuck at the boot screen

MadmanPan commented 1 year ago

here is a stock ver. of the proui u can try HC32_BLT-Vanilla-NoPro-test8

in the Prepare Menu, at the bottom there is an option to change the language to Chinese if you wish. let me know if this goes well.

same for this, its the Manual Mesh ver. if you wish to test just to see it works if the others dont. HC32_MM-Vanilla-NoPro-test8a

https://github.com/classicrocker883/MriscocProUI/assets/10302605/2d3ddab9-7303-4fe0-ba2f-dfeb9cb3cba9

The first firmware is stuck on the boot screen, the second one can enter the system, Chinese is also effective, but it will crash and restart

https://github.com/classicrocker883/MriscocProUI/assets/10302605/1985725c-3bc6-4e82-8d2e-dc7dd9068b90

classicrocker883 commented 1 year ago

I will upload with JyersUI if you like to try that. on shadow578's HC32 repo someone did say there was an issue with BL touch but would only work with JyersUI. then he says DWIN_LCD_CREALITY doesn't work but JyersUI does, even though their code is very similar. I should have looked more into that, but I would really like the ProUI to work with BL touch, it is odd that it does boot loop with it enabled.

it seems like an issue with bootscreen_timeout or cpu_freq. I think I know what to do now!

edit: I don't think I uploaded a new UBL-ProUI with the updated HC32 library. I know I tried just the BLT, maybe the UBL will work.

classicrocker883 commented 1 year ago

on one of the firmware you tested, it entered the system. but would not Home X and Y because the endstop switch would not trigger. did that firmware let you save normally? everything was normal, except for 1 thing - the X and Y?

MadmanPan commented 1 year ago

on one of the firmware you tested, it entered the system. but would not Home X and Y because the endstop switch would not trigger. did that firmware let you save normally? everything was normal, except for 1 thing - the X and Y?

The firmware HC32-MM-ProUI.bin has a normal x-axis and y-axis home, and can save the settings normally. https://github.com/classicrocker883/MriscocProUI/releases/download/2.1.3c-hc2/HC32-MM-ProUI.bin

MadmanPan commented 1 year ago

I will upload with JyersUI if you like to try that. on shadow578's HC32 repo someone did say there was an issue with BL touch but would only work with JyersUI. then he says DWIN_LCD_CREALITY doesn't work but JyersUI does, even though their code is very similar. I should have looked more into that, but I would really like the ProUI to work with BL touch, it is odd that it does boot loop with it enabled.

it seems like an issue with bootscreen_timeout or cpu_freq. I think I know what to do now!

edit: I don't think I uploaded a new UBL-ProUI with the updated HC32 library. I know I tried just the BLT, maybe the UBL will work.

As long as you upload it, I am willing to test it, because I don’t know how to program, and the useful information I can give you is limited, but I will try my best to test it as many times as possible to ensure that the information I give you is valid.

classicrocker883 commented 1 year ago

https://github.com/classicrocker883/MriscocProUI/releases/tag/2.1.3c-hc

i uploaded a couple more. they have the most recent update from today which has changes with loading and saving, and that may have to do with the lcd restarting. ending in testInit I disabled the initializers which does something at first boot and if theres errors.

the test with CN is just to see if the translation is correct. it might be better to have it like this, rather than the option of changing it from English and Chinese because it takes less memory and translates more words, but you cant change it back and forth.

classicrocker883 commented 1 year ago

here is HC32_UBL-JyersUI-test.bin which should work! it isn't the ProUI, but the BLtouch and everything should be normal.

im interested to see how this one does: HC32_UBL-ProUI-test-noref

and this one: HC32_UBL-ProUI-test-noref2

if not, this one should work: HC32_UBL-NoPro-test-noref

MadmanPan commented 1 year ago

https://github.com/classicrocker883/MriscocProUI/assets/10302605/18c96ec0-86a2-4b4f-8a74-6b1cf605fbb1

HC32_MM-ProUI-test-CN.bin shows garbled characters in Chinese

HC32_UBL-JyersUI-test.bin, mesh cannot be saved, save will crash and restart

Other firmware can enter the system, but it will crash and restart when operating I've tested so much for now

classicrocker883 commented 1 year ago

yes you have tested a lot. you're awesome for doing so! we are going somewhere thanks for trying. this tells me it can be something to do with the library for HC32.

do you think the CN with Chinese is correct translation? because that can be changed.

So would you use JyersUI if it can work? I can work on ProUI, or JyersUI. which one is closer to normal that you would rather use?

MadmanPan commented 1 year ago

Thank you for your affirmation of me. I don’t know how to program, so I can’t provide more effective information. This bothers me very much. I test carefully every time, hoping to provide real and effective information. Minimize the interference of your work, if you do It's not good enough, I hope you can forgive me. I haven't read the Chinese translation yet, I'll see if the translation is correct today. I feel that ProUI is very good. I have experienced the MM firmware, which has more user-friendly settings, such as automatic screen off, etc. If I can, I am more inclined to use ProUI. If JyersUI works fine, I'm willing to use that too.

classicrocker883 commented 1 year ago

that is OK I am not very skilled when it comes to error fixing, I do not know more programming code to do so. But I am good at making tweaks and using what code is there already. like the automatic screen off, I put that code in the firmware, I also made it able to show a graph of the temperature while printing. that part of coding makes it fun.

I will keep trying to see what I can do for the ProUI working with BL touch. for now it may be easier to have Jyers working at the moment. I will maybe ask for help from anyone who may know how to code what I can do to fix this issue. I will keep you posted and thanks for your trying! it helps

MadmanPan commented 1 year ago

I took a look, and the translation should be fine. The problem is that the firmware does not seem to have a Chinese font library, which leads to the display of garbled characters.

classicrocker883 commented 1 year ago

it's possible to have the firmware with Chinese translation, however some words may not have actual codes linked to in the language file, so those cannot be changed. but to make every single word be another language IS possible, it will take a long time to change - rename - and find the correct translation, and test it on the LCD so it looks nice and is correct.

update to HC32 - Mriscoc just updated the ProUI, I am going through the merge process so I will have my code updated.

I'm not sure right now of anything major that may help it work with HC32 boards and BLTouch or UBL. but I will go through the coding and post some updated files, hopefully that it will work better.

progress is always forward! I hope soon this will be over and everything be normal.

Ryloth commented 1 year ago

Thought I would chime in with my experience with the latest firmwares you have posted.

HC32_UBL-ProUI-test-noref:

HC32_UBL-ProUI-test-noref2:

HC32_UBL-NoPro-test-noref:

What I came out with was no boot-looping, bed-leveling meshes fail to save, going home works, limit switches work, Z-Offset value correctly saves, storing settings and having them persist mostly works.

I am not that experienced with anything more than the stock Voxelab firmware so something like a restart after saving a particular setting such as Z-Offset is not what I would expect but the value was indeed saved - is that normal? I only test printed using the last firmware you uploaded.

classicrocker883 commented 1 year ago

There was a recent major update, and I posted some test files of the new code, there were changes to the EEPROM which may have helped it from crashes. one parameter I missed was having the lcd to redraw, so I have it both enabled or disabled. -noredraw has the redraw function disabled, probably not the fix or cause of issues but its an option to try.

HC32_MM-ProUI-noredraw

HC32_MM-ProUI-newtest

HC32_BLT-ProUI-noredraw

HC32-BLT-ProUI-newtest

classicrocker883 commented 1 year ago

@Ryloth the issues are because of the ProUI i think and BLtouch. the fixes needed may have to do with the source code for the HC32 chip which is @ smoke578/H32-Marlin. the other source codes you can find here, there are different framework folders https://github.com/shadow578?tab=repositories

not sure what else would help, someone who knows more about this should take a look. for now I can just enable or disable whatever works and hope for the best.