Skip to main content
mlitv.1
Associate
September 11, 2022
Question

STM32G474VET6 FMC

  • September 11, 2022
  • 3 replies
  • 1421 views

All health!

I tried to connect the display on ILI9341 to STM32G474VET6 using FMC. There were no problems with stones F1, F3, F4, F7. And with G4, an interesting plug is obtained - for each byte, a 0x00 byte is added. I read Eratu - there is nothing. I don’t even know where to dig. If anyone has met with such FMC work, tell me where to dig.

This topic has been closed for replies.

3 replies

Tesla DeLorean
Guru
September 11, 2022

Start with schematic of connectivity

Configuration of pins and peripheral

And the code for the types of read/write operations you are performing

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
mlitv.1
mlitv.1Author
Associate
September 12, 2022

STMCubeIDE 1.10.1

If 8 bit data is selected, an empty byte is added, if 16 bit data is not. Why is the high (unused) byte sent in 8-bit mode?

mlitv.1
mlitv.1Author
Associate
September 12, 2022

Carelessness.

Now

#define ADDR_CMD *(uint16_t*)0x60000000

#define ADDR_DATA *(uint16_t*)0x60040000

but you need

#define ADDR_CMD *(uint8_t*)0x60000000

#define ADDR_DATA *(uint8_t*)0x60040000

Amel NASRI
Technical Moderator
September 14, 2022

Hi @mlitv.1​ ,

Do you mean that wrong code is generated with STM32CubeIDE?

If it is the case, could you please provide some more details so that we can track the issue and fix it?

Thanks.

-Amel

To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.