Debugging the rainbow screen #484
-
I have written/ported a driver for the RoboPeak USB DIsplay (no longer available!) and am testing it on a Pi Zero, with serial logging. So, I set up a uSD card, copied my simple test app, which just paints some rectangles and handles touch events, and that works quite nicely. I proceeded to create a copy of the lvgl class, and modify it to work with my driver. I have a sample app that uses my modified class in place of the CLVGL one, and built it. I copy the resultant kernel.img to the SD card, and i get the rainbow screen on the HDMI display, but my USB screen isn't initialising. I know this, because on power up it displays 'waiting for signal' until I actually send it a command. How early in main/kernel can I put logging to see what is happening? I am clearly doing something wrong, as the original LVGL sample works fine, so there must be something in my version of the LVGL constructor that is causing an issue. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The following classes must be instantiated, before logging can be used:
You must call
In your case I would instantiate the class |
Beta Was this translation helpful? Give feedback.
The following classes must be instantiated, before logging can be used:
You must call
Initialize()
for the following classes, before logging can be used:CLogger
can be constructed without a reference for aCTimer
object. It will not show the time then.In your case I would instantiate the class
CLVGL
not as a member ofCKernel
, but as a local variable inCKernel::Run()
. Then you can do all necessary initialization for the logger before.