-
大小: 1.11MB文件类型: .zip金币: 2下载: 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
- 下一篇:国际疾病分类标准编码
相关资源
- AsyncTask文件控制暂停和继续,在状态
- SpringBoot+H2+mybatis-plus59130
- flash3.0小游戏
- Rational Rose Common破解文件
- umeshmotion网格推移
- Wolfram Mathematica 矩阵初等变换函数(
- 基本放大电路multisim仿真.ms14
-
Actionsc
ript 1.0实现能跟随鼠标运动的 - CCS5.05.1可使用的license
- TI CCS V5.4 安装步骤及破解文件
- 由浅入深,蓝牙4.0/BLE协议栈开发攻略
- The direction of synaptic plasticity mediated
- Reparatory Effects of Nicotine on NMDA Recepto
- Apolipoprotein E4 Impairs in vivo Hippocampal
- Histamine excites rat lateral vestibular nucle
- Diltiazem augmented pentobarbital-induced LORR
- flash as3 多点触控-缩放-旋转-滑动.zi
- LenovoTinkPad; Marker 5.01
- Fabrication and all-optical poling characteris
- Rtx51_tiny_RTOS中文版.pdf
- porting.RTEMS移植指南.双语.V20131224.pdf
- mybatis连接oracle实例
- adams vibration 练习原文件
- DSP28335程序片内FLASH搬运至RAM运行的
-
开源tinyxm
l - 一个测试报告的模板,有点用
- VESA Computer Display Monitor Timing (DMT)
- 画图程序MFC/VC/VC CRectTracker 串行化
- Tone-Reservation
- flash 倒计时器
评论
共有 条评论