Why can't I use my SPI for ili9341 when I write eeprom?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-20 12:21 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-20 2:49 AM - edited ‎2024-02-20 2:49 AM
Please use this button to properly post source code - not as images:
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 designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-20 6:16 AM
Debug your code. Step through it, see where the execution is at when it's "stuck".
