Jump to content

ILI9341+MAPS-KS22+BareMetal doesn't work


yuzhubin

Recommended Posts

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 by yuzhubin
Link to comment
Share on other sites

What you did is correct. But now you need to debug:

  1. Step through your application and see whether it hangs or crashes somewhere
  2. Make sure that your board file is implemented properly. Use a logic analyzer / osmelloscope to verify that the signals are correct
  3. 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...