luc-github / ESP3DLib

ESP3D library for Marlin and ESP32 boards
GNU General Public License v3.0
97 stars 32 forks source link

Compilation Error for POLAR 3D PRINTER in Marlin-ESP3DLib-V3-bugfix-2.1.x #77

Closed Gokuh1980 closed 6 months ago

Gokuh1980 commented 6 months ago

Describe the bug When i setup Vscode to compile for FYSETC E4 a polar 3d Printer it aborts due to several warnings I Have a NODEMCU ESP32S but they have the same pins so i used FYSETC E4

image

image

Marlin Firmware:

ESP3DLib :

github-actions[bot] commented 6 months ago

Thank your for submiting, please be sure you followed template or your issue may be dismissed.

luc-github commented 6 months ago

What Marlin repository are you using ? And what branch ?

Gokuh1980 commented 6 months ago

Hi! thanks for your response!

https://github.com/luc-github/Marlin/tree/ESP3DLib-V3-bugfix-2.1.x image

luc-github commented 6 months ago

the issue is not linked to ESP3DLib pls check if you have same issue with latest Marlin Buxfix 2.1 without enabling wifi because upstream is broken

luc-github commented 6 months ago

@Gokuh1980 any update ? can you compile with Upstream Marlin ?

Gokuh1980 commented 6 months ago

Hi! Yes, i tried to compile the bugfix from marlin today and it fails with similar errors.

luc-github commented 6 months ago

does latest release having same issue ? https://github.com/MarlinFirmware/Marlin/releases/tag/2.1.2.1

as bugfix is dev it is usally not stable

Gokuh1980 commented 6 months ago

Yes, i've tried it and it compiles ok, but that release doesn't have the polar geometry i'm trying to build.

Algo i really really like your work with esp3d and wifi.

So i think i will wait a little longer.

(I'm no so good at coding)

luc-github commented 6 months ago

ho then I suggest you to push issue in Marlin and follow resolution - then update here when fixed - I will then update the fork

Gokuh1980 commented 6 months ago

Yes of course!!! Thank you!!! Keep up with your project, its fantastic!

luc-github commented 6 months ago

Thank you - sorry I have no bandwidth to follow all Marlin update so your help is really appreciate

Gokuh1980 commented 6 months ago

Hi Luc! from the upstream marlin bugfix branch they told me the problem was a line missing in features.ini

image

now that branch compiles ok with esp32 and polar kinematics

but when i add that line in your branch i still have errors compiling

image

Config.zip

Any ideas?

luc-github commented 6 months ago

no but my fork was not up to date - I have just did a rebase from bugfix now- so you can give a try Be noted the fix you mention is not present yet so you need to apply it manually

Gokuh1980 commented 6 months ago

Nice! it almost compile, now the error is program size...

image

i already removed lcd, noepixels, and others...

also y have several warnings...

image

image

image

image

luc-github commented 6 months ago

the warnings are normal and harmless

The config you provided is for ESP32 not FYSETC_E4 you must use FYSETC_E4 board if this is what you have

In both case ESP32 / FYSETC_E4 I cannot duplicate using your files

image

luc-github commented 6 months ago

@Gokuh1980 any update ?

Gokuh1980 commented 6 months ago

hi Luc! i'm trying to compile in another computer at home with ubuntu but keep getting this error...

image

strange is that i don't have any display configured...

Marlin.zip

luc-github commented 6 months ago

strange is that i don't have any display configured...

Really ?

But your configuration.h has :

define MKS_MINI_12864_V3

and

define LCD_INFO_SCREEN_STYLE 0

and I just did a simple windiff with my repo

You better clean up your config files

Gokuh1980 commented 6 months ago

Hi Luc! it compiles ok now. THANK YOU for your support.

Now i´m facing another problem when i upload to the processor, maybe you can help me, originally i was describing my mainboard as FYSETC_E4 becouse it´s very similar to mi real board ESP32-Vroom-32 (i will connect it to a ramps 1.4)

image

but, FYSETC_E4 it´s described with a flash of 16MB and my board has 4Mb, do you have any ideas?

luc-github commented 6 months ago

sorry Idea for what? I do not understand the question

Gokuh1980 commented 6 months ago

i was having an error on upload because fysetc_e4 as a flash of 16mb and my board has 4mb, so it results in a bootloop. thats why i wanted to ask you if you have some testing compiling for a 4mb esp32.

now i have changed esp32.csv partition file and it boots:

image

now i have to resolve the errors in the boot log.

luc-github commented 6 months ago

you just need to edit the env and adjust board size and use proper partition like min-spiffs one

luc-github commented 6 months ago

I close issue ticket now because initial issue is solved your latest issue is that you use an env that is not for your board, you better create new one for your board in esp32.ini and push it to Marlin it is not linked to esp3dlib at this stage