I am investigating how to write to FlashROM from Firmware with TM4C1294KCPDT.
Is it possible to write arbitrary data to a specific address using the "TivaWare Peripheral Driver Library" by simply calling ROM_FlashProgram() without needing to lock the CPU or manipulate registers?
--------------------------------------------------
Example:
ROM area
0x00000000 - 0x0007FFFF
Program area
0x00000208 - 0x000298f9
Write destination ROM address
0x00040000
#include "rom.h"
UB data[] = { 0x31, 0x32, 0x33, 0x34 };
ROM_FlashProgram(data, 0x00040000, sizeof(data));
--------------------------------------------------
Also, referring to the TM4C1294KCPDT data sheet, I tried to perform the following FlashROM initialization processing at the beginning of the current Firmware.Is this necessary?
MEMTIM0 |= (0x06 << 6) | // Flash Bank Clock High Time 3.5 system clock periods
(0x00 << 5) | // Flash Bank Clock Edge rising
(0x05 << 0); // Flash Wait State 5 wait states
RSCLKCFG |= 0x80000000; // MEMTIM0 update
BOOTCFG |= 0x00000010; //
Thank you very much.

