FORUM TOPIC · READ ONLY

fuzzy logic

fuzzy logic

Forum : Request for new functions / Peripheral / Chip support

6 message(s) · archive en lecture seule

salemimoh
Dear Lubin,

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 building it. All went good. But when i fired the program into the DSPIC30F6014 and i tried to run it, it stops. I then run it in step by step using animate, it gave me the following error message. Is this due of shortage of program memory or what ? If this is the case, is it due to the number of rules implemented in the fuzzier (25 rules which is about the right number of rules to get good control) which makes the program too long so that it could not be accomodated into the programming memory?

By the way, i tried to run the program in the MPLAB simulator and it did not work either.

So could you please advise.



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
LubinKerhuel

Re: PIC32MX360

Support for PIC 32 device is started.

An example for the PIC32 starter kit is available here : viewtopic.php?f=1&t=138&p=425&hilit=starter#p425



I get stuck on a problem relative to interrupt with the Output Compare peripheral. I ave to get back on that problem.



Lubin
salemimoh

Re: PIC32MX360

Dear Lubbin,

I am trying to develop a simulink simple model using PIC32, but unfortunately i get the following message:

[color=#FF4000]process_begin: CreateProcess(NULL, pic30-gcc -c -mcpu=32MX360F512L -O3 -fschedule-insns -fschedule-insns2 -O -I. -I..\.. -IC:\PROGRA~1\MATLAB\R2007b/simulink/include -IC:\PROGRA~1\MATLAB\R2007b/extern/include -IC:\PROGRA~1\MATLAB\R2007b/rtw/c/src -IC:\PROGRA~1\MATLAB\R2007b/rtw/c/ert -IC:\PROGRA~1\MATLAB\R2007b/rtw/c/src/ext_mode/common -IC:\DOCUME~1\Dell\MYDOCU~1\MATLAB\TEST1_~1\sources -IC:\DOCUME~1\Dell\MYDOCU~1\MATLAB -IC:\PROGRA~1\MATLAB\R2007b\rtw\c\libsrc -I C:\PROGRA~1\MICROC~1\MPLABC~2\include dsPIC_OutputCompare_Interrupt.c, ...) failed.

make (e=2): The system cannot find the file specified.

gmake: *** [dsPIC_OutputCompare_Interrupt.o] Error 2 [/color]

### Real-Time Workshop build procedure for model: 'test1' aborted due to an error.

How can solve this dsPIC_OutputCompare_Interrupt.c, ...) failed. problem.
LubinKerhuel

Re: PIC32MX360

I started the support for PIC32.

It works for simple peripheral (see example for the PIC 32 KIT)



However, I stopped the development process because of problems with interrupt (in particular with Output compare peripheral)

I will re-start the investigation later on...



Lubin
salemimoh

Re: PIC32MX360

that is exactly what the message says