cancel
Showing results for 
Search instead for 
Did you mean: 

Why can't I use my SPI for ili9341 when I write eeprom?

volkan_
Associate II

Hi everyone, 

I am trying to develeop a program, I need to use ili9341 LCD screen on SPI but at the same time I need to storage some datas by eeprom emulation on sector 2 and sector 3 in flash memory addresses.

I use these codes for eeprom emulation. link for github
Src>main 
Src>eeprom.c
Inc>eeprom.h

I use a library for ili9341 on SPI. link for github

But when I use EE_Init function to initialize eeprom writing process, I cant use SPI correctly. 
Bascily, I need to draw a logo on the screen, I can do it unless I use EE_Init function. But after I use it, my logo drawning processes always stuck. 

Thanks everyone in advance,
Volkan

 

volkan__0-1708416988130.png

 

2 REPLIES 2

Please use this button to properly post source code - not as images:

AndrewNeil_0-1708425959709.png

 

What debugging have you done to find what's different between the working & non-working cases?

  • Internally:
    • check register settings, etc?
    • Are APIs returning error codes?

  • Externally: what are the SPI lines doing?

 

TDK
Guru

Debug your code. Step through it, see where the execution is at when it's "stuck".

If you feel a post has answered your question, please click "Accept as Solution".