This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F280049-Q1: Illegal instruction trap when running flashapi_ex2_sciKernel.c

Part Number: TMS320F280049-Q1
Other Parts Discussed in Thread: C2000WARE

Dear Champs,

I am asking this for our customer.

The user was trying to build and run flashapi_ex2_sciKernel.c in C:\TI\c2000\C2000Ware_3_04_00_00\driverlib\f28004x\examples\flash in build configuration "BANK0_LDFU".

However, it was stuck in a illegal instruction trap (ITRAP) after programming and running.

Do you know why?

Is there any doc to explain this example?

The user's goal is to have live firmware update with reset like 

https://www.ti.com/lit/ug/spruiu8/spruiu8.pdf?ts=1625589263382&ref_url=https%253A%252F%252Fwww.ti.com%252Fsitesearch%252Fdocs%252Funiversalsearch.tsp%253FlangPref%253Den-US%2526searchTerm%253Dlfu%2526nr%253D27

And the user is trying to reproduce the 6.2 Programming Static Code – Loading via Code Composer StudioTm (CCS) but was stuck at running flashapi_ex2_sciKernel.c.

Would you please help clarify?

Wayne Huang

The user is studying 

  • Hi Wayne,

    There’s no additional doc over and above spruiu8.

    it’s important that they use a target configuration that erases all the sectors when they first program the flash kernel on bank0, and then a target configuration that erases only the necessary sectors when they program the flash kernel on bank1.

    other things to be careful about - use the right build configurations of the flash kernel ie for the particular flash bank.

    On which step in 6.2 did they get stuck?

    Thanks

    Sira