CN108287671A - 一种具有boot功能的SD卡及其制卡方法 - Google Patents

一种具有boot功能的SD卡及其制卡方法 Download PDF

Info

Publication number
CN108287671A
CN108287671A CN201810315078.0A CN201810315078A CN108287671A CN 108287671 A CN108287671 A CN 108287671A CN 201810315078 A CN201810315078 A CN 201810315078A CN 108287671 A CN108287671 A CN 108287671A
Authority
CN
China
Prior art keywords
boot
card
modules
flash
instructions
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810315078.0A
Other languages
English (en)
Other versions
CN108287671B (zh
Inventor
万波
后嘉伟
廖炳隆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Yang Yang Microelectronics Technology Co Ltd
Original Assignee
Nanjing Yang Yang Microelectronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing Yang Yang Microelectronics Technology Co Ltd filed Critical Nanjing Yang Yang Microelectronics Technology Co Ltd
Priority to CN201810315078.0A priority Critical patent/CN108287671B/zh
Publication of CN108287671A publication Critical patent/CN108287671A/zh
Priority to PCT/CN2018/103042 priority patent/WO2019196315A1/zh
Application granted granted Critical
Publication of CN108287671B publication Critical patent/CN108287671B/zh
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0658Controller construction arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

本发明公开了一种具有boot功能的SD卡及其制卡方法,由主控下传带特定参数的CMD0指令到SD卡控制器芯片,控制器会对命令进行解析,判断为boot模式请求的话,会通知控制器内部软件,将主程序区域内的数据自动上传给主控。在传输过程中,控制器会监控主控下传的命令,如果有停止命令就会停止数据上传,切换到正常工作模式,将boot功能集成到SD控制器上,扩展了SD卡的应用场景,实现了产品功能的升级。

Description

一种具有boot功能的SD卡及其制卡方法
技术领域
本发明属于集成电路芯片设计领域,具体说是一种具有boot功能的SD卡及其制卡方法。
背景技术
目前日常广泛使用的SD卡,内部包括SD卡控制器和flash两部分,被广泛应用在日常存储领域,在各种嵌入式应用中,程序是经常需要更新的,就要求这些应用中所用的主控CPU的程序代码能够支持可更新功能。目前主流方案是主控CPU的程序代码分成启动代码和主代码两部分。其中启动代码比较小放在芯片内置ROM中,不可更改。主代码放到NANDflash或者带boot功能的eMMC上,可以被多次重写或更新。NANDFlash引脚很多,电路复杂,占用PCB板面积大,同时读写访问的NAND Flash的控制方法复杂,开发难度高。eMMC方案解决了这些问题,但成本较高。
发明内容
本发明的目的是提供一种具有boot功能的SD卡及其制卡方法,在不明显增加控制芯片面积的前提下,不影响SD卡正常功能的同时,通过SD卡控制器命令解析部分硬件的功能微调实现boot功能和正常功能的合二为一,提高了SD卡的附加值。
为解决上述技术问题,本发明提供了一种具有boot功能的SD卡,包括SD卡控制器、flash、boot指令解析模块、boot控制模块、DMA传输控制模块和SD传输模块;
所述boot指令解析模块,负责接收主控下发的SD CMD0命令,并进行解析,根据其所带参数确认是否进入boot模式指令;
若接收到进入boot模式指令,boot控制模块进行参数设置,并启动DMA传输控制模块自动从flash区读取boot数据并通过SD传输模块上传。
作为本发明的进一步优化,本发明的boot控制模块参数设置包括boot区的起始地址和数据块大小。
作为本发明的进一步优化,本发明还包括boot停止指令模块,若SD指令接收模块接收到主控下发的Stop指令,则停止上传,切换至正常模式。
本发明还公开了一种具有boot功能的SD卡的制卡方法,包括以下步骤:
步骤1、对SD卡控制器上电,从闪存管理控制模块读取flash型号;
步骤2、通过闪存管理控制模块将boot数据下载到flash特定区域;
步骤3、针对各型号芯片进行写入。
有益效果:本发明与现有技术相比,本发明相对NAND Flash boot方案,电路接口大大减少,电路简单,同时无需软件对flash进行读写管理等控制,与eMMC方案相比电路接口基本相同,boot控制方法简单,成本低。
附图说明
图1为本发明中boot模式进入示意图;
图2为本发明中正常工作模式示意图;
图3为本发明SD控制器芯片Boot功能结构图;
图4为本发明的Boot数据烧录流程图;
图5为本发明的芯片上电软件工作流程图。
具体实施方式
下面结合附图对本发明作更进一步的说明。
本发明提供的一种具有boot功能的SD卡,在SD卡控制器芯片上实现的,包括进入boot模式的方案、boot模式退出方案、boot模式和正常工作模式之间的切换方案。
本发明由主控下传带特定参数的CMD0指令到SD卡控制器芯片,控制器会对命令进行解析,判断为boot模式请求的话,会通知控制器内部软件,将主程序区域内的数据自动上传给主控。在传输过程中,控制器会监控主控下传的命令,如果有停止命令就会停止数据上传,切换到正常工作模式。
如图1、图2、图3所示,本发明由修改SD控制器芯片来实现,包括增加boot指令解析模块,boot数据自动上传模块,boot停止指令解析模块,boot数据下载模块。
本发明的boot指令解析模块,负责接收主控下发的带特定参数的SD CMD0命令,并进行解析,根据其所带参数(如E0E0E0Ex)确认是否进入boot模式指令,若接收到进入boot模式指令,会通知CPU,设置boot控制模块boot区的起始地址,数据块大小等参数,然后boot控制模块会启动DMA传输控制模块,自动从flash区读取boot数据并通过SD传输模块上传。在上传期间,如果SD指令接收模块接收到主控下发的Stop指令,则停止上传,切换至正常模式。
本发明还提供一种相对应的具有boot功能的SD卡的制卡方法,对控制器上电,从闪存管理控制模块读取flash型号;然后从通过闪存管理控制模块将boot数据下载到flash特定区域;在制卡过程首先通过控制器引导程序启动到某一型号芯片模式,读取闪存管理控制模块中闪存的ID,确认闪存型号;再将boot数据下传到闪存中;分别针对各型号芯片进行写入。

Claims (4)

1.一种具有boot功能的SD卡,包括SD卡控制器和flash,其特征在于:还包括boot指令解析模块、boot控制模块、DMA传输控制模块和SD传输模块;
所述boot指令解析模块,负责接收主控下发的SD CMD0命令,并进行解析,判断是否进入boot模式指令;
若接收到进入boot模式指令,boot控制模块进行参数设置,并启动DMA传输控制模块自动从flash区读取boot数据并通过SD传输模块上传。
2.根据权利要求1所述的一种具有boot功能的SD卡,其特征在于:所述boot控制模块参数设置包括boot区的起始地址和数据块大小。
3.根据权利要求1所述的一种具有boot功能的SD卡,其特征在于:还包括boot停止指令模块,若SD指令接收模块接收到主控下发的Stop指令,则停止上传,切换至正常模式。
4.基于权利要求1-3任意一项所述的一种具有boot功能的SD卡的制卡方法,其特征在于:包括以下步骤:
步骤1、对SD卡控制器上电,从闪存管理控制模块读取flash型号;
步骤2、通过闪存管理控制模块将boot数据下载到flash特定区域;
步骤3、针对各型号芯片进行写入。
CN201810315078.0A 2018-04-10 2018-04-10 一种具有boot功能的SD卡及其制卡方法 Active CN108287671B (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810315078.0A CN108287671B (zh) 2018-04-10 2018-04-10 一种具有boot功能的SD卡及其制卡方法
PCT/CN2018/103042 WO2019196315A1 (zh) 2018-04-10 2018-08-29 一种具有boot功能的SD卡及其制卡方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810315078.0A CN108287671B (zh) 2018-04-10 2018-04-10 一种具有boot功能的SD卡及其制卡方法

Publications (2)

Publication Number Publication Date
CN108287671A true CN108287671A (zh) 2018-07-17
CN108287671B CN108287671B (zh) 2024-06-14

Family

ID=62834345

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810315078.0A Active CN108287671B (zh) 2018-04-10 2018-04-10 一种具有boot功能的SD卡及其制卡方法

Country Status (2)

Country Link
CN (1) CN108287671B (zh)
WO (1) WO2019196315A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019196315A1 (zh) * 2018-04-10 2019-10-17 南京扬贺扬微电子科技有限公司 一种具有boot功能的SD卡及其制卡方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102004928A (zh) * 2009-08-28 2011-04-06 上海岭通电子科技有限公司 模块化多协议rfid手持读写设备
CN102246143A (zh) * 2008-12-11 2011-11-16 株式会社东芝 电子设备和电子设备系统
CN102800015A (zh) * 2012-06-15 2012-11-28 武汉天喻信息产业股份有限公司 一种金融ic卡远程个人化方法及系统
US20160092201A1 (en) * 2014-06-27 2016-03-31 Huawei Technologies Co., Ltd. Method and Device for Updating Program Data
CN107622027A (zh) * 2017-09-20 2018-01-23 南京扬贺扬微电子科技有限公司 一种多合一Flash控制器及制卡方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7739487B2 (en) * 2006-01-17 2010-06-15 Nokia Corporation Method for booting a host device from an MMC/SD device, a host device bootable from an MMC/SD device and an MMC/SD device method a host device may booted from
US8996851B2 (en) * 2010-08-10 2015-03-31 Sandisk Il Ltd. Host device and method for securely booting the host device with operating system code loaded from a storage device
CN103116801B (zh) * 2013-01-22 2016-11-02 无锡中科龙泽信息科技有限公司 一种无线sd卡及其工作模式切换的实现方法
CN108287671B (zh) * 2018-04-10 2024-06-14 江苏扬贺扬微电子科技有限公司 一种具有boot功能的SD卡及其制卡方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102246143A (zh) * 2008-12-11 2011-11-16 株式会社东芝 电子设备和电子设备系统
CN102004928A (zh) * 2009-08-28 2011-04-06 上海岭通电子科技有限公司 模块化多协议rfid手持读写设备
CN102800015A (zh) * 2012-06-15 2012-11-28 武汉天喻信息产业股份有限公司 一种金融ic卡远程个人化方法及系统
US20160092201A1 (en) * 2014-06-27 2016-03-31 Huawei Technologies Co., Ltd. Method and Device for Updating Program Data
CN107622027A (zh) * 2017-09-20 2018-01-23 南京扬贺扬微电子科技有限公司 一种多合一Flash控制器及制卡方法

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019196315A1 (zh) * 2018-04-10 2019-10-17 南京扬贺扬微电子科技有限公司 一种具有boot功能的SD卡及其制卡方法

Also Published As

Publication number Publication date
WO2019196315A1 (zh) 2019-10-17
CN108287671B (zh) 2024-06-14

Similar Documents

Publication Publication Date Title
CN105354070B (zh) 一种通过i2c升级设备固件的方法
CN1804799A (zh) 单片机在线加载升级方法及系统
CN103777972A (zh) 基于现场可编程门阵列的系统、配置方法以及升级方法
CN103677943B (zh) 一种缝纫机控制器软件升级方法
CN101699402A (zh) 一种多模式启动的嵌入式系统
CN102787932A (zh) 基于串行通信的电控柴油发动机匹配标定装置和方法
CN103761129A (zh) 一种在Bootloader层实现SDIO接口驱动的方法
CN108287671A (zh) 一种具有boot功能的SD卡及其制卡方法
CN107622027A (zh) 一种多合一Flash控制器及制卡方法
CN103853608A (zh) 一种双Boot切换的实现方法
CN102567253A (zh) 基于dma的spi数据传输方法及装置
CN1892587A (zh) 一种嵌入式控制器及其更新固件的方法
KR100996900B1 (ko) 메모리 클록 설정 기능을 갖는 정보 처리 장치 및 메모리 클록 설정 방법
CN104156199A (zh) 一种软件自动持续集成方法及系统
CN205486087U (zh) 一种基于pci9052的pci总线接口卡
CN102855145B (zh) 嵌入式电子设备启动方法及系统
CN208477510U (zh) 一种具有引导功能的sd卡
CN205158340U (zh) 针对外置程序存储器微处理器的自动代码烧写器
CN104182264B (zh) 一种eMMC的开机优化方法及其装置
CN112346660B (zh) 数据存储方法及装置、数据读取方法及装置
CN110377303A (zh) 基于备用存储区方式升级程序的方法及其设备
CN106571156A (zh) 一种高速读写ram的接口电路及方法
CN106933641A (zh) 一种单片机软件自升级方法和系统
US9519428B2 (en) Dynamically improving performance of a host memory controller and a memory device
CN201185008Y (zh) 计算机接口控制装置

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Country or region after: China

Address after: Building 63, Jinghui Science and Technology Innovation Park, 123 Jinghui West Road, Xinwu District, Wuxi City, Jiangsu Province, 214000

Applicant after: Jiangsu Yangheyang Microelectronics Technology Co.,Ltd.

Address before: 211800, Building 12-80, No. 20 Buyue Road, Pukou District, Nanjing City, Jiangsu Province

Applicant before: NANJING HEYANGTEK Co.,Ltd.

Country or region before: China

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant