2017-10-20 07:29 AM
Helo! I'd like to make the next thing:
LCD application and communication with another IC through SPI,
I did the next steps:
1. I made a new uVision LCD projects (found the steps in the ARM youtube channel, works fine).
2. I checked the SI DMA example (STM32Cube V1.8.0).
3. Import the files (stm32f7xx_hal_msp, stm32f7xx_it, main.h)
The project is not working. Where should I look the problem? Or how should I solve this, or what is the way?
#keil #spi #stm32f72017-10-20 08:31 AM
Please edit post so text formats normally.
2017-10-20 08:58 AM
So from 1) I'm assuming that you have a working display using whatever SPI modes were being used there.
I would probably clone the SPI DMA example and then modify and merge in the code from the prior working example. You're going to want to pay attention to SPI and DMA being used, and pins. If the code builds you should review what's happening at the pins with a scope or analyzer.
I'm afraid 'not working' is a bit of a broad target. The LCD doesn't respond? The SPI doesn't clock?
Start with the working model you have and pull in and test new portions a bit at a time.
2017-10-20 11:56 AM
The LCD application is working. After I have added the SPI options (hal_msp.c file) the LCD still working, the SPi doesn't.
2017-10-21 11:42 AM
Thanks.
After I made an LCD project, I did the next step: I took the SPI options and got to the LCD project. After these the LCD still worked.