I have tried to simulate a controller of the speed of a motor using fuzzy logic. After developing the model in MATLAB and transfer it to MPLAB V8.15a and build it. All went ok. But when i fired the program into the DSPIC30F6014 and tried to run it using microchip ICD2, it starts to run but it hangs up. I then tried to run it in step by step mode using animate, it gave me the following error message. Is this due a shortage of program memory or what ? If this is the case, is it due to the number of rules implemented in the fuzzier where i am implementing 25 rules of the form (if rule1 and rule2 then decision) which makes the program too long so that it could not be accomodated into the programming memory?
But if this is the case, i suppose the program could not be downloaded into the DSPIC because an overflow will take place.
By the way, i tried to run the program in the MPLAB simulator and it did not work either.
So could you please advise.
Here are the error messages
Code: Select all
CORE-E0011: Trap due to unimplemented RAM or PSV memory access, occurred from instruction at 0x000688
CORE-E0001: Trap due to stack error, occurred from instruction at 0x000688
CORE-E0003: Trap due to unimplemented RAM memory access, occurred from instruction at 0x000688
CORE-E0003: Trap due to unimplemented RAM memory access, occurred from instruction at 0x000688
CORE-E0003: Trap due to unimplemented RAM memory access, occurred from instruction at 0x000688
CORE-W0008: Software Reset Instruction called at PC=0x002f16