SPI Flash on XMC4500 Relax kit

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.
User11706
Level 2
Level 2
Hello,

I am using Dave 4 with latest Dave apps available. Great tool !

I try to use the Serial SPI Flash available on XMC4500 Relax Kit.
I take the example of XMC4500 Hexagon, and change
The MCU model migration (from 144 to 100 pins)
the manual assignment pin settings to match Relax Kit

2786.attach

Does not work 😞

I tried several changes (Interrupt / Direct) Pin settings, etc...
I have measured correct signals on CS, SCL and MOSI,
but MISO signal remains silent.

Is there any public example allowing to access this device ?

Thanks a lot for your support

Jorge
0 Likes
3 Replies
User11706
Level 2
Level 2
Found it !!

After looking more carefully at the differences between Hexagon (working) and Relax (not working) projects,
I found that for some unknown reason, following line has been added in

static SPI_MASTER_STATUS_t SPI_MASTER_0_lInit(void)
{
...
XMC_SPI_CH_DisableFEM(XMC_SPI0_CH0);

This is not correct, make sure the Frame End Mode is on

2801.attach
0 Likes
Not applicable
Sorry i have a related but different question.
If I want to change the port_config from high to low and back again (the slave works on low CS), how do I do that in coding?
I tried like this but ofcourse it doesnt work
SPI_MASTER_0_SS_1_Config.port_config.output_level = XMC_GPIO_OUTPUT_LEVEL_LOW;

How do I change level of slave select lines in software? I am using SPI_MASTER_APP2802.attach
0 Likes
User7878
Level 1
Level 1
jorge 66 do you have the example working?
Can you send?
0 Likes