Screen corruption on file write with 8048S070C module

Here we can discuss about the problem found
Post Reply
AndyGadget
Posts: 256
Joined: Mon Feb 15, 2021 1:44 pm
Has thanked: 159 times
Been thanked: 148 times

Screen corruption on file write with 8048S070C module

Post by AndyGadget »

Hi Francesco,
I'm seeing a screen image shifting to the right and down on every file.append command.
Here is a program demonstrating the problem.

ESP32-8048S070C module
Firmware is Annex32-S3 CAN DMT VGA HID OTG 1.70.52 qio opi LFS

Code: [Local Link Removed for Guests]

VGA.pinout 14, 21, 47, 48, 45, 9, 46, 3, 8, 16, 1, 15, 7, 6, 5, 4, 39, 40, 41, 42
VGA.delete
VGA.INIT 10
vga.image "/betweenthemountain.jpg"  ' 800x480 image
VGA.SHOW

pin.mode 2, output  ' backlight
pin(2) = 1

FName$ = "/text1.txt"

x =  file.delete(FName$)

do
  FLine$ = "This is a line of text" 
  for cnt = 1 to 5
    file.append FName$,FLine$ + chr$(10)
    pause 100
  next cnt  
  pause 1000
loop
BeanieBots
Posts: 586
Joined: Tue Jun 21, 2022 2:17 pm
Location: South coast UK
Has thanked: 341 times
Been thanked: 189 times

Re: Screen corruption on file write with 8048S070C module

Post by BeanieBots »

This is normal if you are writing to flash.
It does not happen when you write to SD card.
User avatar
cicciocb
Site Admin
Posts: 3237
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 645 times
Been thanked: 2281 times
Contact:

Re: Screen corruption on file write with 8048S070C module

Post by cicciocb »

This is known "issue" and is not really a bug but more a system limitation.
Saving to the flash disk creates a conflict with the PSRAM where the video buffer is present (they share the same SPI bus).

Using the 2.xx versions this is improved but still present.

The solution is to use an SDCARD as, in this case, the problem doesn't happens.

In any case, I suggest to update the module at the latest version
AndyGadget
Posts: 256
Joined: Mon Feb 15, 2021 1:44 pm
Has thanked: 159 times
Been thanked: 148 times

Re: Screen corruption on file write with 8048S070C module

Post by AndyGadget »

Thanks Francesco.
I think I may have missed something along the way. Has the VGA branch been discontinued in favour of LVGL as I can't see any reference to VGA in the 2.xx updates or those help files.
User avatar
cicciocb
Site Admin
Posts: 3237
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 645 times
Been thanked: 2281 times
Contact:

Re: Screen corruption on file write with 8048S070C module

Post by cicciocb »

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Wed Jun 04, 2025 9:36 am Thanks Francesco.
I think I may have missed something along the way. Has the VGA branch been discontinued in favour of LVGL as I can't see any reference to VGA in the 2.xx updates or those help files.
Yes, the VGA has been removed and now your module is supported natively just selecting it in the config page.
AndyGadget
Posts: 256
Joined: Mon Feb 15, 2021 1:44 pm
Has thanked: 159 times
Been thanked: 148 times

Re: Screen corruption on file write with 8048S070C module

Post by AndyGadget »

Thanks. I'll start getting my head around LVGL then :D
User avatar
cicciocb
Site Admin
Posts: 3237
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 645 times
Been thanked: 2281 times
Contact:

Re: Screen corruption on file write with 8048S070C module

Post by cicciocb »

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Wed Jun 04, 2025 9:59 am Thanks. I'll start getting my head around LVGL then :D
No, you can continue as before if you want, simply replace the functions VGA.XXX with TFT.XXX.

BUT with LVGL is much better :-)
User avatar
karlkloss
Posts: 359
Joined: Fri Aug 18, 2023 12:21 pm
Location: Local group
Has thanked: 62 times
Been thanked: 86 times

Re: Screen corruption on file write with 8048S070C module

Post by karlkloss »

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Wed Jun 04, 2025 10:01 am
No, you can continue as before if you want, simply replace the functions VGA.XXX with TFT.XXX.
I'm somewhat confused. There seems to be no 2.x firmware with VGA. Can I use LVGL with VGA?
If not, are you planning to add it sometime?
User avatar
cicciocb
Site Admin
Posts: 3237
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 645 times
Been thanked: 2281 times
Contact:

Re: Screen corruption on file write with 8048S070C module

Post by cicciocb »

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Tue Jun 10, 2025 1:52 pm
[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Wed Jun 04, 2025 10:01 am
No, you can continue as before if you want, simply replace the functions VGA.XXX with TFT.XXX.
I'm somewhat confused. There seems to be no 2.x firmware with VGA. Can I use LVGL with VGA?
If not, are you planning to add it sometime?
No, the VGA analog output is not supported in the version 2.xx.
While I did create an experimental proof-of-concept version that worked, supporting VGA + LVGL would require too much effort.
I've already found my enjoyment in the creation process itself, and that's enough for me.
I've since moved on to other things and fighting on more interesting subjects (at least for me :D )
Post Reply