Compiler bug regarding register assignment in uint32+int16 addition... (mwurm)
I just tracked down a bug in the XC16 v1.25 compiler, using -Os, compiling for PIC24FJ256GB410. I tried to isolate the code as much as possible to reproduce it. See below.In the beginning of the test()...
View ArticlePIC24FJ128GC010: Programming Error (JorgeAugustoCosta)
Hi everybody, I'm working for the first time with PIC24F, and I have tried to programm my microcontroller with no success. I followed the entire datasheet when I was designing my PCB, so I have the...
View ArticleCompiler bug? (Wieschebrock)
This funktion returns a wrong value long Editvar(long Intvar, int L_limit, int U_limit, unsigned char Stepwidth) //As Long{ if (Bit_editmode) { if (Key_up) { Intvar += Stepwidth; Intvar=(Intvar <...
View ArticleCompiler Bug: XC16 math.h missing constants (AE6RV)
I need to do some long double math with "e" and "sqrt(2)" on a dsPIC33F. These values are typically found in the math.h file. I can locate them for XC8 and XC32, but I don't see them for the XC16...
View ArticleCompiler updates and HPA (Wieschebrock)
Hello, comming from the C30, is there a licence difference with the XC16? HPA has ended Options have been disabled due to restricted license Visit http://www.microchip.com/ to purchase a new key. Does...
View ArticleThe program file could not be loaded: 173??? (embedded Engg)
what is this error?while building the code this i faced this error. after building successful, below line it comes as The program file could not be loaded: 173. How to overcome to this error?..
View ArticleRecipe for Target Failed and other pblms (kwilliams)
Hello,I am importing a project from C30-MPLAB 8 over to MPLABx and XC16. One computer is able to convert the project and run without errors, and the other has the following error.. any ideas?...
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 Article_FLASH_ROW and _FLASH_PAGE size for PIC24EP512GP806 (dekk______0)
device: PIC24EP512GP806compiler: xc16 I'm doing something wrong - either I don't understand how to use the write and erase functions (see below) or I don't understand the size of page and row size or...
View Article__delay_ms (msa)
Hi guys i have question.... why __delay_ms exceeds maximum limit of 197120 cycles ? __delay_ms(98);((x)*(_XTAL_FREQ/4000.0)))x=98 ((98)*(8000000/4000.0))) = 196000 < 197120 cycles .... OK...
View ArticleInstalling xc16 compiler on linux mint (EI24)
Hi, i'm trying to install the xc16 compiler for mplabx on linux mint 17.1. I have followed this guide, , and successfully installed the xc8 and xc32 compilers. However when i try to install the xc16...
View ArticleBest and quickest way to circularize buffer (COSMO LITTLE)
This is really a general "c" question. I am rewriting all my .asm subroutines for the XC16 compiler. I have used a number of circular buffers which were aligned on a word boundary. For example, a 16...
View ArticleCan not debug program with XC 16 (MIWI_OP)
I am not able to run my program in debug mode with XC16 compiler ... it shows following error..c:\program files (x86)\microchip\xc16\v1.25\bin\bin\..\bin/elf-ld.exe: cannot open linker script file...
View ArticleAny known bugs with free XC16 v1.25? (dagr)
Hi,We have a program for a PIC24FJ128GC006 based board that has been working well for quite a while (compiled with v1.21 through v1.24). When I tried to recompile the exact same code with v1.25, I...
View ArticleXC16 assembler command line (col16)
Hi there This is a real newbie question but I am looking for some assistance in understanding the XC16 assembler command line. I have not used it before and don't even know how to open it up. Once I...
View ArticleFirst attempts to use fixed point data types (COSMO LITTLE)
I am trying to generate a fractional result from an integer division. The c statement is: Aevent_time.fractionalclockcycles = (SPI1BUF - Acalconstant) / Acalconstant ; /* calibrated time increment*/...
View ArticleInvalid Call Stack Frame (CodeGreen)
Invalid Call Stack Frame produces an exception in the application. At first I thought it had to do with libraries or compiler version but the effect is seen in 1.11 and 1.25. The code is a unified hex...
View ArticleSome questions about UART (JanJansen)
Hi, i,m busy with a DSPIC33FJ128GP802,i have downloaded the documentation and examples, the code is very different from the 16F1708. UART pdf : http://ww1.microchip.com/...eviceDoc/70000582e.pdfUART...
View ArticleHow to use unicode strings? (Maurizio Perego)
Hi I need to manage multibyte string (unicode). Can someone suggest a library or example? Thanks Maurizio..
View ArticleSetting address boundaries (nike9307)
According to the Errata sheet for the dsPIC33EP512GP502 - "An unexpected address error trap may occur during accesses to program memory addresses, 0x001 through 0x200." Is there a way to set address...
View Article