yuzhubin Posted May 6, 2018 Report Share Posted May 6, 2018 (edited) i configurer my project following the bare metal guide, i filled these two functions systemticks_t gfxSystemTicks(void) { return HAL_GetTick(); } systemticks_t gfxMillisecondsToTicks(delaytime_t ms) { return ms; } and i also filled the driver functions in "drivers\gdisp\ILI9341\board_ILI9341.h", and i copied demo/disp/basic code to my main.c the prroject can be builded and run but i just can't see any thing. the only one can work is gfxinit() function, it did init my scrreen Edited May 6, 2018 by yuzhubin Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted May 6, 2018 Report Share Posted May 6, 2018 What you did is correct. But now you need to debug: Step through your application and see whether it hangs or crashes somewhere Make sure that your board file is implemented properly. Use a logic analyzer / osmelloscope to verify that the signals are correct The ILIxxxx drivers are known to be very difficult to handle in terms of different revisions and so on. Some of the chips are even labeled wrong. Check out the initialization sequence in the driver file (/drivers/gdisp/ILI9341/gdisp_lld_ILI9341.c) and compare it to the one that your manufacturer/supplier supplied with the module you bought. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now