Part Number: TMS320F28335
Other Parts Discussed in Thread: CONTROLSUITE
Dear Team,
Happy new year!
We'd been working on SCI boot on F28335 and use the f28335_flash_kernel as a reference. But we failed if we use the SCI bootloader to send f28335_flash_kernel.bin file. Details a below. Due we've been debugging for sometime and still exists, need your expertise to help resolve. Thanks!
(C:\ti\controlSUITE\device_support\f2833x\v142\DSP2833x_examples_ccsv5\f28335_flash_kernel)
1. We compiled the project and generate .bin file;
2. Without connect the debugger, we select SCI boot and use UART to send the bin firmware to F28335;
3. During f28335_flash_kernel execution, the Flash_Erase() in CopyData() function failed. Error code 0x18;
4. Please note, if we use CCS download the firmware through debugger and execution fine. Without powercycle, we enter SCI boot mode, it will work!
5. If we use C2PROG, we can download successful. Which proves our hardware is OK?
We've searched all e2e suggestions (as below) and tried, but issue still exists.
--- Suggestions we got from e2e and deyisupport ---
When Flash API return status = 24, it means "STATUS_FAIL_PRECOMPACT"
STATUS_FAIL_PRECOMPACT:-
Erase operation failed because the pre- compaction portion failed. The pre-compaction is applied to all sectors on the device. The FLASH_ST structure will return a fail address corresponding to the first sector fails this step.
processors.wiki.ti.com/.../FAQs
There is no guarantee that we can recover the flash from this problem. But, you can try depletion recovery algorithm to see if it resolves the problem. But, if depletion recovery fails, you just have the only option of replacing the part.
建议尝试depletion recovery, 另外这上面提到的Wiki如下:
http://processors.wiki.ti.com/index.php/C2000_Flash_Common_Issues/FAQs#Depletion
--- Suggestions we got from e2e and deyisupport ---
