Quantcast
Channel: MPLAB XC16
Viewing all 1508 articles
Browse latest View live

XC 16 v1.21 - Generate different hex code from different computers (asierglez)

$
0
0
Dear Microchip, I am very confused with this problem, which I havent been able to solve still.I have developed a program for PIC24F32KA302. And I use XC 16 v1.21 compiler.The problem is that with the same IDE, the same compiler and the same code, the resu..

Question about the dsPIC33EP64MC504 Peripheral library (silverwolfman)

$
0
0
Hi Guys, Its my first time to use the EP64MC504 chip, I am trying to transplant the code from the original design based on dsPIC33fj128, I used to have a library header file for the dsPIC33fj128 for the previous application, but I can't find any library f..

XC16 compiler interrupt vector not loading (paulabrahams)

$
0
0
Running XC16-gcc (v1.22) for PIC24F16KL401. Compiler not loading interrupt vector for I2C-1 into compiled and linked program HEX file. OK for Timer 1 and 2 and UART1. Peripheral is dual function for SPI and I2C and setup for I2C Slave mode. Interrup..

PIC24FJ64GB002 + PWM (Timer 2 + Output Compare 1) doesn't work (asdpoi)

$
0
0
Hello,I have problem with PWM - I wrote code myself but it didn't work so I copied from some site... but it's still doesn't work - LED is lighting but like less than 1% of max and doesn't change after change OC1RS... ... so here the code: //--------------..

MPLAB XC16 v1.22 Released (DevMod1)

$
0
0
MPLAB XC16 C-Compiler v1.22 is now available for download here. This release provides for the following: Support for devices with dual partition features.Support for devices with movable Alternate Vector Tables.Low level support for devices with Data Flas..

XC16 invalid Config bit setting (eaibrhans)

$
0
0
Using MPLABX v2.15 & XC16 v1.21Trying to set the config bits & compile some new code for a PIC14FJ128GA202 I need to set the PLLDIV bits in CW4 to set the PLL to 8x, but the compiler gives me an error.My code: #pragma config PLLDIV = 8XPLL // USB ..

Is it possible to hand optimize XC16 generated Assembly code? (emarx)

$
0
0
Hello all, I'm getting weird issues with the XC16 compiler not optimizing fully, even when running optimization level 3. For example the following interrupt code saves w0 even though it is never used: __CCP2Interrupt: mov w0, btg.b _PORTBbits+1,#7 bclr.b ..

CE482 FFT dsplib code example (Srge)

$
0
0
Hello all, I am trying to run the code example in the title on a dspic33ep512mu810 but I am getting the error below. I am quite new to this... Does anyone have any idea of what's wrong?Thanks a lot for your help in advance :) CLEAN SUCCESSFUL (total time:..

Can someone explain about RTCC (semir_ver)

$
0
0
I am want to insert RTC code for my 24F project.I found some example fairly clear but there is some question Practicaly, where I can explanation what function "RtccWriteTime" returnsAlso what does mean second parameter in this function ? Thank in advance ..

MDD Filessystem - fsfopen fails after update to V2013-06-15 (Wieschebrock)

$
0
0
Hi all, on an older project I have used the MDD Filessystem and now I want to update to latest version from the Microchip_solutions_v2013-06-15 for the C30.I have updated all library source and created a new library - no problem The older FSIO.c is v1.3.0..

How to use peripheral library for 24F for Xc16 compiler (semir_ver)

$
0
0
First time I am trying to use incluee peripheral library for my 24F CPU.I am using MPLAB-C with XC16I found example for RTCC and tried to apply.I have on start of my SRC file #include "xc.h"#include "Rtcc.h" but after e compiling I got a lot of errors(for..

Problem with optimizations and UART... (balmerjd)

$
0
0
I've recently come across an unusual situation with my current project. I have a completed working system that runs with effectively no errors (two small and minor bugs have been found that are very rare in occurrence and as of yet cannot be explained) so..

Best way to swap a bit (Dukenukem)

$
0
0
Hi everyone,I am trying to make a C function that swaps one random bit (set to 1 if it is 0 and vice versa) of a int variable named "chr". This is the code i wrote so far

srand(buf); //casual seed

pr1=rand() % 16;

space(dma) not supported for dsPIC33EP512GP502 (jyaron)

$
0
0
The following line compiles under XC16 and actually works on a dsPIC33EP512MU810: __eds__ ECAN1MSGBUF ecan1msgBuf __attribute__((__eds__,space(dma),aligned(ECAN1_MSG_BUF_LENGTH*16))); But, I get the following error when porting to a dsPIC33EP512GP502: Lin..

unsigned long compare problem (finkel)

$
0
0
Hello, in the function in the picture i am getting inside the if sometimes even if its seems that it is not true. http://i62.tinypic.com/sy9tud.jpg uint32_t is defined as unsigned long.Is it possible that the compiler sees it differently from the debugger..

Looking for documentation on dma and dsp libraries. (HenryRoe89)

$
0
0
Hi, I've been looking everywhere for documentation on various libraries included with the xc16 compiler, but I can't find anything. I've looked in the installation directory and I found reference material for the peripheral libraries and interupt vectors,..

Bug with PIC24F08KL301? (wreeve)

$
0
0
Please can someone help! I am pulling my hair out!On the PIC24F08KL301 pin 10 is RB2; and pin 6 is RA4On the PIC24F08KL201 pin 6 is RB2; and pin 10 is RA4 (according to the datasheet!) I am using a PIC24F08KL301 the XC16 compiler (v1.11 and v1.22 the issu..

MLA FILEIO filename question (daverj)

$
0
0
I don't know if this is the best forum for this or not... I've been reading through the documentation for the Microchip Libraries for Applications (MLA) with the hope of using it to read/write files on a Micro-SD card on a PIC24EP based board. I am figuri..

utoa (yeags)

$
0
0
I must be making some obvious mistake but this works with other compilers: char test[] = "MMMMMMMMMMMMM"; //Just some characters to mark the memory utoa((unsigned)123, test, 10);I see the MMMs (0x4D4D 0x4D4D ...) starting at RAM location 0xCF6 but utoa do..

utoa returned pointer value (yeags)

$
0
0
I thought utoa is supposed to return the pointer to buff1. I set a breakpoint at i = 1; and observe:buff1 address = 0x80C value = "12324\0xxxxx"ptrC address = 0x806 value = 0x80Bshouldn't the value be 0x80C? Is this my misunderstanding or is the compiler ..
Viewing all 1508 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>