Texas Instruments TMS320C6000 manual FLASHread, Reads data from Flash address

Page 45

FLASH_read

FLASH_read

Reads data from FLASH address

Function

 

void FLASH_read(

 

 

Uint32 locator,

 

 

Uint32

dst,

 

 

Uint32

length

 

);

 

Arguments

locator

Addressing and page information for location in Flash

 

 

memory.

 

 

C6711 DSK

 

 

- FLASH_START_ADDR

 

 

- FLASH_PAGE_ADDR(x) :(x)– page number

 

 

- 32-bit FLASH address

 

dst

Destination address

 

length

Length in bytes of data to be read. This is limited by the

 

 

size of the Flash memory.

Return Value

none

 

Description

Reads data from the FLASH address (locator) and copies it to a

 

destination address (dst). This function is limited only by the length of the

 

FLASH memory.

 

 

Note: This function does not affect unspecified segments of Flash. For

 

example, altering the lower half of a page of Flash memory does not

 

change the value of the upper half page.

 

C6711 DSK

 

 

- locator contains 32-bit address of Flash location

 

-FLASH_START_ADDR is 0x9000000

 

- Flash address range: 0x90000000 to 0x90020000

 

- FLASH_PAGE_SIZE = 0x80: 128 bytes

 

- Page number range: 0 to 1023

 

-FLASH_PAGE_ADDR(x) = FLASH_START_ADDR +

 

x*FLASH_PAGE_SIZE )

Example

To read from pages 0 and 1 to readBuffer:

 

char readBuffer[FLASH_PAGE_SIZE*2];

FLASH_read(FLASH_PAGE_ADDR(0), (Uint32)readBuffer, FLASH_PAGE_SIZE * 2);

FLASH API Module

6-5

Image 45
Contents TMS320C6000 DSK Board Support Library API User’s Guide Important Notice About This Manual Read This FirstNotational Conventions How to Use This Manual Contents DIP API Module Tables BSL Overview How The BSL Benefits You BSL IntroductionBSL API Modules BSL Modules and Include FilesBSL API Module Support BSL Support Library Name and Symbol Conventions Using BSL HandlesBSL API Module Support for 6711 DSK User’s Program Setting BSL Project SettingsCompiler Options Linker OptionsAD535 API Module AD535 API Summary AD535 API Module DescriptionAD535 API Module AD535Config AD535ConfigAD535 API Reference AD535closeSets up AD535 using configuration structure Sets the Free bit of an McBSP serial port toAD553freeMcbsp AD553freeMcbsp Returns McBSP Handle AD535IdAllocates codec channel Codec of C6711DSK use the predfined pointer AD535IdAD535inGain AD535inGainSets AD535’s input gain AD535micGainAD535modifyReg Modifies specified control register AD535modifyRegAD535open AD535openOpens codec channel AD535powerDown Enables AD535’s power-down mode AD535outGainSets AD535’s output gain AD535read AD535readAD535readHwi AD535readRegAD535readReg AD535reset AD535resetAD535write AD535writeHwi AD535writeRegWrites value to specified control register AD535writeRegAD535writeReg Board API Module Board API Summary Board API Module DescriptionBoardsupport Compile time constant Board API ReferenceBOARDwriteReg BSL API Module BSL API Function BSL API Module DescriptionBSL API Reference BSLinitBSLinit DIP API Module DIP API Summary DIP API Module DescriptionDIP API Reference Returns current value of specified DIP switchDIPget Compile time constantFlash API Module Flash API Summary Flash API Module DescriptionFlash API Reference FLASHchecksumFLASHchecksum Returns checksum of specified Flash data FLASHerase Erases specified segment of Flash memory FLASHeraseFLASHread FLASHreadReads data from Flash address Flashsupport Compile time constant FLASHwriteWrites data to Flash address To write from writeBuffer to pages 1 FLASHwriteLED API Module LED API Summary LED API Module DescriptionLEDon LED API ReferenceLEDoff LEDonToggles specified LED LEDtoggleGlossary Board The BOARD-specific API Module CSL See chip support library DIP The DIP Switches API Module Flash The Flash ROM API Module IRQ Interrupt request see IRQ module ∝ -law companding See compress and expand compand Rtos Real-time operating system Glossary A-9 Dipsupport IndexLedsupport