Skip to main content
Associate II
February 20, 2024
Question

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

  • February 20, 2024
  • 2 replies
  • 1486 views

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

 

This topic has been closed for replies.

2 replies

Andrew Neil
Super User
February 20, 2024

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?

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
TDK
February 20, 2024

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""."