v1.40 skips my code (qlb1234)
1.34 compiles my code correctly, while 1.40 doesn't. Backgrond StoryI was building a small project with USB function on PIC32MX695. After switching to 1.40. I noticed that bLength in USB Descriptor is...
View ArticleTracking Heap usage (simong123)
Following on from the discussion athttp://www.microchip.com/forums/m624188.aspx I have modified JasonK's unsupported debug_heap function to provide some usefull info, and make the info available in the...
View ArticlePIC32MX795 BOOTLOADER issue (orgitello)
Hello, I'am new on the forum. I got an issue about PIC32MX795 bootloader. I'am used to use the bootloader of the PIC32MX460F512L on USB. That one I didn't programmed myself is working realy good, even...
View ArticleCompiler warnings. Conflict with Harmony framework (mmw2)
Hi,i activated these GCC X32 1.4 compiler warnings: -Wall -Wextra. The problem is that the Harmony framework code produces lots of warnings.How can I exclude the framework from being checked by the...
View ArticlePIC32MZ Bootloader Linker (Klaar)
Hey all, I am trying to understand the PIC32 linker, specifically for PIC32MZ micros and specifically this line in the linker file stolen from the harmony library bootloader example: kseg0_program_mem...
View ArticlePIC32MZ Linker Script Help (weehau)
Hi there, I have created my own linker script for PIC32MZ2048ECH144 to work with bootloader. It works most of the time, however there were times where it didn't work. especially when the application...
View ArticleCreating const data in V1.40 (alanfhall)
I have a problem on migrating from XC32 V1.31 to V1.40. I wish to create some constant data at absolute locations in my bootloader, which will be referenced later by my application. In V1.31 this...
View ArticleSegmentation fault (Jim Nickerson)
xc32 1.4Mplab X 3.10Windows 8.1 x64support ticket 300162 submittedthis worked in xc32 1.34#include unsigned long ulResetBeginV = 0;void main(void){ulResetBeginV = 0;//.main.c:69:40: internal compiler...
View ArticleSlow compilation of code in MPLAB X IDE v3.05 (lfarsky)
Hello, I´ve problem with very slow compilation of my C code in MPLAB X IDE v3.05.I observed the problem for now with compilers XC32 and C18. This slow compilation occur only when my PC is connected to...
View ArticleOverride source file Optimization level to "0" gives include file not found...
MPLAB X 3.10XC 1.4 Project optimization level is set to "1"override optimization level for one file to level "0" (for easy debugging) gives me following errorIn file included from...
View ArticleWeird left shift problem (linton_za)
Good day all I am having a weird problem where am placing 2 bytes from a char array in to an int by using the following in laymans terms: int variable = *char_ptr1 << 8 + *char_ptr What happens...
View ArticleArray of packed structures >>> Address exception (dlindbergh)
I'm getting address exceptions when I access element of my packet array. I think it's because each element is packed (to save space), but XC32 somehow has lost track of that.typedef struct...
View ArticleHelp with printing strings (soterEE)
I have a pointer to a variable of type structure and inside the structure is a string variable. I am using SYS_CONSOLE_PRINT function and when I send the pointer to the string variable i get strange...
View ArticleConvert GFX_XCHAR * to int (rickynevada)
I'm using the graphics library in Harmony and grabbing the text from a text field using a getter function that returns a GFX_XCHAR *. Let's say the text field has "500" (without the quotes, it will...
View ArticleXC32 V1.40 and persistent and or coherent issue, (MKC)
I have a persistent array and it is located in the 0xA0000000 address range so it is not cacheable.(according xc32 users guide Persistent variables or coherent).In my main directly after SYS_Initialize...
View Articlexc32 warning: cannot find entry symbol _reset; defaulting to 9fc00500 (mehrab)
Hello, MPLAB XC32 Optimisation problem; Compiler v1.40 I've started using Microchip recently and I am new to this forum. I am not quite sure if the problem that I am facing with xc32 compiler is a bug...
View ArticlePIC32MX270F256D DMA SPI transfer issues (devink)
I am currently trying to figure out how to get a DMA channel to send all 12,482 bytes to a display over the SPI channel. I have been successful at transferring the buffer with a simple while loop and...
View ArticleStructure Access freezes (p.lerolland)
Hi everyone, I am having a very weird bug on a code that I tested on a regular C compiler before implementing it on my PIC32MZ. Here is the part of code we are interested in :typedef struct { int row,...
View ArticleTrouble building XC32 v1.40 compiler tool chain from source, missing file:...
Hi, I downloaded the XC32 source code, and have been building the various parts one at a time. Gmp, ppl, cloog, libelf, zlib all build without error, and install fine in my staging directory. Building...
View ArticleImplementing own IO primitives (open, close, read, write) for standard IO...
Hello,I'm trying implement low IO functions for use it with a standard stream IO API (fopen, fread, fwrite etc) provided with stdio.h. As an documentation says Microchip C32 C library provide standard...
View Article