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.

ILLEGAL ISR, running from flash

Other Parts Discussed in Thread: TMS320F28335

I am using the TMS320F28335 Delfino Experimental kit. I am facing few
problems running the code from the flash. 

In my code for the 3-phase system, I have multiple arrays,  I have
combined the RAM sections to accommodate them. I have also increased
the stack size to 0x380.

RAML4L6 : origin = 0x00C000, length = 0x003000

I required to add 5 more array each of size 200 but faced the following problem.

Code running from RAM, less array, code work fine.

Code running from Flash, less arrays, code works fine

Code running from RAM, more arrays, "Program will not fit into memory"

Code running from Flash, more arrays, ILLEGAL ISR.


After step wise execution, it was observed that when the control exits a function with a float32 calculation, it goes into ITRAP0 and then into ILLEGAL ISR.

I commented that float32 function then the code executes fine until it encounters another float32 calculation. I have concluded that the problem has something to do with memory as the code works fine with less arrays with the same float32 functions.

In the project setting the fpu32 support is also added.

I have later used only "float" instead of "float32", still I am having the same problem.

Find attached the .cmd file (renamed to .txt) used for memory mapping.

Any help will be appreciated.

Thank you for you time.

 

Best Regards,

Pankaj Kadam

 

3438.F28335.txt
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
//###########################################################################
//
// FILE: F28335.cmd
//
// TITLE: Linker Command File For F28335 Device
//
//###########################################################################
// $TI Release: 2833x/2823x Header Files and Peripheral Examples V133 $
// $Release Date: June 8, 2012 $
//###########################################################################
*/
/* ======================================================
// For Code Composer Studio V2.2 and later
// ---------------------------------------
// In addition to this memory linker command file,
// add the header linker command file directly to the project.
// The header linker command file is required to link the
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX