hi,
I want to use data flash to store variables, I did test erase using SW int wrapper from examples:
erase_dflash_segment_no_delay(0);
it works fine, before erase the segment was filled with 0xAA, after 0xFF (checked with pmbus debug -> memory dump)
then after few seconds of wait I try to write some test data using:
write_data_flash_word(0x18800,0x1);
but after executing it the cpu goes to rom, I assume due to reset. After commanding it to execute pflash, the data flash memory is still 0xFF - no write did occure
I did try to add: disable_fast_interrupt(), disable_interrupt() and set_supervisor_mode() before the write, but without any success... same goes with write_data_flash_block()
I upload FW thru pmbus with option: skip data flash ticked.
have you got any idea what is going wrong?
small update:
write_data_flash_word(0x18800,0x1); in lab1 example in ccs10.3 (which I'm using) resets cpu
I did install lab examples to new folder and opened lab1 in ccs 6.2 and add write_data_flash_word(0x18800,0x1) to main and it works as intended so it looks like the problem is with ccs, I use ti compiles TI5.2.9 in both ccs