Blockset described on this wiki is deprecated since 2012.

For Model Based Design (MBD), use the free MPLAB Device Blocks for Simulink, tool from Microchip.
Updated Rapid Control Prototyping (RCP) custom projects are published at: https://lubin.kerhuel.eu.

Difference between revisions of "Pic30-gcc v3.12 bugfix"

From http://www.kerhuel.eu/wiki - Simulink device driver Blockset for dsPIC / PIC24 / PIC32 Microcontrollers --[[User:LubinKerhuel|LubinKerhuel]] 12:40, 3 September 2009 (UTC)
Jump to navigation Jump to search
m
Line 1: Line 1:
Problem in definition file for chip with 2 PWM motor peripheral :
+
Problem in definition file for chip with 2 PWM motor peripheral.
 +
 
 +
Check PIC30 gcc version : type '''!pic30-gcc -v''' at the matlab prompt.
  
 
Workaround :  
 
Workaround :  
Line 9: Line 11:
 
  #endif
 
  #endif
 
  #ifdef _PWM2IF
 
  #ifdef _PWM2IF
 +
 +
 +
  
 
[[Category:Compiler_BugFix]]
 
[[Category:Compiler_BugFix]]

Revision as of 23:07, 10 November 2009

Problem in definition file for chip with 2 PWM motor peripheral.

Check PIC30 gcc version : type !pic30-gcc -v at the matlab prompt.

Workaround :

  • in file pwm12.h, line 511 replace
#else

by

#endif
#ifdef _PWM2IF