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.
Pic32-gcc v1.04 bugfix
Revision as of 15:49, 14 July 2009 by LubinKerhuel (talk | contribs)
Bug reported on the Microchip .h definition file.
- In the file int.h localised in \MPLAB C32\pic32mx\include\peripheral\int.h,
- Lines (411, 424, 437, 450, 463) replace
INTCONbits by INT0CONbits
- Line 705, replace
#define mOC1SetIntPriority(priority) (IPC1CLR = _IPC1_OC1IP_POSITION, IPC1SET = ((priority) << _IPC1_OC1IP_MASK))
by
#define mOC1SetIntPriority(priority) (IPC1CLR = _IPC1_OC1IP_MASK, IPC1SET = ((priority) << _IPC1_OC1IP_POSITION))
- Line 746, replace
#define mOC4SetIntSubPriority(subPriority) (IPC4CLR = _IPC4_OC4IS_MASK, IPC4SET = ((subPriority) << v))
by
#define mOC4SetIntSubPriority(subPriority) (IPC4CLR = _IPC4_OC4IS_MASK, IPC4SET = ((subPriority) << _IPC4_OCIS_POSITION))
Thanks to Jiri Sehnal from Humusoft for identifying theses bugs.