using PIC24F for floating point adventures (Urghan)
Hi all, Sorry if this question is a bit vauge but please bear with me as it's my first post :-)I'm a hobbyist who has worked only with 8-bit MCUs and MplabX XC8 compiler. So far I only used fixed point...
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 Article4 bit mode lcd with dspic30f2010 (HARI 123)
i am trying to make program for lcd interfacing with dspic30f2010 in 4 bit mode.i wrote the c program.and i successfully compiled with mplab xc16.but i didn't out put in bread board. here is my program...
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 ArticledsPIC33EP512MC806, 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 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 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 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 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 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 ArticleCustomized Linker File (etk55257)
Hello, i need help to customize my linker file in MPLAB X. We use the XC16 compiler for the dsPIC33EV256M004 controller.For the customization i took the default linker file for the controller and...
View ArticleUART problem - always wrong value in U1RXREG (Revo)
Good morning everybody, I am having an issue with UART, in an application with PIC24F32KA304. Basically, with all the basic options correctly set, i am reading wrong values in the buffer register...
View ArticleXC16 1.30 won't link (Volker)
Hi,i try to compile our project with XC16 V1.30 and the Linker give a lot of messages like this:build/TEST_FW_Pic_V3_8/production/smb.o(.text+0x1a): In function `.L3': : undefined reference to...
View ArticlePeripheral library not included in my project (stinf)
Hi all!I have a strange problem with a peripheral library.I use: MPLAB-X 4.05, XC16 1.33, Windows 10. My MCU is a PIC24FJ128GA308. My collegue sent me a project I am not able to compile. After many...
View Article