STM32H723ZG Problem with SPI
Hello Dears..
After weekend im so tired with fight to make work SPI1 in H723... So my last idea is your help....
But from begining..
I was so happy and proud owner STM32F446RE
Made nice project with sensors, ir, tft lcd display, rs232, eeprom etc etc . Work with this board was so good.. all work well and without problems...
Then i though i need better board because i need more ram for buffers and other things.. so nothing to do just buy better STM board..
I find h723zg.. bought.. and excited go move my project to new board.
And so? First thing .. LCD (ili9486).. so i start move code.. i had code from example producent and work well in f446..
Configure Spi from CUBE default peripherials.. set all same like in f446 and... Nothing. Zero communication with lcd..
I tried a lot things and ideas.. used registers, used hal_transmit, hal_transmitreceive.. nothing... Same ideas work correct in f446.. in h723 im not able make connection with lcd..
Debugger show nothing.. all is okay when i go step by step.. i think somhing bad is with configuration SPI?
Pls help because im so close to bring to trash this h7 :(
My function to send data to lcd:
uint8_t SPI4W_Write_Byte(uint8_t value)
{
SPI1->CR2 |= (SPI_CR2_TSIZE & sizeof(value));
SPI1->CR1 |= SPI_CR1_SPE;
SPI1->CR1 |= SPI_CR1_CSTART;
if(((SPI1->SR) & SPI_SR_TXP) == SPI_SR_TXP)
{
*((__IO uint8_t*)&SPI1->TXDR) = value;
}
while(((SPI1->SR) & SPI_SR_EOT) != SPI_SR_EOT){};
SPI1->CR1 |= SPI_CR1_SPE;
}My settings.


