is there a 32ibt fixed point math library available? (neworld)
I am hoping for a fixed point lib that can handle in particular arctan2, acos, cos, sin...
View ArticleIncompatible implicit declaration of built-in function 'snprintf' on XC161.15...
Good morning, I have to convert integer values to array. Previously I used to use itoa(). In xc16 1.24 itoa() was working, but in 1.25 itoa() is unavailiable. So I started using snprintf() instead. In...
View Articlesprintf behaves differently with debug load and production load (COSMO LITTLE)
An absolutely baffling problem with sprintf. This works completely normally in debug mode ( dsPIC33EP512GP504, ICD3)With a production build, successive calls to sprintf produce successively different...
View ArticleXC16 1.25 and RTCC library (lelsteph)
HelloXC 16 1.25 does not come with the peripherals libraries anymore, they must be downloaded separatetly which I did.Using the RTCC function, I noticed it is no more working. Selecting XC 1.22 works....
View ArticleCode in Device Configuration Area (NorthGuy)
device: dsPIC33EP64GS506compiler: XC16 1.25command line option: "--partition 1" or "--partition 2" There's a 128-byte "Device Configuration" area at the end of the partition memory (commonly known as...
View ArticleXC16 v1.25 can't include unixio.h (dfoley)
my C file includes unixio.hie. #include in XC16 v1.25 I get fatal error: unixio.h: No such file or directoryHowever, v1.24 and earlier work fine and unixio.h exists in all versions including v1.25..
View ArticleTarget halted due to a break instruction in user code (alienhunter)
I am using dsPIC33EP128MC506 for my project. I am trying to use __builtin_mpy function for fractional multiplication of two fractional variables. But unfortunately when I try to run the code in debug...
View ArticleUsing stdout, stdin, stderr (COSMO LITTLE)
This is a general inquiry as to how one should use the standard input/outputs used by library functions such as printf. I have studied the XC-16 compiler manual , but cannot understand how I should...
View ArticleIncorrect ADC conversation or Proteus bug? (jtopalov)
Hello.I’m trying to measure a voltage with PIC24FJ64GA002 and display it on LCD. I use 10 bit ADC and Vdd/Vss as reference (Vr-=Vss=0V; Vr+=Vdd=+3.3V).10 bits = 1024 steps (0 to 1023) -> 3.3V....
View ArticlePIC24F - UART does not "see" the last three bytes of received packet (herb_sims)
OK guys, I'm pulling my hair out here:I am interfacing a PIC24F UART (2) to a FTDI USB-UART chip. When I run the PIC program the received packet is offset by three bytes in my buffer (the first three...
View Article[SOLVED] xxxErr0017: File register read failed (Wieschebrock)
Hello,I have this error only on debug build.I have it on different hardware, different debuggers (PicKit3, ICD3, RealIce) and with different cables.Debugger uses PGC and PGD. MCLR is NC in release...
View Articlecannot open linker script file C:\\tmp00001ec8.00: Invalid argument (stilicone)
I am using a PIC24 and I just got the xc16 v1.25 compiler.I get this errorc:\program files\microchip\xc16\v1.25\bin\bin\..\bin/elf-ld.exe: cannot open linker script file C:\\tmp00001ec8.00: Invalid...
View Article16 bit Assembly language for PIC24FJ64GA004 (dambrose)
I'm trying to learn assembly language for the PIC24FJ64GA004 16 bit processor . I have a pickit 3 programmer MPLABX and the C16 tool chain installed. Where can I get some assembly language examples...
View Articlethe % (modulus) operator does not work ?! (neworld)
unsigned char p; p = 15;p = p % 2;printf("\n\rp = %d", p);//prints p = 1 p = 14;p = p % 2;printf("\n\rp = %d", p);//prints p = 1 haha, love to hear the explanation behind this. tried xc16 v1.24 and...
View ArticleHow to store a string in flash at an absolute address?? (Maurizio Perego)
Hello,In firmware I'm developing I need to store some strings in flash at an absolute address, use it at the first start of the firmware and then delete it. I know how delete them at runtime but i dont...
View ArticleBuild problem (zzxxzxz)
Hi all,I had a project working on my old computer. When I copy the file to my new computer, it gives some weird error when I call a SPI or I2C function (no problem with these commented out). Could you...
View ArticleXC16 asm/link bug (ovsrob)
I have a fairly extensive project written in assembler for a PIC24F16KA304One of the PCs on my network is running 32-bit Linux and has asm30 V3.24 installed. The code all build correctly on this...
View Articlememset issue with XC16 v1.25 optimisation level s (Avataar)
Hello, I have an issue with the memset function in a very particular condition.I tried to simplify my code at maximum to provide it to you : typedef struct{ unsigned char BeginHour; unsigned char En..
View ArticleInstallation of legacy peripheral libraries prevented by MPLABX (SidLeg)
Hi, I've installed the latest version of MPLABX (v3.15) with XC16 Compiler v1.25, and now I'm trying to install the legacy peripheral library from the same page as the compiler. However, when it asks...
View ArticleSyntax question (iainhp)
I'm mentoring some young engineers on a PIC24 based embedded project. In this project they created a local variable within an Interrupt routine that looks something like the following: int iTimeToSleep...
View Article