Hi :
I am working on a program to do on-field firmware upgrading for my F28335. I encounter some trouble when it comes to erase SECTORA. My firmware program is contained in SECTORD and SECTORA so in order to update it I have to erase both sectors first. I use a Intel hex file as input and I have built the protocol to decode it.
Here is the steps I follow :
- Host computer triggers DSP firmware upgrade mode via SCI -- works
- DSP copies Flash_API to SARAM (L3) and couple SCI functions as well to SARAM (L3) -- works
- Host Computer sends the command to erase SECTORA~H -- doesn't work ; but it works if I erase B~H
- Based on my Intel Hex file, the Host Computer sends the command to download firmware in SECTORD first (it works if I erase B~H) and then SECTORA -- fail in any case : the API returns status 31 STATUS_FAIL_ZERO_BIT_ERROR, which makes sense since I have not been able to erase it earlier.
So my question is what are the requirements I have to follow if I want to erase SECTORA ?
I have look on the forum but could find the answer to my problem. Any suggestions/ ideas is welcome.
Thank you.
EDIT :
One additional data : I am monitoring the code with CCS and xds100v2 as jtag emulator.
Also here is my command for the hex generation :
"${CG_TOOL_HEX}" -i "${BuildArtifactFileName}" -o "${BuildArtifactFileBaseName}.hex" -order MS -romwidth 16 -fill 0xffff