Blocks described on this wiki are deprecated since 2012.

Use the free MPLAB Device Blocks for Simulink, as replacement by Microchip Technology.
A new website with custom projects based on this new tool is at

Pic30-gcc v3.12 bugfix

From - Simulink device driver Blockset for dsPIC / PIC24 / PIC32 Microcontrollers --[[User:LubinKerhuel|LubinKerhuel]] 12:40, 3 September 2009 (UTC)
Revision as of 23:04, 27 February 2011 by LubinKerhuel (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Problem in definition file for chip with 2 PWM motor peripheral. Affect all pic30-gcc version from 3.11 to current version (3.25)

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

Workaround :

  • in file pwm12.h, line 511 (C:\Program Files\Microchip\MPLAB C30\support\peripheral_30F_24H_33F\pwm12.h) replace :


#ifdef _PWM2IF