ESP-IDF no longer flashes ESP32-P4 chips which have a revision version less than 3.1 so How can I get round the problem

I have a Guition ESP32p4-M3-Dev board that I bought in December,
and an RPi 5" LCD touch screen V2 which I use to control my APPs via MIPI DSI.
The only environment that supported that combination was VS-Code extension ESP-IDF and an example “ESP32-P4-DSI-Support-Hub-master” by K. Quresh that could be used as a base for the user’s own APPs. There is no Arduino library that matches rpi-5inch-touch-display-v2 or the lvgl Port interface.
My PC died a couple of weeks ago and the replacement is loaded with all the latest and greatest - Win 11 PRO, VS-Code etc. But ESP-IDF now only supports ESP-P4 chips with a revision of 3.1 to 3.8. The Guition board is revision 1.3; the code compiles OK but I can no longer flash the board.
There is an option to select a revision value of < 3.0 but that doesn’t work; the revision value <3.0 affects the memory mapping and the build fails.
I tried installing an older version of ESP-IDF but it still fails.
Is there any way I can use the ESP version of lvgl (and the Port management of mipi dsi) on Arduino? I’m prepared to do the ‘hard yards’ of converting the rpi 5" V2 driver to an Arduino library. Converting the whole IDF folder to an Arduino sketch would be a too daunting task.
Any help or guidance would be much appreciated.
Dicky.

Hi! Do you want to use Arduino environment or ESP-IDF in VSCode?

Using ESP-IDF you will have more freedom to manage versions and underlying configs. Then in your case I think you can try downloading a previous version of ESP-IDF that had support for your chip revision. Then remove any previous build artifacts and rebuild.

Maybe it’s also worth asking on an Espressif forum or IDF GH issues: GitHub · Where software is built

Hi, I did try to revert to the version of ESP-IDF I was using in December but it made no difference. Maybe I didn’t clean everything out of VS-Code. I find ESP-IDF far to hard to get up to speed with. I had everything working OK until my old PC died.
I found the example code on github:
https://github.com/embenix/ESP32-P4-DSI-Support-Hub
I find Arduino much easier to use and only started using ESP-IDF when Arduino couldn’t handle the Guition board or the RPi 5" V2 lcd.
There is a driver for the lcd chipset in Arduino but it does not support the V2 lcd… I probably have enough info to add the mipi dsi setting to the arduino libray. But I don’t think lvgl for Arduino supports the Port interface.
So at the moment I’m stuck. I suspect I’ve messed around with the installation/re-installation of VS-Code and all the extensions to get them in a knot.although I can clean compile the APP I just can’t flash the board.