SYSTEMConfigPerformance changing peripheral clock divider (mmgg_be)
Dear, What is the added value of the fucntion : SYSTEMConfigPerformance()? I lost a lot of time to understand why my Tmer3 was not running at the right frequency... This was due to the fact 
View ArticleError: Missing project macro definition to select proper TCPIPConfig.h (Anuj...
Hello, I have downloaded new MPLAB-Xv1.85 & XC32v1.21 compiler & want to build new version of stackv5.42.08 in my project. I have configured #define CFG_INCLUDE_PIC32_GP_S
View ArticleDynamically change the parametes in a funcation definition (BDD)
Hi All Is it possible to change the parameters of a function's signature? e.g. At compile time I do not know what interrupt priority level the user will be using when the user initialize a UART module,...
View ArticleIOPORT_PIN_X (charleskerr)
I have been slowling migrating over to use the system define macro's and functions. So instead of setting digital outputs by writing to the registers, I decided to give the functions a call. In the...
View ArticleRemove Unused sections (BDD)
Hi All I'm busy with a very simple app where I have an embedded webpage(part of FLASH) and the TCPIP stack 5.42.06 When I uncheck the Remove Unused sections my dwLastIP changes to some other value...
View Articlebootloader sdcard on PIC32mx795f512, not work i2c comunication (hongphucdhbk)
Hello everyone, I am looking for a help with my problem. My program works so well with Pickit3, but not works bootloader sdcard. I have check and find out that it is hung in i2c . I am using a...
View ArticleHow to port linkerscript from C32 to XC32? (BDD)
Hi All I have a custom linker script running on C32 I would like to move it over to XC32. Must I redo the linker script for the XC32 linker or is there a short-cut? Kind regards
View Articleerror: conflicting types for 'ultoa' (Krunaldarji)
Dear All, I am using PIC32MX575F256L micro controller. I switching from MPLAB 8.7 to MPLAB X and compiler XC32 version 1.21. Now as soon as i compile the project which is compilng smothly in C32...
View ArticlePointers (400_up)
Declaration in p32mx795f512l.h: extern volatile unsigned int ADC1BUF0 __attribute__((section("sfrs"))); Declaration in my file: unsigned int *ADCPtr; Assignment in my file: ADCPtr = &a
View ArticleCreating strings of hex values (edpgc)
Hi If I want to look for a particular set of characters in a stream this is fairly simply achieved with something along the lines of; (!memcmppgm2ram(RXBuffer, "Test", 7)) But say I want to look for...
View Articleprint long double? (tone_crafter)
Hi all, I'm trying to find out how to print a long double to a string using sprintf. According to everything I've read I should be using "%Lf" however when I do this all I get is the characters "Lf" in...
View ArticleGoing to specific memory location for code review (KamPutty)
Hi all, Okay, using mplabx v1.80, and 1.21 of the 32bit compiler on my pic32mx795. I'm getting a general exception, that I am catching just fine. I can also obtain the offending memory address, in my...
View ArticleFirst 0x180 of exception memory (ddrennan)
What exactly is placed in the first 0x180 bytes of the exception memory? Taking the PIC32MX440F512's default linker script the exception memory has these elements, PROVIDE(_vector_spacing =...
View ArticleMultiple records in hex file for same address (gl4jalopi)
We are using hexmate to process the XC32 hex file to make sure that the records are on 8 byte boundries and no more than 8 bytes long. I'm getting the following error from hexmate: (944) data conflict...
View ArticleMDDFS-SD Example PIC32795F512L Errors (VRknight)
Hello All, I am having trouble compiling the MDDFS-SD example from the microchip applications library. Using MPLABX v1.8, XC32 Compiler 1.21, Windows 7 Machine I am targeting PIC32MX795F512L in the...
View ArticleI2C Master Interrupt Events (DJervis11)
I am trying to write am interrupt based I2C module so that it may neatly interface with an RTOS and am having great difficulty doing so. The PIC32 allows for interrupt master events to be triggered on...
View ArticleBytes to Word (johnnyh)
Hi I have a a 4 stage capture of data from my PMP Port PMDIN Register and I would like to store the 4 Bytes Of Data in one 32bit Int Variable what is the best way to do this please, unsigned char...
View ArticleExecuting built in PIC32 drivers from SRAM (chakatfu)
Hi folks, This is for PIC32 and XC32 1.21 I have an application which combines run time flash update and receives binary over I2C. I would like to move only the flash update code (custom protocol + I2C...
View ArticlePBCLK output for PIC32 (vdinh)
Hi, I am using a PIC32MX5XX. I would like to output the PBCLK to a pin for measurement. I was using the PORTBINV as an output with infinite loop. I am expecting 11 MHz but I got 14.7MHz. From DS, the...
View ArticleFunction gets optimized out when using cpu register (digisign)
Hi I dont know if it supposed to be like this.. Function below works in -O0 but in -O1 compiler optimize it out. It looks like whenever a cpu register is used it optimizes out the code. Project file...
View Article