• AVR Freaks

Hot!SPI and SQI Flash libraries with SAMA5D2 X PLAINED board

Author
surendra babu
New Member
  • Total Posts : 4
  • Reward points : 0
  • Joined: 2020/08/12 03:53:00
  • Location: 0
  • Status: offline
2020/08/12 23:13:50 (permalink)
0

SPI and SQI Flash libraries with SAMA5D2 X PLAINED board

I’m exploring the SPI and SQI Flash libraries.
SPI Flash libraries Reference Path- (..\core\apps\driver\spi_flash\at25df\at25df_flash_read_write\firmware\sam_a5d2_xult_xc32.X).
But the code keep on running in DRV_AT25DF_Open function while loop.

SQI Flash libraries Reference Path - (..\core\apps\driver\sqi_flash\mx25l\mx25l_flash_read_write\firmware\sam_a5d2_xult_xc32.X).
But the code always switched to APP_STATE_ERROR case.

Any tool related settings or jumper settings needs to be change?
Let me know the workaround or guidelines to run the SPI and SQI Flash libraries.

My Hardware setup- Windows machine, SAMA5D2 X PLAINED board.

Kindly help me.
#1

4 Replies Related Threads

    thackerp
    Super Member
    • Total Posts : 128
    • Reward points : 0
    • Joined: 2012/01/18 12:25:44
    • Location: Chandler, AZ
    • Status: offline
    Re: SPI and SQI Flash libraries with SAMA5D2 X PLAINED board 2020/08/14 07:25:11 (permalink)
    0
    Make sure JP9 (BOOT_DIS) is open.
    #2
    surendra babu
    New Member
    • Total Posts : 4
    • Reward points : 0
    • Joined: 2020/08/12 03:53:00
    • Location: 0
    • Status: offline
    Re: SPI and SQI Flash libraries with SAMA5D2 X PLAINED board 2020/08/16 20:24:03 (permalink)
    0
    thackerp
    Make sure JP9 (BOOT_DIS) is open.


    Hi Thackerp,
    If J9 (BOOT_DIS) is open not able to flash. Got Target board connection error.
    Let me know steps to run the code.
    #3
    surendra babu
    New Member
    • Total Posts : 4
    • Reward points : 0
    • Joined: 2020/08/12 03:53:00
    • Location: 0
    • Status: offline
    Re: SPI and SQI Flash libraries with SAMA5D2 X PLAINED board 2020/08/16 21:45:21 (permalink)
    0
    FYI.
     
    I’m not using SD card for Bootup. I’m using J-32 Debug probe to flash the code(at91bootstrap.elf file).
    Let me know steps to run the code. 
    #4
    surendra babu
    New Member
    • Total Posts : 4
    • Reward points : 0
    • Joined: 2020/08/12 03:53:00
    • Location: 0
    • Status: offline
    Re: SPI and SQI Flash libraries with SAMA5D2 X PLAINED board 2020/08/17 23:37:46 (permalink)
    0
    Hi All,
     
    After reducing the optimization level from (1 to 0). I’m able to find the issue where exactly occurred, While reading the JedecID(Flash ID) Function-DRV_MX25L_ReadJedecId(handle, (void *)&jedec_id) and Flash size Function-DRV_MX25L_GetFlashSize(jedec_id[2]) returns the invalid address value in drv_mx25l.c file.
     
    Additional information:
    1. I’m using on board External flash memory part no(MX25L25673GM2I-08G). As per the datasheet QSPIID value- command type- AF, Manufacture Id- C2, Memory type- 20, Memory density- 19.
    2. QSPI clock frequency 55.33MHz(default setting).
     
    Kindly let me know any recommended configuration steps needs to be taken care.
    #5
    Jump to:
    © 2020 APG vNext Commercial Version 4.5