Other Parts Discussed in Thread: C2000WARE
I run FapiSetActiveFlashBank(0) .It goes to Fapi_setupFlashStateMachine(): and crashes there on illegal instruction.
The crash address is displayed wrong at the CCS debug window (0x88633). The actual crash happens at other address as 0x84e7e

The instruction at the crash is (taken from the stack inside illegal instruction handler) MOVB ACC, #64 as seen in the disassembly below, and verified by placing a breakpoint at that address and one instruction below.
Hints:
- Circuit connected just to PS, PS is ok, no noise source. DSP runs otherwise ok
- Other than this report there is no problem in the DSP or its SW
- Debug is XDS100V3. Same behavior repeated with XDS110 and also seemingly when running from flash with no JTAG connection.
- Problem repeated with several DSP boards.
- When excluding that address in the .cmd file, the linker had to locate this routine elsewhere in the flash. The problem remained, at the same assembly line (in another physical address).
- Memory browsing revels the assembly instruction 0x240 = MOVB ACC, #64 just in place
- All my operational interrupt handlers are blocked while this routine runs. Blocking the interrupts few lines before (set INTM in ST1 directly in the IDE) does not change anything
- When stepping the debugger single assembly steps, the MOVB ACC, #64 performs ok (observing ACC in Registers dialog) and after stepping the instruction DSP continues to run normally.
$C$L22:
084e69: 96EA MOV *+XAR2[5], AL
084e6a: 761F027F MOVW DP, #0x27f
084e6c: 0232 MOVB ACC, #50
084e6d: 073A ADDL ACC, @0x3a
084e6e: 8AA9 MOVL XAR4, @ACC
084e6f: 28C4AA55 MOV *+XAR4[0], #0xaa55
084e71: CC50FF00 AND AL, *-SP[16], #0xff00
084e73: FFC7 LSR AL, 8
084e74: 88A9 MOVZ AR6, @AL
084e75: 0240 MOVB ACC, #64
084e76: 073A ADDL ACC, @0x3a
084e77: 8AA9 MOVL XAR4, @ACC
084e78: CCA6000F AND AL, @AR6, #0xf
084e7a: 88A9 MOVZ AR6, @AL
084e7b: CDC4FFF0 AND AH, *+XAR4[0], #0xfff0
084e7d: 99A6 OR @AR6, AH
084e7e: 0240 MOVB ACC, #64
084e7f: 073A ADDL ACC, @0x3a
