Search found 616 matches

by LubinKerhuel
Sun Nov 28, 2010 10:01 pm
Forum: Advanced Simulink & RTW Questions
Topic: rs232gui and PIC32 starter kit
Replies: 16
Views: 6425

Re: rs232gui and PIC32 starter kit

Hello the data could only be read through com3 as it is specified on your site Could you provide the link ? (I do not remember the whys and wherefores I wrote it) Anyway, you may test first is the dsPIC is sending data to the PC using an hyperterminal. Most recent windows do not have hyperterminal b...
by LubinKerhuel
Fri Nov 26, 2010 8:46 pm
Forum: Version compatibility issues
Topic: SLUGS - an open source autopilot
Replies: 24
Views: 9326

Re: SLUGS - an open source autopilot

Thanks Mariano for the idea, very quick post just to inform that I downloaded the latest version of C30 compiler (3.25) on my windows 32bits system with matlab 2010a and successfully get the model compiling. Perhaps Dan may upload its model on the forum so as I will be able to test it ? Thet may pro...
by LubinKerhuel
Tue Nov 23, 2010 10:41 pm
Forum: Version compatibility issues
Topic: SLUGS - an open source autopilot
Replies: 24
Views: 9326

Re: SLUGS - an open source autopilot

It's getting closer. You can now open the project within MPLAB and play with compilation options (anyway, not sure that would solve the problem) The problem is in the last step : linking all objects and library binary files. Comparing your list of object file being used with mine (in earlier post), ...
by LubinKerhuel
Tue Nov 23, 2010 1:00 pm
Forum: Version compatibility issues
Topic: SLUGS - an open source autopilot
Replies: 24
Views: 9326

Re: SLUGS - an open source autopilot

Hi Dan, I tested again with another configuration : OS: Windows 7 (32-bit) MATLAB: Matlab 2010a (32-bit) mex and mbuild compiler: LCC dsPIC Blockset V3.3a MPLAB C30 Compiler (MPLAB C Compiler for PIC24 MCUs and dsPICs v3.24 LITE Mode) MPLAB IDE v8.60 The first attempt crash (I mean, that MATLAB cras...
by LubinKerhuel
Mon Nov 22, 2010 11:11 pm
Forum: Advanced Simulink & RTW Questions
Topic: rs232gui and PIC32 starter kit
Replies: 16
Views: 6425

Re: rs232gui and PIC32 starter kit

Great that you get it working! My question is : is there a way by which we can trace step by step in the debug mode the C subroutines such as the main subroutine for instance? It's a very long time I have not use the debug trace of MPLAB. Thus, I may not be able to help on that point. The only thing...
by LubinKerhuel
Mon Nov 22, 2010 12:49 am
Forum: Advanced Simulink & RTW Questions
Topic: rs232gui and PIC32 starter kit
Replies: 16
Views: 6425

Re: rs232gui and PIC32 starter kit

Hi,

Did you created by yourself the MPLAB project, or
did you open the project (.mcp file) created by the latest blockset version ?

The latest blockset version (from v3.3) creates the MPLAB project file. Thus, project can be opened within MPLAB and recompiled from there if needed.

Lubin
by LubinKerhuel
Mon Nov 22, 2010 12:25 am
Forum: Version compatibility issues
Topic: SLUGS - an open source autopilot
Replies: 24
Views: 9326

SLUGS - an open source autopilot

The open source SLUG UAV autopilot is being developed at the Autonomous Systems Lab at the University of California Santa Cruz. More information can be found at http://slugsuav.soe.ucsc.edu/ The autopilot can be compiled using the blockset (with a demo version allowing only 8 I/O, 2 I/O should be re...
by LubinKerhuel
Sun Nov 14, 2010 9:58 pm
Forum: General Remark and Questions
Topic: mikroelektronika compiler and development board
Replies: 2
Views: 1592

Re: mikroelektronika compiler and development board

I didn't tested yet the Mikroelektronika IDE.

The blockset may probably be adapted to this compiler and IDE.
I didn't see any demo version on their website.

Lubin
by LubinKerhuel
Wed Nov 10, 2010 8:31 am
Forum: Advanced Simulink & RTW Questions
Topic: rs232gui and PIC32 starter kit
Replies: 16
Views: 6425

Re: rs232gui and PIC32 starter kit

What is the operation that generate this error ? Note that you do not need the MPLAB MATLAB plugin ! first, compile the project with MATLAB. (do not open MATLAB through MPLAB) Then, open MPLAB separately ! In matlab, try to compile the example given in the blockset directory that use a C32 pic. Lubin
by LubinKerhuel
Tue Nov 09, 2010 12:34 am
Forum: Advanced Simulink & RTW Questions
Topic: rs232gui and PIC32 starter kit
Replies: 16
Views: 6425

Re: rs232gui and PIC32 starter kit

Latest blockset version (3.3) create the MPLAB project file properly configured. Give it a try !
by LubinKerhuel
Fri Nov 05, 2010 8:26 pm
Forum: Advanced Simulink & RTW Questions
Topic: rs232gui and PIC32 starter kit
Replies: 16
Views: 6425

Re: rs232gui and PIC32 starter kit

Ok, 1) in MPLAB, select your programmer with the programmer menue. 2) choose the chip you are using 3) import with : file==> import and choose the .hex file you just generated ! then download it, that's it ! Please, keep an eye on the website as the next release of the blockset will probably have ne...
by LubinKerhuel
Thu Nov 04, 2010 2:33 pm
Forum: dsPIC Peripherals
Topic: RS232gui problem...
Replies: 1
Views: 1084

