Graphics Display Designer X [GDDx] with XC16 (Antz411)
So it seems I'm the only one to ever encounter this issue but I'm using a past version of the Graphics Display Designer X with an older version of MPLABx for compatability reasons with compiler XC16 to...
View ArticleLinker error regarding __reset (RichardW)
I am trying to port some code from the PIC24HJ series to the PIC24EP (specifically: PIC24EP512GP206). The old code was built using a previous version of MPLAB and the compiler. Anyways I have gotten...
View ArticleRename HW parameters? (dekk______0)
In order to make one file swap-able between different hardware platforms I was thinking about defining all hardware platform specific parameters in a hardware profile header file then allow non...
View Articlepsv pointers mishmash (radikn)
Hi,I want to ask about your experience. I have this code:#include #include #include void Ela1OnFailRelay(uint8_t * frame, uint16_t length);typedef struct tagELA1_TASK{ uint16_t gro..
View ArticleMaybe something very silly... (CJP)
Hi,It should be very basic, but as for now I can't find the answer too. I've got the following code:void testfunction(unsigned char);int main(){ unsigned char temp1; temp1=123; while (1) {
View Articlexc16-ld --section-start not locating section as requested (jc5303)
I'm using the compiler option --ffunction-sections to give every function in a pic30 project its own section. Then to control the address of a section if needed, I'm using the linker option...
View ArticlePIC24E and XC16: Unable to get I2C to work. (Emphacy)
Hi fellow Microchip fans. I'm using a PIC24EP256MC204 with the XC16 Compiler. I'm running the MCU with the internal FRC oscillator and PLL to boost its instruction clock to 68.1725MHz. This is as close...
View ArticlePIC24FJ1024GB606 program memory sequence (michael.dale)
Hi, I am having some problems writing to the flash memory within the 24FJ1024GB606, there are some subtle changes within the documentation from this and the previous examples posted here. Below is my...
View ArticleConfusion using variable with __builtin_tblpage and __builtin_tbloffset...
Using a MPLAB X v3.26, XC16 (v1.26) and a PIC24F. I'm trying to write C routines that will erase and program many rows for program flash for NVM storage, about 500 int16_t entries. The __builtin...
View ArticleUnable to initiate union inside a struct in XC16 (potensi)
Hello All,I have a compile error when trying to initiate a structure which contains union of structure on MPLABX with XC16 compiler. I am using PIC24FJ128GA010 on Xplorer16 board for this application....
View Articleignoring invalid character `#' in script (Pechkin80)
I try to compile an example "CE019 - Proportional Integral Derivative (PID) controllers", which i downloaded from official site, but i encounter with error. make -f nbproject/Makefile-default.mk...
View ArticleXC v1.26 fails on assembly (JimDrew)
I just updated to v1.26 to find that none of my dsPIC33EP projects will assemble. They all assemble perfectly with v1.21 through v1.25 of XC16. Selecting v1.25 still works fine, so I will do that until...
View ArticleDECFSZ Problem, XC16 (Chipsuk)
Hi, i am trying to use the following code in MPLAB X IDE 3.26, for a Pic24FJ256GA106 device (XC16). #define DelayUs(x) { \ delayus_variable=(unsigned char)(x/DelayDivisor); \ WaitFor1Us; } \...
View ArticleNot able to use printf() to spit a string to UART on PIC24F line (jamisnemo)
Hi there, I'm trying to use printf() and it's %s string conversion but I'm running into a really weird error: Link Error: reference to __iob in printf_cdnopsuxX.XXeo is not compatible with previous...
View ArticledsPIC33EP64GS504 SPI1 hangs, SPI2 works fine. (abel11)
Hello I have problem with SPI1 (standard mode), made two identicaly source codes for SPI1 and SPI2 (only register names, and pins changed). When put some data to SPI1BUF got hangout -...
View ArticleDual partition pragma not working (maarten a)
Hi, I'm using a pic24fj256gb410 and setting it to dual partition mode,the problem is that the code generated by mplab code configurator is not working: // FBOOT #pragma config BTMODE = DUAL // Boot...
View ArticleBasic UART Question (N_S_pole)
Hello Folks, I am using PIC32MZ with latest Harmony. In my project, I am using multiple Modbus over ttl and 485. UAR send and receive multiple messages. Which one of the below is recommended: 1st...
View ArticleGeneral question regarding of coding style (neworld)
I do believe this is a valid use of the reference operator, but don't think it is generally used this way??? void func1( void ){unsigned long temp; ... printf( "value of temp %f ", *(double*)&temp...
View ArticleXC16 - V1.26 crash if to many files in project (MyName)
Hi, Is there any known issue with V1.26 that it crashes during the link process if more than 19 o-files are in the project?Same project works with previous versions but crashes with 1.29 - except if I...
View ArticleI can`t access register U1MODE (stoyanoff)
Greatings! I`m new in XC16 and I have a problem. I`m trying to setup UART for dsPIC30F5015. The problem is when I try to set anything like:U1MODEBITS.PDSEL0=0;or U1MODEBITS.STSEL=0;for example, I`m...
View Article