2.运行demo
STM32Cube_FW_L0_V1.1.0\Projects\STM32L053R8-Nucleo\Examples\FLASH
3.注意打开 main.c 需要用到的宏定义
/* Uncomment this line to program the Flash pages*/
#define FLASH_PAGE_PROGRAM
/* Uncomment this line to Enable Write Protection */
/* #define WRITE_PROTECTION_ENABLE */
/* Uncomment this line to Disable Write Protection */
/* #define WRITE_PROTECTION_DISABLE */
4.用 st_link utility 查看结果。