Re: RS232gui problem...

It should works : low % error on the transmission speed. you can check the following points : - Is the dsPIC running at 2.5 MIPS (make a output pin to toggle at a defined freuqency and check that you get this frequency with your scope). - Are you oppening the correct port COM . check with hyper term...
by LubinKerhuel
Mon Nov 01, 2010 2:59 pm
Forum: Advanced Simulink & RTW Questions
Topic: rs232gui and PIC32 starter kit
Replies: 16
Views: 6425

Re: rs232gui and PIC32 starter kit

Matlab/Simulink are used for generating the code and compile it into a .hex file. Once you have this file, use the microchip MPLAB IDE to load the .hex file and to download it into your target through your own hardware (PIC32 starter kit, or ICD2, ICD3, REAL ICE...) You may also use a bootloader. An...
by LubinKerhuel
Mon Oct 11, 2010 10:22 pm
Forum: bug reports
Topic: slow matlab
Replies: 5
Views: 2151

Re: slow matlab

Thanks for the description. This seems not normal, I do not have this behavior (2Ghz ram however, but should not change that much !). Do you have virtual serial port, like bluetooth or so on ? If you cancel (ctrl-c), can you get the script name that slow downs the computer ? (i.e. which is the scrip...
by LubinKerhuel
Thu Oct 07, 2010 12:15 pm
Forum: General Remark and Questions
Topic: PIC32 kit
Replies: 1
Views: 1125

Re: PIC32 kit

Hi, The PIC32 used in this starter kit (32MX795L512) is not yet available in the blockset. Thus, using the blockset for this chip is not possible at the moment. I have to check what are the differences with supported PCI32 and to adapt the blockset consequently. Subscribe to the wiki's release note ...
by LubinKerhuel
Thu Oct 07, 2010 12:07 pm
Forum: bug reports
Topic: slow matlab
Replies: 5
Views: 2151

Re: slow matlab

Simulink takes some times to read the blockset; however, it should not take more than 10 sec.
Could you describe your configuration ?

Lubin
by LubinKerhuel
Tue Sep 28, 2010 4:54 pm
Forum: bug reports
Topic: bug while compiling the PIC24Fj128GA010
Replies: 1
Views: 1642

Re: bug while compiling the PIC24Fj128GA010

Hey François, Thanks for that remark. This error seems to be a file def problem from Microchip described quite a long time ago (see notes on release of blockset 13/02/2008 V0.96b here ). The workaround is to edit the Microchip def file GenericTypeDefs.h usually placed at (win XP 32 bits) : C:\Progra...
by LubinKerhuel
Fri Sep 03, 2010 6:57 pm
Forum: Request for new functions / Peripheral / Chip support
Topic: Support for returning structs from C-Function Call block
Replies: 3
Views: 1330

Re: Support for returning structs from C-Function Call block

This would be for returning values ? (block output) It may be Ok for the block to parse the C file and to extract some informations, but what to do with ? Perhaps, it may be possible to declare a structure. The C function output would be a pointer to this sctucture and the block could pase the file ...
by LubinKerhuel
Tue Aug 31, 2010 9:37 pm
Forum: bug reports
Topic: Error loading example
Replies: 17
Views: 4087

Re: Error loading example

Dear Mike,

Sorry for the 1 month delay.
Did you still have the problem ?

I have no obvious idea right now.
Anyway, could you check that this problem with the latest version (please re-download the blockset that was just updating while you were writting your message (same date)...)

Lubin
by LubinKerhuel
Tue Aug 31, 2010 8:47 pm
Forum: Website
Topic: Wiki Update
Replies: 2
Views: 1130

Re: Wiki Update

Update from mediawiki 1.15.0 to 1.16.0 - Overall better look - improved search box - RSS - removed Export pages as PDF (seems to not work with this mediawiki version !) - Change : FCKeditor replaced by vector skin usability extension check installed mediawiki extensions : http://www.kerhuel.eu/wiki/...
by LubinKerhuel
Sun Aug 15, 2010 9:33 am
Forum: Requirement, Installation & Configuration
Topic: bad installation
Replies: 1
Views: 1275

Re: bad installation

Hey Jirobai, The blockset install itself at the place where you launch it. The installer then add 3 directory into the matlab path. Thus, Copy first the installer to the place you want to install the blockset. Then, launch it from there. Note that installing the blockset within the matlab (sub)-fold...
by LubinKerhuel
Mon Jul 26, 2010 10:01 am
Forum: bug reports
Topic: Error loading example
Replies: 17
Views: 4087

Re: Error loading example

I uploaded on the website new version (3.2c) of the blockset. Could you test with this last version and report if you still get the problem ?
Thanks
Lubin
by LubinKerhuel
Wed Jul 21, 2010 8:39 pm
Forum: bug reports
Topic: Error loading example
Replies: 17
Views: 4087

Re: Error loading example

it seems to be only warning that are cause by the fact that example were created with an order blockset version. You just have to not pay attention to them. They should not appears once you'll save the model with your current blockset version. as soon as you do not get an error (not a warning) , you...
by LubinKerhuel
Wed Jul 21, 2010 12:31 pm
Forum: General Remark and Questions
Topic: I2C on PIC32
Replies: 6
Views: 2164

Re: I2C on PIC32

but its not read any values from the input signal thus, there should be a problem. Could you check at generated C code if you can identify the problem ? otherwise, post your simulink model on the forum, i'll could try to have a look. Can I send a single 16 bit data to dsPIC Controller through GUI I...
by LubinKerhuel
Wed Jul 21, 2010 12:08 am
Forum: General Remark and Questions
Topic: I2C on PIC32
Replies: 6
Views: 2164

Re: problem with IC7&IC8

Hi Lubin I want to read freq by using Input Capture. Can I use IC7 Capture in demo version?. it should be Ok if the microcontroller has an IC7 pin. If it does not work, it's a bug, please report ! time delay of serial port rs232 data transmission? could you define what is time delay ? The rs232gui ...
by LubinKerhuel
Wed Jun 30, 2010 8:44 am
Forum: General Remark and Questions
Topic: Using Output Compare
Replies: 1
Views: 1442

Re: Using Output Compare

Hello Jared First off, it seems like OC1max is a constant that is relevant to the chip. Is there a way I inherit it from the chip, because just making a constant block called [OC1max] does not work. OC1max is relevant to the internal chip frequency (typically depending on quartz and PLL used). the d...
by LubinKerhuel
Tue Jun 29, 2010 12:11 pm
Forum: Requirement, Installation & Configuration
Topic: Not able to install dspic toolbox... Errors
Replies: 8
Views: 3293

Re: Not able to install dspic toolbox... Errors

Hey,

Could you post the entire error message you get (the one within matlab comand windows) ?

Lubin
by LubinKerhuel
Sun Jun 27, 2010 11:42 pm
Forum: General Remark and Questions
Topic: Trying a simple model
Replies: 1
Views: 1066

Re: Trying a simple model

Hey,

You model is not far from working.
I think that the problem is the oscillator mode that seems not correct.
Do you use a quartz. If so, Oscillator mode should be something like XT, XT with Pll or HS. See 30f4011 doc to get further information about oscillator.

Lubin
by LubinKerhuel
Thu Jun 10, 2010 12:50 pm
Forum: General Remark and Questions
Topic: Error when compiling
Replies: 3
Views: 2650

Re: Error when compiling

Hi Ellis,

The error message may be incorrect.
Could you try to re-install both compiler C30 and C32 downloaded from the microchip website ?
Let me know if it changes anything

Lubin
by LubinKerhuel
Tue Jun 08, 2010 6:51 pm
Forum: Requirement, Installation & Configuration
Topic: 'CompileAllModels' Error
Replies: 4
Views: 1936

Re: 'CompileAllModels' Error

Anyway, thanks for reporting it !

Lubin
by LubinKerhuel
Thu May 13, 2010 12:23 pm
Forum: Requirement, Installation & Configuration
Topic: genMakefileAndBuild
Replies: 12
Views: 5900

Re: genMakefileAndBuild

Hello,

I could not reproduce that bug.
Thus, it may be your version of the C30 compiler. Which version are you using ? Could you update it with the latest version from the microchip website ?
by LubinKerhuel
Wed May 12, 2010 8:54 pm
Forum: Requirement, Installation & Configuration
Topic: genMakefileAndBuild
Replies: 12
Views: 5900

Re: genMakefileAndBuild

Hi, C30 Compiler found file not found : C:\PROGRA~2\MICROC~1\MPLABC~2\lib\dsPIC30F\libp30f4011-coff.a --> corrected : find in C:\PROGRA~2\MICROC~1\MPLABC~2\lib\libp30f4011-coff.a Model configured... Current version (V3.2b) has a problem here : the path is not updated properly and the error comes bac...
by LubinKerhuel
Wed May 12, 2010 12:33 am
Forum: Requirement, Installation & Configuration
Topic: genMakefileAndBuild
Replies: 12
Views: 5900

Re: genMakefileAndBuild

Hi, try to place the yellow block 'configuration of the model' from the dsPIC library on your model and dbl click on it. It may solve few problems. (anyway, this block will be improved in the next blockset version, not published yet) If problem is not solved, Check all your path. Copy-past repertory...
by LubinKerhuel
Sun May 09, 2010 9:50 am
Forum: bug reports
Topic: ICS configured incorrectly
Replies: 12
Views: 3888

Re: ICS configured incorrectly

Another difference between compilation within MPLAB and MATLAB is pointed out on this post : (not in the correct topic, I'll try to move it)

viewtopic.php?f=5&t=11&p=1139&hilit=ECAN#p1162
by LubinKerhuel
Thu May 06, 2010 7:34 am
Forum: bug reports
Topic: ICS configured incorrectly
Replies: 12
Views: 3888

Re: ICS configured incorrectly

Hello Bryant, I didn't make it clear enough: MB (for Master Block) JTAG and MB ICD in the new blockset version are replaced by the parameters options taken from dsPIC Master Block (simulink). If you look at generated code, you will see it. In previous blockset version, it was not possible to precise...
by LubinKerhuel
Wed May 05, 2010 6:04 pm
Forum: bug reports
Topic: ICS configured incorrectly
Replies: 12
Views: 3888

Re: ICS configured incorrectly

Hi Bryant, Can I obtain the functionality from the last blockset version in this one? I am not sure to get it. if you want to test, I can override theses new options inside C code with their default value, to get similar C code from old blockset. did you mean this ? or do you prefere to revert to ol...
by LubinKerhuel
Wed May 05, 2010 12:23 am
Forum: bug reports
Topic: ICS configured incorrectly
Replies: 12
Views: 3888

Re: ICS configured incorrectly

it depends on the chip used : MB stand for Master block options... pic30 : _FICD( MB ICD ) line did not exist in earlier code pic33: _FICD( JTAGEN_OFF ) replace in code by _FICD( MB JTAG & MB ICD ) pic24f: _CONFIG1( JTAGEN_OFF & GCP_OFF & GWRP_OFF & COE_OFF & FWDTEN_OFF & ICS...
by LubinKerhuel
Tue May 04, 2010 11:26 pm
Forum: Requirement, Installation & Configuration
Topic: bad link
Replies: 7
Views: 3203

Re: bad link

Thanks Jon for this comparison

resodad wrote:Allows direct timer configuration (Microchip blockset)

I developed the master block help page. It is possible to force prescaler value of some timers (except for timer1). It may help...

Lubin
by LubinKerhuel
Tue May 04, 2010 11:14 pm
Forum: bug reports
Topic: ICS configured incorrectly
Replies: 12
Views: 3888

Re: ICS configured incorrectly

Hi Bryant, A new field was added in the master block about In Circuit debugging : ICD communication channel. Default is set to none and this "default" value cause this error. Could you set it to another value than none ? typically, ICS_PGD1 would be fine. let me know if you still have the ...
by LubinKerhuel
Tue May 04, 2010 7:21 am
Forum: Requirement, Installation & Configuration
Topic: bad link
Replies: 7
Views: 3203

Re: bad link

Model is well configured to works with microchip blockset. I do not have microchim blockset installed on my system, thus blocks appears as breaked link. Does this code works ? No Idea why it generates including my name. I previously noticed microchip takine inspiration from my code (same variable na...
by LubinKerhuel
Fri Apr 30, 2010 7:19 pm
Forum: dsPIC Peripherals
Topic: SPI EEPROM Record and Playback on Explorer 16
Replies: 17
Views: 6638

Re: SPI EEPROM Record and Playback on Explorer 16

Hi Jon, Thierry Jon, good to see EEPROM read-write working on Explorer 16. I may place a link to this demo from one of the wiki page if you're Ok (for example on the example page ) Thierry, With simulink, you can handle conversion 8 to 16 bits using shift blocks and lobgical operator. Even if it is ...
by LubinKerhuel
Fri Apr 30, 2010 9:53 am
Forum: bug reports
Topic: OC and Matlab2010a
Replies: 2
Views: 1334

Re: OC and Matlab2010a

:arrow: This is the way it is supposed to works. Nothing get lost while activating idle mode. However, developing without idle mode is advise, and then test should be done with power save mode (idle activated) activated. A specific peripheral (its name is Low Voltage Detection (LVD)) but it is not i...
by LubinKerhuel
Wed Apr 28, 2010 10:57 pm
Forum: General Remark and Questions
Topic: Wikipedia-like user manual proposal
Replies: 1
Views: 1011

Re: Wikipedia-like user manual proposal

Dear Chen, I completely agree with you ;-) And someone acts as the editor-in-chief to review the modification In the wiki pages, the editor-in-chief do not need to review modifications as they appears as soon as they are done. Is there something you would like me to change on way the wiki is current...
by LubinKerhuel
Wed Apr 28, 2010 10:53 pm
Forum: dsPIC Peripherals
Topic: SPI EEPROM Record and Playback on Explorer 16
Replies: 17
Views: 6638

Re: SPI EEPROM Record and Playback on Explorer 16

Lubin what the utility to disable the SDO ? Well, if you don't use it ? Isn't there some chip that are not waiting anything before sending data (thus receive on SDI) ? Perhaps to read data on a bus ? Anyway, this option is present on microchip microcontrôller, I just give acces to it on the blockse...
by LubinKerhuel
Wed Apr 28, 2010 8:28 am
Forum: Requirement, Installation & Configuration
Topic: Install on one computer two version in same time ?
Replies: 1
Views: 1395

Re: Install on one computer two version in same time ?

Hello Thierry, It is possible to have two matlab version installed on the same computer. However, with Windows 7 64 bits, too old matlab version do non install properly (below 2007a as far as I remember) Anyway, you can install 64 and 32 bits matlab. You’ll just need to re-create matlab starting sho...
by LubinKerhuel
Tue Apr 27, 2010 9:33 am
Forum: Advanced Simulink & RTW Questions
Topic: sparkfun - UAV v2 Development Platform - dspic30f4011
Replies: 5
Views: 2216

Re: sparkfun - UAV v2 Development Platform - dspic30f4011

Good to see it working.

You will be able to focus on the interresting part now (that's one of the reason why I created that blockset, when I discovered I spent more time on programming problem than math problems...)
The wiki is open for you if you wish to publish results in a pretty way.

Lubin
by LubinKerhuel
Tue Apr 27, 2010 8:47 am
Forum: Requirement, Installation & Configuration
Topic: Not able to install dspic toolbox... Errors
Replies: 8
Views: 3293

Re: Not able to install dspic toolbox... Errors

Hello,

I did not post the message, But problem has been solved, please give a try with the latest version (3.2b) : http://www.kerhuel.eu/wiki/Release_Notes
by LubinKerhuel
Mon Apr 26, 2010 6:11 pm
Forum: Advanced Simulink & RTW Questions
Topic: sparkfun - UAV v2 Development Platform - dspic30f4011
Replies: 5
Views: 2216

Re: dspic30f4011

Hello, I noticed few things. Please try the following modification : First of all, change OC1max variable (used for normalizing signals) : For OC (HW) block, you must use OCmax variable (is set to 9999 in matlab workspace) For PWM motor block, you must use PWM (is set to 40000 in matlab workspace) I...
by LubinKerhuel
Mon Apr 26, 2010 1:56 am
Forum: dsPIC Peripherals
Topic: SPI EEPROM Record and Playback on Explorer 16
Replies: 17
Views: 6638

Re: SPI EEPROM Record and Playback

Hi John, 1. Can I use eeprom in this way to record a list of numbers and then go back to the beginning of the list and read them back? Should be Ok. 2)3)4) You can't have two interrupt driven SPI blocks, except perhaps very special case (here is not the case). Even it ir was working, this would not ...
by LubinKerhuel
Mon Apr 26, 2010 1:34 am
Forum: General Remark and Questions
Topic: GUI in Matlab2010a with virtual Com port problem
Replies: 7
Views: 5047

Re: GUI in Matlab2010a with virtual Com port problem

I uploaded my "old" labview schema on the wiki : bottom of page : http://www.kerhuel.eu/wiki/Block/Tx_Output_Multiplexed_For_Matlab-Labview Tell me if you can't open it. I did it using an old labview (like 6 or 6.5). Old labview models are sometimes difficult to convert to newer labview ve...

Go to advanced search