fuzzy logic

salemimoh
Posts: 23
Joined: Tue Apr 08, 2008 1:01 pm

fuzzy logic

Postby salemimoh » Mon Sep 15, 2008 9:16 am

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
Last edited by salemimoh on Mon Jan 05, 2009 9:47 pm, edited 1 time in total.

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Marseille - France
Contact:

Re: PIC32MX360

Postby LubinKerhuel » Mon Sep 15, 2008 6:27 pm

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
Posts: 23
Joined: Tue Apr 08, 2008 1:01 pm

Re: PIC32MX360

Postby salemimoh » Fri Oct 10, 2008 8:57 am

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
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Marseille - France
Contact:

Re: PIC32MX360

Postby LubinKerhuel » Mon Oct 13, 2008 7:43 pm

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
Posts: 23
Joined: Tue Apr 08, 2008 1:01 pm

Re: PIC32MX360

Postby salemimoh » Wed Oct 15, 2008 9:54 pm

that is exactly what the message says

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Marseille - France
Contact:

Re: PIC32MX360

Postby LubinKerhuel » Wed Oct 15, 2008 9:57 pm



Return to “Request for new functions / Peripheral / Chip support”

Who is online

Users browsing this forum: No registered users and 2 guests