infineon4engineers Facebook

infineon@google+ Google+

infineon@linkedin linkedin

infineon4engi@twitter twitter

infineon@youtube youtube

+ Reply to Thread
Results 1 to 4 of 4

Thread: SPI Flash on XMC4500 Relax kit

  1. #1
    Beginner Beginner Jorge66 is on a distinguished road Jorge66's Avatar
    Join Date
    Jun 2016
    Location
    Geneva
    Posts
    29
    Points
    53.59375

    SPI Flash on XMC4500 Relax kit

    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

    Click image for larger version

Name:	Relax SPI pins.JPG
Views:	2
Size:	35.5 KB
ID:	3085

    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
    ?????

  2. #2
    Beginner Beginner Jorge66 is on a distinguished road Jorge66's Avatar
    Join Date
    Jun 2016
    Location
    Geneva
    Posts
    29
    Points
    53.59375
    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

    Click image for larger version

Name:	spimastercfg.JPG
Views:	0
Size:	70.2 KB
ID:	3100

  3. #3
    Beginner Beginner mabdulahad is on a distinguished road
    Join Date
    Aug 2017
    Posts
    4
    Points
    60
    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_APPClick image for larger version

Name:	Capture.PNG
Views:	0
Size:	13.8 KB
ID:	3101

  4. #4
    New Member New Member Mastermatic is on a distinguished road
    Join Date
    Nov 2013
    Location
    Leiria
    Posts
    9
    Points
    84.6875
    jorge 66 do you have the example working?
    Can you send?

+ Reply to Thread
Disclaimer

All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.


Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.


Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.