Is there a way to issue a warning for unused functions? (JPortici)
So, i had an issue with a firmware.I have written two very simillar functions with very simillar signatures that do very simillar things.Actually, there was the first function and i had to write a...
View ArticlePIC24F32KA302-I/SS: Cannot toggle RA4 and RB4? (RodoPIC)
Hi all, This is for MPLABX 5.35, XC16 1.50 (free), Windows 10 pro (Laptop with win7 upgraded to 10 a while ago) I was using this PIC24F32KA302 to drive a 20x4 LCD (HD44780 driver) and my old driver...
View Articlefixed point arithmatic issue (PeterLauer)
XC16 recognizes the _Q15 datatype after i add the libf.h header file, but it does not recognize the fix point math functions, like _Q15sqrt(). Any hints? Peter..
View ArticleTroubleshooting bootloader questions (Joshua C)
I am in the process of implementing the MCC 16 bit bootloader to use with an existing project. I am making progress but I am finding that some of the structures that I use to handle some of the data...
View ArticleGet preprocessor constants as #warning or #error outputs (hangikjot)
Hi all, Do you know if there is a way to get XC16 to print the values of certain preprocessor calculated expressions to accompany warning or error messages? I have a preprocessor guard check against...
View Articleallocate data in flash (FerrariLuigi)
Dear all, I have to put some variables in flash. I read other posts about this issue and i found that I have to use __prog__ const char __attribute__((space(prog), address(0x10000))) my_string[] =...
View ArticleAllocating array of strings in psv (albertm)
I'm really scratching my head trying to figure out how I should specify the allocation of an array of string pointers in psv space (I do NOT want it in the const psv as I busted the 32K limit a long...
View ArticleHow to have *all* functions and data in .h and .c files? (RodoPIC)
Hi all, I'm trying to have *all* the functions and data for a sensor (BME280) inside its bme280.c and bme280.h and be able to call them from main() (in main.c, there is also a main.h) but I keep...
View Articleclrwdt/nop (marcov)
I updated from xc16 1.36/mplab 5.25 to xc1.50/mplab 5.40 today, and noticed that my projects no longer compile. Seems some intrinsics have disappeared (_Nop and ClrWdt() ). I'm using projects using the...
View ArticleUSB device not recognized?? (MicMad2204)
USB device not recognized??I have a working example of the bootloader on explorer 16/32 with PIC24FJ1024GB610 PIMNow I want to migrate to PIC24FJ1024GB606 which I use in my project. Having loaded the...
View ArticleUsing fixed point math function (CarpeCimex)
I'm using the _Q15atan() fixed-point math function with xc16 v1.50 and MPLAB X v5.40. The library manual says to include , which I'm doing, but the compiler is not finding the function. Is there...
View Articleundefined reference to ‘symbol.’ Linker scipt error (Poley)
Hello, I am using Simulink with the XC16 compiler. I am using p33EV256GM106.h included in my code and my linker is to the gld for this that I have put into my working folder (As shown below) My linker...
View ArticleProblem with Microchip 16-bit Self-Test Library and PIC24EP (aekalman)
Looking for some insight -- this one has me really stumped. Tools / Conditions: XC16 v1.25, MPLAB X IDE v3.15, Microchip 16-bit CPU Self-test Library (the last release was in 2015), PIC24EP256MC206,...
View ArticlePragma for PIC24FJ256GA704 code protect (ert304)
I cannot find documentation for code protect pragma values.#pragma config GSS = ? /* General Segment Code Protect Level bits */ #pragma config CSS = STANDARD /* Configuration Segment Code Protect Level...
View ArticleHow do I tell make not to make the hex file in the "Extra Loadables" (jstout)
I added a hex file as an "Extra loadables" in the Project Properties dialog. Now when I push the compile button the make the project it complains it doesn't know how to make the hex file I specified....
View ArticleTimer Interrupt do not work when trying to increment a variable. (laserline)
Sorry for my stupidity guys, but someone can explain to me why I am not getting this code to work? When I try to increment the "f" variable inside the Timer3 interrupt it stops (no LED toggle on Pin...
View ArticleUSB MCC PIC24FJ128GB202 Hmm (IBrokeIt)
USB question #128564 from me. I created a new MCC configuration for USB and TCP/IP stack. Reason I mention TCP/IP stuff is because I had to negotiate on system settings to allow FOSC/2 = 16MHz with USB...
View ArticleWrong value on math function? (elberto)
Hi to all users! Im' using XC16 compiler (v1.40), taking a look to CX16 libraries: double ret, x;ret = sin(-1.0); // this gives me ret=-0.841, correctx = -1.0;ret = sin(ret); // this gives me ret =...
View ArticleAre PPS Input Definitions Supplied Somewhere? (GlennP)
I've searched for the values to put in the PPS Registers in symbolic form and haven't found them. Does anyone know if they are supplied somewhere and I'm just too dumb to find them? I don't know if it...
View ArticleTake advantage of Microchip's Technical Support Portal! (g1l1t1)
See my post in the MPLAB X forum for how this can benefit you...
View Article