2814 views|3 replies

11

Posts

0

Resources
The OP
 

[AT-START-F403A Evaluation] 4. FreeRTOS system based on IAR environment external flash (SPIM) operation evaluation [Copy link]

 

The last evaluation achieved a rough test of the performance of the external SPIM QSPI Flash. This evaluation will divide the external flash into two parts:

  1. 0x08400000-0x0840FFFF is used as the data area,
  2. 0x08410000-0x093FFFFF is used as the code running area. The three LED lighting tasks (threads) previously evaluated are run in this area.
  1. Customize project link configuration:
    1. Customize the link configuration file, copy the AT32F403AxG.icf file from the IAR installation directory\arm\config\linker\ArteryTek directory to the project directory and rename it to AT32F403AxG_extFlash.icf. Add it to the project for easy modification, as shown in the figure below.

    1. Modify the link configuration file and add ROM space symbol definitions:
  1. define symbol __ICFEDIT_region_ROM_BANK3_start__ = 0x08410000;
  2. define symbol __ICFEDIT_region_ROM_BANK3_end__ = 0x093FFFFF;
  3. define region ROM_BANK3_CODE_region =mem:[from __ICFEDIT_region_ROM_BANK3_start__ to __ICFEDIT_region_ROM_BANK3_end__];
  4. place in ROM_BANK3_CODE_region {readonly section .text object led_task.o};

    1. Specify the project link configuration file:
  1. Enter the menu project->option, and in the pop-up dialog box, select Linker->config
  2. Select the Override Default option and select the modified link profile

  1. Custom download bootloader:
    1. Copy the two files in the IAR installation directory\arm\config\flashloader\ArteryTek\AT32F403A\AT32F403ACGT7 directory to the project.
  1. FlashAT32F403ACGT7.flash
  2. FlashAT32F403ACGT7.board
    1. Rename the two files to AT32F403ACGT7_extFlash.board and AT32F403ACGT7_extFlash.flash, and modify the content in AT32F403ACGT7_extFlash.flash as shown below

    1. Specify the project bootloader configuration.
  1. Enter the menu project->option,
  2. In the pop-up dialog box, select Debugger>Download.
  3. Check Override default .board file
  4. The changes are shown in the figure below.

  1. Click the Edit… button and change as shown below

  1. Specify the debug device description file (DDF):
    1. Copy AT32F403AxG.ddf from the IAR installation directory \ \arm\config\debugger\ArteryTek to this directory and rename it to AT32F403AxG_extFlash.ddf.
    2. In order to facilitate IAR debugging and observation of the downloaded code, it is necessary to customize the device description file for IAR debugging and add external flash custom space definition. As shown below

    1. Specifying a DDF File

  1. SPIM related source code (omitted):

See the previous SPIM initialization instructions.

  1. Compile verification:
    1. After the compilation is successful, open the compiled memory mapping file at32403a_eval.map, search for the led_task keyword, as shown in the figure below, and place it in the overview, which is already in the predetermined area.

    1. These two areas are described in detail

  1. Run location validation
    1. Set the corresponding breakpoints in each task and run until the breakpoint is encountered. Observe that the assembly address is indeed in the area where 0x08410000 is located.

  1. Operation Results

    1. The running speed of external flash has not been tested and cannot be determined. It will be supplemented later.
    2. When downloading, an error message is displayed. Observe the debug log information Verification error at 0x08410000: mem = 0xFF, file = 0x38. It should be that the debugger does not read the external flash data correctly. However, the actual observation is correct, as shown in the figure below, and no problems have been found during debugging and running. If problems are found later, they will be corrected or supplemented.

image.png (30.47 KB, downloads: 0)

image.png

image.png (113.85 KB, downloads: 0)

image.png
This post is from Domestic Chip Exchange

Latest reply

Yatli AT-START-F403A Review Summary Summary post: https://bbs.eeworld.com.cn/thread-1143018-1-1.html   Details Published on 2020-10-19 09:49
 
 

1366

Posts

6

Resources
2
 

Nice, thanks for sharing

This post is from Domestic Chip Exchange
 
 
 

7462

Posts

2

Resources
3
 

Nice, thanks for sharing

This post is from Domestic Chip Exchange
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 
 

1w

Posts

203

Resources
4
 

Yatli AT-START-F403A Review Summary

Summary post: https://bbs.eeworld.com.cn/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

玩板看这里:

https://bbs.eeworld.com.cn/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