3 实验及代码分析
3.1 读写Flash-写数据到安全的Flash区域,然后用Debugger观察写入情况
3.1.1导入项目
3.1.2 编辑源文件
打开main.c,编写代码如下
#include <stdint.h>
#include <stdbool.h>
#include <assert.h>
#include "inc/hw_types.h"
#include "inc/hw_memmap.h"
#include "driverlib/sysctl.h"
#include "driverlib/pin_map.h"
#include "driverlib/debug.h"
#include "driverlib/gpio.h"
#include "driverlib/flash.h" // 1) Flash操作函数声明
#include "driverlib/eeprom.h"
//MEMORY CONFIGURATION
//
// name origin length used unused attr fill
//---------------------- -------- --------- -------- -------- ---- --------
// FLASH 00000000 0