XMC4500 Relax Kit SPI FLASH MEMORY

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Not applicable
Hi,

I try to use QSPI_EXAMPLE_XMC45 from https://www.infineon.com/cms/en/product/promopages/aim-mc/dave_downloads.html but it doesn.t work. I changed pins according to 100pin device.
I getting ProjectStatus=1 after Initialize the transmit buffer.
Does anyone know where the problem may be ?

I enclose my project

Best regards
Szymon

0 Likes
4 Replies
Not applicable
Hi,

I managed to run the example but I do not know how to read the ID. Can anyone advise me how to do it?

Best regards
Szymon
0 Likes
User13972
Level 1
Level 1
I can read the flash ID with Direct mode. Interrupt mode works only once. If you need the Direct mode project, I can upload it.
0 Likes
User18007
Level 1
Level 1
First reply posted First question asked
I'm trying to interface the external flash with the XMC 4800, but i'm facing problem. i tried it using given API's but its not working. please guide me the steps or program for SPI communication.


Set_CE_low(); // CE low
XMC_SPI_CH_Init(XMC_SPI0_CH0, &spi_config); // SPI init
XMC_SPI_CH_EnableMasterClock(XMC_SPI0_CH0); // Enabling master clock
XMC_SPI_CH_SetWordLength(XMC_SPI0_CH1, 8); //Setting word length
XMC_SPI_CH_SetFrameLength(XMC_SPI1_CH0, 64); //Setting frame length
XMC_SPI_CH_EnableSOF(XMC_SPI1_CH0); // start of frame
XMC_SPI_CH_EnableEOF(XMC_SPI1_CH0); //End of frame
XMC_SPI_CH_EnableSlaveSelect(XMC_SPI1_CH0, XMC_SPI_CH_SLAVE_SELECT_0); //SS is enabled
XMC_SPI_CH_Transmit(XMC_SPI0_CH0, data, XMC_SPI_CH_MODE_STANDARD); // Transmiting the data
Set_CE_high(); // CE high


I checked, even clock is not getting generate.
Please reply @Infineon
0 Likes
lock attach
Attachments are accessible only for community members.
jferreira
Employee
Employee
10 sign-ins 5 sign-ins First like received
Hi,

Please use as a reference the attachment.

Regards,
Jesus
0 Likes