Part Number: LAUNCHXL-F28069M
Tool/software: Code Composer Studio
Hi, I have Issue with the following imported code.
C:\ti\c2000\C2000Ware_3_03_00_00\device_support\f2806x\examples\c28\f28069_can_flash_kernel
I'm using
Code Composer Studio
Version: 8.2.0.00007
The flash API function for flashing flash gives me status code 12
Shared_boot.c Line: 208
status = Flash_Program((Uint16 *) BlockHeader.DestAddr,
(Uint16 *)progBuf, BlockHeader.BlockSize, &FlashStatus);
What I'm doing is running debugger and then sending a stream. I can see the code waiting for the bytes arriving on the can and then I have breakpoint triggered on one of the status values.
I have tracked the meaning of the status code to the documentation. Here:
file:///C:/ti/c2000/C2000Ware_3_03_00_00/libraries/flash_api/f2806x/docs/Flash2806x_API_Quickstart.pdf
This might mean example code has problem with memory allocation. I might be wrong It could be a red herring.
I had some prior issues with the example code
htt ps://e2e.ti.com/support/tools/ccs/f/81/p/953837/3525807#3525807
where there was bug when importing project and I also posted about some sections warnings. It could be a red herring.
While the flashing function does not work in the debugger or through CAN stream.
I was able to make the erasing function work in debugger or through CAN stream by commenting out Flash Program block section. I have also modified arguments to the function for additional sectors erasure.
status = Flash_Erase((SECTORA | SECTORB | SECTORC | SECTORD|SECTORE|SECTORF|SECTORH),
&FlashStatus);
I confirmed the erasure with the memory browser at 0x3D8000.