dsPIC33EP512MC806, ECAN ecan module does not work (framuga)
I have unsuccessfully tried several configurations assigning the peripheral to pins RPI86 CAN2RX and RP87 CAN2TX. I have disabled the ADC using the ANSELE bits but still the state of the pin RP87,...
View ArticleXC16 v1.34 released (RISC)
Hi,It seems a lot of items were corrected in the v1.34 documentation ( release notes for v1.34 ).Regards..
View ArticleXC16 v1.26 build failing -- (944) data conflict at address... (awolfe)
I updated to v1.26. It worked for several compiles... but has now started giving me this error at the end of the compile. "C:\Program Files (x86)\Microchip\xc16\v1.26\bin"\\xc16-bin2hex...
View ArticleBitmaps in XC16 (newone)
Hello everyone, can anyone tell me how to do something like this, i'm trying to make buffer for display driver Raio r8835 : void lcd_graphic_8(void){ lcd_cursorxy(0x80,0x25); lcd_cmdwrite(0x42);...
View ArticleAssembler issue with certain instructions? -SOLVED (JimDrew)
I recently ran into an issue where I needed to invert a mask value. Typically, you do that by placing the '~' character in front of the data, ie: IFR_T2 = 0 mov #~(1<
View ArticleConverting MPLAB8 C30 project to MPLABX XC16 and can't find RTCC functions...
I am in the process of converting an MPLAB8 project for a PIC24FJ256DA210 that uses C30 compiler to MPLABX with the XC16 compiler and I think I have all of the issues worked out except the XC16 compile...
View Articles4FJ64GA002 to UART C# (MitYeltu)
Ok, this might not be the best place to post this as it deals with bth the pic and with the .net platforms and this maybe should be on a .net forum, but you guys have been very helpful in the past so I...
View ArticleSOLVED: PIC24FJ128GA308 cannot get the SCK from SPI1 output to work (CJP)
Hi,From the PIC24FJ128GA308 I try to use the pins:- RG6 (RP21) as the SCK1 output- RG7 (RP26) as the SDI1 input- RG8 (RP19) as the SDO1 output However, the SCK1 doesn't clock. The SDO1 output works...
View ArticleLink Error: Could not allocate section .text, size = 484 PC units, attributes...
I have code that has compiled OK but made some modifications and now I have this error and don't know where to look.No compile errors. Using MPLABX 3.45 and XC16 V1.22 Thanks..
View ArticleGCC Build (Brek)
Hello,I am wondering if there is any clear instruction on how to build GCC directly from sources provided with XC16/XC32 compilers?Has anyone actually done so?I’m not much for Linux experience, but it...
View ArticleCustom linker script to specify location of object in flash (aodhanc)
Hi guys, I am trying to use a custom linker script (based on default linker script p24FJ1024GA610.gld), to locate the .text section of an object file at a particular location in flash. I am following;...
View Articlewhat are Magic names?? (JPortici)
Skimming Through the v1.34 release notes... Under bug fixes: Magic section names in linker causes fatal crash what is a Magic Section name?Also a lot of new parts i see, many of the dsPIC33CH and CK......
View Articlelong double multiplication is way wrong (kholmz)
I'm trying to multiple two variables and am having issues. If I: long double tempa = 0.833333333333333; long double tempb = 25000.0; long double tempc = tempa * tempb; The result is wrong. tempc =...
View ArticleAlign string literals (Koen van Vliet)
I have a function in a third party libraryvoid MqWrite(const char *msg, const int msg_length)where msg must be aligned to 2 bytes. String literals are aligned to 1 byte by default. I would like all...
View Article[BUG] XC16 / dsPIC33 / "mul.xx Wa, Wb, A/B" generates wrong binary (AndrePar)
Hi,I think I found a bug with the XC16 compiler when it assembles. If i write the instruction mul.uu/us/su with an accumulator as target the generated binary contains a wrong/invalid instruction. It...
View Articlexc16 v1.33 delay.h obviously I'm an idiot (TBayPic)
OK so I download and update xc16 to 1.33 and my code won't compile.OK so I download the documentation and nothing to solve the problem.OK so I download the support files and nothing to solve the...
View ArticleProgram Space Confusion PIC24FJ (Humbug44)
Folks - I'm having trouble interpreting the microchip program space documentation for the PIC24FJ64GA002. dsPIC33/PIC24 FRM, PIC24F Flash Program Memory section 2.0 'PROGRAM MEMORY ARCHITECTURE'...
View ArticleNot compile the code by 1.33 but 1.32 (doodle)
I have met such a problem. I can pass my code by my colleague's XC 16 1.32 but I can not pass by 1.33 that the mistakes showed is from compiler inside. I need XC 16 1.32 but there is only 1.33 on the...
View Articleconfiguration bits for dspic30f2010 (HARI 123)
i make c program for dspic30f2010 ic.but while burning the ic with pickit2 its showing "some configuration words not hex file"this error.if anyone know the correct configure words please reply me.thanks..
View Article