Asking for help with drawing custom image from data that is generated during runtime
Hello, I am new to the touchgfx GUI generation. I am working on a simple touchscreen based thermal camera using an MLX sensor. I would like to draw the thermal image on to the screen of my STM32H750B-dk board.
I thought of doing it via an dynamic bitmap by running an rtos task for comunication with the sensor, taking the measured temperature data and converting it to RGB565 equivalent bitmap, by simply scaling the measured data from min to max in a 0-255 scale which then goes to a color pallet lookup table.
This way I get an RGB565 pixel color for each sensor pixel. I am sending the addres of the first pixel since the pixels are stored in an array which I am then storing in vector since the Touchgfx sreenView is code in cpp.
Now comes the problem I can not get the Bitmap::dynamicBitmapcreate(w,h,Bitmap::format); to return a valid BitmapId. I tried following many tutorials and solutions to similar problems with creating the required cache but whenever I try to assaign the cacheAddress to anywhre other than 0x0...0 the screen crashes and remains white. The program is running (I have some status LED for the sensor comunication) but the screen remains blank. if I use the 0x0...0 address screen get drawn but the BitmapId returned from the dynamicBitmapcreate(..) is invalid.
I tried creating the cache via an "global" array, forced address in both ram, flash and SDRAM in touchGFXHAL.cpp to no avail.
I am truly getting desperate so I apreciate any and all responses.
