2484 views|1 replies

11

Posts

0

Resources
The OP
 

[AT-START-F403A Evaluation] Part 3 freeRTOS system based on IAR environment external QSPI flash (SPIM) EN25QH... [Copy link]

 This post was last edited by uuxz99 on 2020-10-5 16:54

The AT-START-F403A evaluation board is equipped with an external 16M-byte NOR QSPI Flash ( EN25QH128A ) . The large enough capacity and speed are suitable for many applications. A simple test was done in the freeRTOS environment. Due to the simple test environment, the results may be erroneous and are for reference only.

1.SPIM initialization:

  1. 1.1 Port Initialization

1.2SPIM configuration flash

  • Configure external flash device class type
  • No encryption setting
  • Test sample settings

2. SPIM test :

This test is a test in a complete application environment, not a completeness indicator test. The test task (thread) starts a test cycle every second, with 8 sectors (4K) in each cycle. Each test process is to erase the sector -> write word by word (write 4 bytes until the sector is full) -> read the sector -> verify. Since the external flash is operating at 104MHz, the AHB is reduced to 200MHz so that the external flash can operate at the best performance.

2.1 SPIM write test method:

Write 4K sample data to calculate the time required to complete the write. Data is written as 4 bytes, and the entire write time includes the following

  • Sector erase time.
  • Sector programming time.
  • Flash status control and other time.

2.2 SPIM reading test method:

The time required to read the 4K sample data just written. Reading is based on a 4-byte read operation, and the entire read time is as follows:

  • Check external flash status before reading
  • Read the data.

3. SPIM rough test results

3.1 It should be noted that the page in the firmware library-related SPIM function operation naming FLASH_ErasePage is a different concept from the device page. The device manual states that the page cannot be erased, but can be programmed. The function page corresponds to the device sector, and the firmware operation is based on sector 4K. You may need to pay attention to this during use.

3.2 Test Results

The test results are shown in the figure below.

3.3 Test result description

3.3.1 Sector write time is about 50-60ms, of which sector erase time accounts for more than 80%, programming write time is about 8ms, and the rest time is about 1-3ms for system status query,Control and test itself and information printing and other overhead.

3.3.2 Sector read speed is about 1 millisecond or less

image.png (129.7 KB, downloads: 0)

image.png

image.png (94.58 KB, downloads: 0)

image.png

image.png (64.6 KB, downloads: 0)

image.png

image.png (146.5 KB, downloads: 0)

image.png

image-20201005164113-1.png (207 Bytes, downloads: 2)

image-20201005164113-1.png

image-20201005164128-2.png (207 Bytes, downloads: 0)

image-20201005164128-2.png
This post is from Domestic Chip Exchange

Latest reply

Yatli AT-START-F403A Review Summary https://en.eeworld.com/bbs/thread-1143018-1-1.html   Details Published on 2020-10-9 15:06
 
 

1w

Posts

204

Resources
2
 

Yatli AT-START-F403A Review Summary

https://en.eeworld.com/bbs/thread-1143018-1-1.html

This post is from Domestic Chip Exchange
Add and join groups EEWorld service account EEWorld subscription account Automotive development circle
Personal signature

玩板看这里:

http://en.eeworld.com/bbs/elecplay.html

EEWorld测评频道众多好板等你来玩,还可以来频道许愿树许愿说说你想要玩的板子,我们都在努力为大家实现!

 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list