-
大小: 1.11MB文件类型: .zip金币: 1下载: 0 次发布日期: 2023-08-30
- 语言: 其他
- 标签: TMS570LS1224 TI FLASH
资源简介
自建工程,用于测试TMS570LS1224读写片内FLASH BANK0。经过实测,读写正常。
代码片段和文件信息
//*****************************************************************************
//
// bl_flash.c : Flash programming functions used by the boot loader.
// Author : QJ Wang. qjwang@ti.com
// Date : 9-19-2012
//
// Copyright (c) 2006-2011 Texas Instruments Incorporated. All rights reserved.
// Software License Agreement
//
// Texas Instruments (TI) is supplying this software for use solely and
// exclusively on TI‘s microcontroller products. The software is owned by
// TI and/or its suppliers and is protected under applicable copyright
// laws. You may not combine this software with “viral“ open-source
// software in order to form a larger program.
//
// THIS SOFTWARE IS PROVIDED “AS IS“ AND WITH ALL FAULTS.
// NO WARRANTIES WHETHER EXPRESS IMPLIED OR STATUTORY INCLUDING BUT
// NOT LIMITED TO IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT UNDER ANY
// CIRCUMSTANCES BE LIABLE FOR SPECIAL INCIDENTAL OR CONSEQUENTIAL
// DAMAGES FOR ANY REASON WHATSOEVER.
//
//*****************************************************************************
#include “bl_config.h“
#include “bl_flash.h“
#include “F021.h“
#include “flash_defines.h“
//*****************************************************************************
//
//! Returns the size of the ist sector size of the flash in bytes.
//!
//*****************************************************************************
uint32_t
BLInternalFlashFirstSectorSizeGet(void)
{
uint32_t firstSectorSize;
firstSectorSize = (uint32_t)(flash_sector[0].start) + flash_sector[0].length;
return (firstSectorSize);
}
//*****************************************************************************
//
//! Returns the size of the internal flash in bytes.
//!
//! This function returns the total number of bytes of internal flash in the
//! current part. No adjustment is made for any sections reserved via
//! options defined in bl_config.h.
//!
//! \return Returns the total number of bytes of internal flash.
//
//*****************************************************************************
uint32_t
BLInternalFlashSizeGet(void)
{
uint32_t flashSize;
flashSize = (uint32_t)flash_sector[NUMBEROFSECTORS-1].start + flash_sector[NUMBEROFSECTORS-1].length;
return (flashSize);
}
//*****************************************************************************
//
//! Checks whether a given start address is valid for a download.
//!
//! This function checks to determine whether the given address is a valid
//! download image start address given the options defined in bl_config.h.
//!
//! \return Returns non-zero if the address is valid or 0 otherwise.
//
//*****************************************************************************
uint32_t
BLInternalFlashStartAddrCheck(uint32_t ulAddr uint32_t ulImgSize)
{
uint32_t count=0 i;
uint32_t ulWholeFlashSize;
//
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-10-11 09:47 FLASH_WriteRead_Test(ba
文件 616 2018-10-11 08:59 FLASH_WriteRead_Test(ba
文件 25301 2018-10-11 08:59 FLASH_WriteRead_Test(ba
目录 0 2018-10-11 09:47 FLASH_WriteRead_Test(ba
文件 5573 2018-10-11 09:42 FLASH_WriteRead_Test(ba
文件 843 2018-10-11 08:57 FLASH_WriteRead_Test(ba
目录 0 2018-10-11 09:47 FLASH_WriteRead_Test(ba
文件 62 2018-10-11 08:57 FLASH_WriteRead_Test(ba
文件 123 2018-10-11 08:57 FLASH_WriteRead_Test(ba
文件 378 2018-10-11 08:57 FLASH_WriteRead_Test(ba
目录 0 2018-10-11 09:47 FLASH_WriteRead_Test(ba
文件 19508 2018-10-11 09:46 FLASH_WriteRead_Test(ba
文件 278844 2018-10-11 09:46 FLASH_WriteRead_Test(ba
文件 185297 2018-10-11 09:46 FLASH_WriteRead_Test(ba
文件 272 2018-10-11 09:47 FLASH_WriteRead_Test(ba
目录 0 2018-10-11 09:47 FLASH_WriteRead_Test(ba
文件 308 2018-10-11 09:47 FLASH_WriteRead_Test(ba
文件 361 2018-10-11 09:47 FLASH_WriteRead_Test(ba
文件 4856 2018-10-11 09:47 FLASH_WriteRead_Test(ba
文件 269 2018-10-11 08:59 FLASH_WriteRead_Test(ba
文件 2085 2018-10-11 09:47 FLASH_WriteRead_Test(ba
目录 0 2018-10-11 09:47 FLASH_WriteRead_Test(ba
文件 3459 2018-10-11 09:39 FLASH_WriteRead_Test(ba
文件 57548 2018-10-11 09:39 FLASH_WriteRead_Test(ba
文件 71 2018-10-11 09:23 FLASH_WriteRead_Test(ba
文件 68 2018-10-11 09:23 FLASH_WriteRead_Test(ba
文件 3831 2018-10-11 09:46 FLASH_WriteRead_Test(ba
文件 74124 2018-10-11 09:46 FLASH_WriteRead_Test(ba
文件 2615 2018-10-11 08:59 FLASH_WriteRead_Test(ba
文件 1726 2018-10-11 09:46 FLASH_WriteRead_Test(ba
文件 33468 2018-10-11 09:46 FLASH_WriteRead_Test(ba
............此处省略59个文件信息
- 上一篇:松翰单片机中文开发教程.pdf
- 下一篇:国际疾病分类标准编码
相关资源
- FLASH小游戏源代码84512
- Ensemble Methods Foundations and Algorithms读书
- 交通灯仿真Multisim
- source code for Computer Graphics: Programming
- The Algorithmic Foundations of Differential Pr
-
A Taxi Order Dispatch Model ba
sed On Combin - 虚拟机迁移Live Migration of Virtual Machi
- 实验报告4连续时间LTI系统的复频域分
- Dialog风格Activity全屏显示悬浮窗
- Solution manual for Wireless Communications By
- libsvm-3.1-[FarutoUltimate3.1Mcode
- FLASHFTP简体中文破解版
- 利用Origin程序及Digitizer插件从图形中
- HttpURLConnection访问网页图片
- Logistic人口预测模型
- ProgramminginLua4thEdition带书签.zip
- Windows下hadoop3.1.0 64位hadoop.dll和winuti
- Flash6 AS3.0 倒计时器源码
- [B] Elements.of.Information.Theory.2nd 答案
- altium_designer常用元件库大全
- [2010] Hardware Acceleration of EDA Algorithms
- apache-hadoop-3.1.0-winutils-master.zip
- STM32信号发生器.rar
- STM32F407系统时钟设置程序STM32F4xx_Clo
- Digital Image Processing - Third Edition 课后答
- mini-KMS_Activator_v1.2_Office2010_VL_ENG.rar
- 西门子S7-200仿真软件Simulation
- mybatis从入门到精通中文版+源码
- Effective STL中文版.pdf 带目录书签 清晰
- Causal Inference in Statistics: A Primer
评论
共有 条评论