
flash_programming_cpu01.c
1 //#########################################################################
##
2 // FILE: flash_programming_cpu01.c
3 // TITLE: Flash Programming Example for F2837xD.
4 //
5 //! ddtogroup dual_example_list
6 //! <h1> Flash Programming </h1>
7 //!
8 //! This example demonstrates F021 Flash API usage.
9 //
10 //#########################################################################
##
11 // $TI Release: F2837xD Support Library v170 $
12 // $Release Date: Mon Sep 21 16:52:10 CDT 2015 $
13 // $Copyright: Copyright (C) 2013-2015 Texas Instruments Incorporated -
14 // http://www.ti.com/ ALL RIGHTS RESERVED $
15 //#########################################################################
##
16
17 #include "F28x_Project.h" // Device Headerfile and Examples Include
File
18 #include "F2837xD_Ipc_drivers.h"
19
20 #include <string.h>
21
22 //Include Flash API example header file
23 #include "flash_programming_c28.h"
24
25 #define ENTRYADDR 0x88000
26
27 extern void lightflash(void);
28
29 //*************************************************************************
****
30 // FILE Flash API include file
31 //*************************************************************************
****
32 #include "F021_F2837xD_C28x.h"
33
34 //Data/Program Buffer used for testing the flash API functions
35 #define WORDS_IN_FLASH_BUFFER 3608 // Programming data buffer, words
36
37 uint16 Buffer[WORDS_IN_FLASH_BUFFER + 1];
38 uint32 *Buffer32 = (uint32 *)Buffer;
39
40 #pragma DATA_SECTION(pbuffer , "PDATASAVE");
41 uint16 pbuffer[WORDS_IN_FLASH_BUFFER]= {
42 #include "P_DATA.h"
43 };
44
Page 1
- 1
- 2
前往页