ATSAM9260 NORFLASH Boot solution research

 

1.      概述

           本文档描述AT91SAM9260  NORFLASH系统启动的设计方案;

           AT91SAM9260  支持多种boot策略,具体取决于系统resetBMS的状态,当BMS=0时系统从连接到CS0上的外部静态非易失性存储器boot

Norflash接口和SRAM类似,并且数据读取操作简单,CPUSMC(静态存储控制器)可以直接读取。理论上可以用来存放boot及应用代码。

 

2.      官方支持的boot方案

           ATMEL支持的比较成熟的boot方案是DATAFLASHNANDFLASH启动,为了实现DATAFLASHNANDFLASH启动,首先在CPU在内部ROM中固化了boot program,当BMS=1时,CPU从内部ROM boot

boot program主要实现了2个功能,

1.       系统初始化

RESET后进入系统初始化阶段:

1. FIQ Initialization

2. Stack setup for ARM supervisor mode

3. External Clock Detection

4. Switch Master Clock on Main Oscillator

5. C variable initialization

6. Main oscillator frequency detection if no external clock detected

7. PLL setup:

 

2.       1bootloader的功能,

           初始化完成后进入Bootloader阶段:

              8.    Initialization of the DBGU serial port (115200 bauds, 8, N, 1) only if OSCSEL = 1

              9.    Enable the user reset

              10. Jump to DataFlash Boot sequence through NPCS0. If DataFlash Boot succeeds,                   perform a remap and jump to 0x0.

              11. Jump to DataFlash Boot sequence through NPCS1. If DataFlash Boot succeeds,                   perform a remap and jump to 0x0.

              12. Jump to NAND Flash Boot sequence. If NAND Flash Boot succeeds, perform a

                     remap and jump to 0x0.

              13. Activation of the Instruction Cache

              14. Jump to SAM-BA Boot sequence

              15. Disable the WatchDog

       16. Initialization of the USB Device Port

 

         除此之外,ATMELPC端还提供了SAM-BA应用程序实现对DataFlash以及Nandflash的烧写功能。

2.1       SAM-BA应用程序界面

 

3.      Norflash boot实现方案

         不论是片内的boot program还是上位机SAM-BA工具都不提供对Norflash的支持,可见ATMEL

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值