Tool/software: Code Composer Studio
Hello,
When i write to the flash of the microcontroller via visual basic then my program code got hang and a file is open indicating no source available for 0x3ff5f5. In debugging mode variable's value change during the change of visual basic's scrollbar but during write operation of this value to flash program's code got hang and a .C file generate indicating no source available for 0x3ff5f5 . I also check via using software breakpoint then i found that software goes to this line Status = Flash_Erase(SECTORB,&FlashStatus); and but unable to pass that do while loop.
************************************* Main.C ************************************
Uint16 Status;
FLASH_ST FlashStatus;
do
{
Status = Flash_Erase(SECTORB,&FlashStatus);
}
while (Status != 0);
**************************** Flash2802x_API_Library.h ***************************
#define Flash_Erase(a,b) Flash2802x_Erase(a,b)
extern Uint16 Flash_Erase(Uint16 SectorMask, FLASH_ST *FEraseStat);
#define SECTORB (Uint16)0x0002
typedef struct {
Uint32 FirstFailAddr;
Uint16 ExpectedData;
Uint16 ActualData;
}FLASH_ST;
So, provide me the solution of this issue or how i save a value to microcontroller's flash via visual basic. I use this link for flash operation - www.ti.com/.../sprb169.pdf.