Closed Bodmer closed 1 year ago
When a RP2040 based board is selected the code compiles, uploads and runs correctly. So this compile problem seems to be associated with the ESP32 board package.
Hello Bodmer, try to switch the branch to develop. I think they are updates there that are not yet merged in master branch
With the develop branch my sketch compiles and uploads to the RP2040 processor but the processor then crashes. The Master branch runs fine though. So that branch does not work for me.
I have found that in the develop branch I have to comment out the following lines in the sketch:
// render.showFreeTypeVersion(); // print FreeType version // render.showCredit(); // print FTL credit
Each line causes the RP2040 processor to crash if it is uncommented. I have not investigated further.
The rendering of the characters in the delvelop branch to the TFT is also significantly slower, I have not investigated why this may be the case.
I looked at this further and it is g_Print() in OpenFontRender.h/cpp that is causing the RP2040 processor crash with the develop branch.
I am guessing this has to be user defined or is expected to be part of the debug environment used during development. This needs to be resolved.
I added the following to the sketch and it now runs using the develop branch without crashing on the RP040.
Serial.begin(115200);
Serial.flush();
render.setSerial(Serial); // Important to avoid a crash with RP2040
@Bodmer Thank you for using this library 😊
I have confirmed reports of RP2040. I apologize for the delay in the official release of the development branch and the preparation of the sample code.
I hope to merge the pull request as soon as we confirm the code.
However, my main business is crazy busy now 🤮🤮🤮. So, I have not been able to find time for my hobby. It will take some time, but I will continue development, so I hope you will be patient with me.
Thank you !
Thank you, it's a great easy to use library. It is working very well now on my RP2040 with those tweaks. I have created new binaries from ttf files without a problem.
I have issued a pull request based on the develop branch that fixes this.
Pull requests have been merged and reflected in the master branch. Thanks for your contribution 👍
Great, happy to help.
--Update-- These warnings are treated as errors with ESP32 board package for the case where "Compile warnings:" is set to "All" in the Arduino IDE "Preferences" dialogue box. If set to "None", "Default" or "More" these warnings will NOT be traeated as errors.
Compile fails for the ESP32, warnings and errors are reported below. This is with the ESP32 board package 2.0.5 which seems to be very picky with type conversions: