Xinyuan-LilyGO / LilyGO-T-ETH-Series

172 stars 67 forks source link

Example: CameraShield.ino it does not compile #79

Closed shojkeee closed 1 month ago

shojkeee commented 3 months ago

Hi. During the compilation of the sketch, CameraShield.ino Throws an error that there is not enough memory to load. Please tell me what can be removed from the sketch so that there is enough space? Or maybe my versions of lib are not like that? and do they take up more space as a result?

I have a T-ETH-Lite ESP32S3 board and a T-ETH-Lite Shield Camera

image

lewisxhe commented 3 months ago

https://github.com/Xinyuan-LilyGO/LilyGO-T-ETH-Series/blob/16cf3f291f34a10a024d3ba4b00854e796781c33/examples/CameraShield/CameraShield.ino#L27

shojkeee commented 3 months ago

https://github.com/Xinyuan-LilyGO/LilyGO-T-ETH-Series/blob/16cf3f291f34a10a024d3ba4b00854e796781c33/examples/CameraShield/CameraShield.ino#L27

I choose 3MB and still don't have enough space to upload to the board

image

lewisxhe commented 3 months ago

Strange, it was working fine before, now I put a custom partition and this problem doesn't exist anymore.

https://github.com/Xinyuan-LilyGO/LilyGO-T-ETH-Series/blob/master/examples/CameraShield/partitions.csv

lewisxhe commented 3 months ago

image

shojkeee commented 3 months ago

image

And how did you do it? I don't have a "custom"

lewisxhe commented 3 months ago

Update esp32 to the latest version in the board manager

shojkeee commented 3 months ago

Update esp32 to the latest version in the board manager

I'm probably kind of unlucky. :(. Did as you said, updated esp32. I created the partition.csv file, but it still gives an error when compiling.

Traceback (most recent call last): File "gen_esp32part.py", line 612, in File "gen_esp32part.py", line 565, in main File "gen_esp32part.py", line 163, in from_file UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbe in position 12: invalid start byte [19256] Failed to execute script 'gen_esp32part' due to unhandled exception!

image

shojkeee commented 3 months ago

The problem was that file .csv was created manually from .xls file by changing the extension in it. I solved the problem by creating a file in exel and saving it in .csv format. But I won't be able to check the work until tomorrow.

Based on the test results, I will write here

lewisxhe commented 3 months ago

I asked my colleague to test it, and he was able to compile it successfully. You can try to delete esp32 and reinstall it to test it.

shojkeee commented 3 months ago

I asked my colleague to test it, and he was able to compile it successfully. You can try to delete esp32 and reinstall it to test it.

The fact is that if I selected Other parameters in the "Prtition scheme" item, where 4 MB was allocated. And I compiled everything perfectly with these parameters, too. But when loading the sketch into the board, it went into a cyclic reboot.

I'm still at work. I work for days. As soon as I get home, I'll check your option.

shojkeee commented 3 months ago

I asked my colleague to test it, and he was able to compile it successfully. You can try to delete esp32 and reinstall it to test it.

No, it doesn't work. The fee is looping

mode:DIO, clock div:1 load:0x3fce3818,len:0x508 load:0x403c9700,len:0x4 load:0x403c9704,len:0xad0 load:0x403cc700,len:0x29e4 entry 0x403c9880 ESP-ROM:esp32s3-20210327 Build:Mar 27 2021 rst:0x3 (RTC_SW_SYS_RST),boot:0x2a (SPI_FAST_FLASH_BOOT) Saved PC:0x403cdad1 SPIWP:0xee mode:DIO, clock div:1

lewisxhe commented 3 months ago

I will test again on Monday, it's a holiday now

shojkeee commented 3 months ago

I will test again on Monday, it's a holiday now

Thank you. I'll be waiting. Have a nice weekend

lewisxhe commented 3 months ago

Hi, I tested it and it works fine. Can you check if the settings are correct? image

shojkeee commented 3 months ago

Hi, I tested it and it works fine. Can you check if the settings are correct? image

Yes. the board settings are the same, I took them from the description. Have you only checked the compilation? Or have you downloaded the program and see the image from the camera?

lewisxhe commented 3 months ago

Of course, normal image

shojkeee commented 3 months ago

Of course, normal image

Thanks for the help. Everything worked. I downloaded your project, replaced all the libraries once again, and only after that everything worked!

github-actions[bot] commented 2 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 1 month ago

This issue was closed because it has been inactive for 14 days since being marked as stale.