avr32-gcc toolchain for 64bit linux (Mithrandir)
Hi, I can't seem to find a proper forum where to post this question so I will put it here. The link to the avr32-gcc toolchain for 64 bit linux yields a 404 error on the microchip website. After hours...
View ArticleXC32 v3.00 - Major update to be posted soon (JasonK)
Hi everyone – We will soon be posting the MPLAB XC32 v3.00 C/C++ compiler to the microchip.com website. This release is substantial with a lot of significant changes. This includes an upgrade of the...
View ArticleXC32 v3.00: Unable to use volatile keyword with variables placed in program...
In XC32 versions prior to v3.00 the following compiled fine: extern volatile const union Configuration_Parameters __attribute__ ( ( space ( prog ), address ( CONFIG_BLOCK_START_ADDRESS ) ) )...
View ArticleXC32 v3.00: Unable to inline function calls in nomips16 function (khallenbeck)
In XC32 versions prior to v3.00 the following compiled fine:static __inline__ int __attribute__((always_inline)) add_mips16(int a, int b) { return a + b;}int __attribute__((nomips16)) add_nomips16(int...
View ArticleAdding Older XC32 Toolchain using SRC source Zip file (nwotton)
I am trying to run a demo program for my Olimex PIC32-HMZ144 board that seems to require an older version of the XC32 compiler; specifically, version 1.40. I downloaded the source zip file from the...
View ArticleREAD and WRITE userpage program (Manav jethwa123)
I am using microchip studio for flashing the program to ATSAMD20J18 . I can write the user program but it is not showing updated write user program when i am reading. For this help me what should i do?..
View Articlepic32m-gcc.exe crashes on windows 10 (schroedercn)
Hello, I am using XC32 compiler (v3.00) with MPLAB-X v5.30 on windows 10. I have an existing C project on a 24bit dsPIC that is compiling fine with XC16 compiler v1.31. Now I want to migrate to a...
View ArticleXC32 v3.01 to be posted soon (JasonK)
The MPLAB XC32 v3.01 release is going live soon. This release is identical to XC32 v3.00 except that it adds support for the LAN2955 EtherCAT family. To use this device family, you will also need to...
View ArticleHow to disable optimization to generate a small pulse of specific length on...
Hi, I need to generate a short pulse on one of the IOs of a specific lenght. So I want to do something this like this: IO_Set();mydelay();IO_Clear(); with mydelay something like this:int mydelay(){int...
View ArticleUnit testing with MPLAB X & XC32 (onnimikki)
Unit testing is pretty common outside of embedded systems, but relatively new in the embedded space. It's related to Test Driven Development (TDD) which some of you may be familiar with. I'm wondering...
View ArticleI cannot explain this error. Compiler Bug? XC32 v3.00 PIC32MZ2064DAR176 (user2x)
Hi, I get this error:In file included from ../G5_WindowCreate.c:1:../MyConstants.h:201:16: error: expected identifier or '(' before string constant #define FW_REV "H5v0.2.04" ^~~~~~~~~~~ The file ref..
View ArticleSpecifying addresses and locating variables at specific address...
PIC32MZ2064DAR169 XC32v3.0 I have this code here from a C30 project that specifies addresses for stuff needed torun some sort of bootloader and application.It throws errors on the XC32 as below.I k now...
View ArticlePIC32 Bootloader linker fails in debug (only with PKOB?) (ChrisMcK)
I have a PIC32MZ-DA Starter Kit (DM320010, PIC32MZ2064DAR169) that I'm trying to customise a bootloader for. When building in Debug (to step the code), the build sometimes fails with the linker...
View ArticleXC32 Linker does not honour "--fatal-warnings" (ChrisMcK)
XC32 v3.01. Setting additional linker option "--fatal-warnings" does not stop the build when encountering #warning's in the linker script; the build still runs to completion. GCC documentation states...
View ArticleConditional Linker script on Device name (ChrisMcK)
Can the preprocessor that's run just before the linker accept the device name macros that get used in the regular code? What I'm trying to do is adjust my linker script depending on the selected part,...
View ArticleCan I enable output showing files followed to get to a warning / problem?...
XC16 shows the files and lines followed (logical progression /file hopping) to get a problem in a header file such as a warning.Such as: (free typed pseudo example of XC16 output window) Warning line x...
View ArticleHow can I use "long long int" (aka int64_t) on this C90 compiler (user2x)
XC32 rev 3.0 I get warnings as in: ISO C90 does not support 'long long' I notice there is also no definition for int64_t This is for code I am porting from an older C30 project I read that there is...
View ArticleIncluding External Library Giving ELF Errors (lunar)
I am trying to include an external library into my application code. This library was compiled outside of MPLAB utilizing the XC32-GCC toolchain using waf. I am trying to follow the steps outlined...
View ArticleInput capture (horkesley)
Hi, I am having problems getting input capture to work. The interrupt flag is set when an input is applied to RD8, but the interrupt routine is not entered.Here is the interrupt routine, the code never...
View Article