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

Turning on and off logging statement compilation? (arigead)

I have logging statements which log to the serial port but I want to be able to switch them off, both globally, given a log level, and on a per file basis given a definition of a macro, (DEBUG_FILE)C99...

View Article


Program Memory and Programming Speed (kholmz)

I noticed that with the addition of just a few more lines of code that my programming speed got 10x slower. In viewing the program memory it looks like there are segments of code placed in the very...

View Article


Static Analysis: Coverity (mchipkt)

Has anyone uses Synopsys' Coverity static analysis using the xc16 compiler? I'm just getting started with Coverity and configured it to compile for various targets successfully, but the Microchip xc16...

View Article

XC16 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 Article

XC16 linker error (ray)

Hi All,Im relatively new to MPLABX. Iv been working on a project for the last few weeks without any compile issues THEN out of the blue and for totally unknown reasons i get the following linker error....

View Article


Fetch from wrong address xc16 v1.30 (Wieschebrock)

Hello, I have a very suspicious behavior on a PIC24 with XC16 v1.30 The code: if(CO_OD_EEPROM.FirstWord != CO_OD_EEPROM.LastWord) while(1) ClrWdt(); The struct:/***** Definition for EEPROM variables...

View Article

Different Data memory problems and different XC versions (CarlosM)

Hi everobody!. I have got my application almost done but I am having problems at this final stage.I am using XC1.30 and DSPIC33EP512MU810. I have found that my program has started behaving very weird...

View Article

Correct Way of Reading & Writing using SPI (dogusural)

Hello all , ı am trying to send 3 bytes of information, then stuff 3 trash bytes , then read 3 trash bytes and then read the 3 remaining meaningful bytes. Is my way correct way of doing this ? And how...

View Article


Typedef union with array (mgulin)

Hello everyone,I have a typedef structure defined as follows:typedef struct {uint8_t status:4; // Holds state machine stateuint8_t busy:1; // Indicates that transaction is (not) in progressuint8_t...

View Article


Referencing to special function registers (mgulin)

Hello everyone, I'm writing an I2C library for an interrupt-driven master and slave communication. I've designed a simple generic function for I2C1 master, and the same function could be used for I2C2...

View Article

MPLAB XC16 v1.31 Released (DevMod1)

MPLAB XC16 C-Compiler v1.31 is now available for download here. This release includes: Support for Dongle licenses. Part-support updates and bug fixes. Please see release notes for full details...

View Article

XC16 not produce standard ELF or COFF files (Stampede)

Hi, coming from this thread http://www.microchip.com/forums/m969894.aspx , I found out that the XC16 doesn't produce any standard COFF or ELF files. The complier handbook states "The debugging format...

View Article

PIC24EP512GU810 - Link Error: Could not allocate data memory (Maldus)

Hello everyone,My question looks really similar to this one http://www.microchip.com/forums/m343461.aspx.I have occupied around 54% of data memory, and if I try to declare a new array the build fails...

View Article


XC16 - ELF file output - Symbols have zero "st_size" (drodgers_ls)

So, I've hit a brick wall, and I'd like to know if this is in fact a bug/oversight in the XC16 compiler, or if there's a reason behind what I'm seeing. I've written an ELF file parser in C# to extract...

View Article

Timer 5 IF not seen. (ScottC_TTS)

I have code that uses Timer4/5 in 32 bit mode. It provides a 5 sec. delay for a communication processes to work via the UART RX interrupt. I have a while loop looking for T5IF to get set. It never sees...

View Article


XC8/16 equivalent to CCS PICC "label_address()" ??? (wysiwyg)

Is there an XC8/16 C equivalent to the CCS PICC processor control function "label_address()" ?This function returns a 32bit address value of a label anywhere in the program or function.i.e.UINT32...

View Article

Keep value after power down using XC16 compiler on pic33EV256gm104...

Hello everyone, how are you? I am working with the MPLAB X IDE. I am using the IDE in order to programm the dspic33EV256GM104 with the XC16 v1.31.I need to save some values after the pic is turned off....

View Article


error: expected ')' before '*' token (Willem65)

Hi All, Please forgive me for being a noob.I have source file parser.c, which compiled fine.However, I need to call some functions in general.c from parser.c, so I added #include general.h to parser.c....

View Article

Question Regarding using ECAN Peripheral with DMA for DsPIC33EP64GS804...

Hello People , In my current project I am trying to create an ECAN network of battery management modules , each node with a DsPIC33EP64GS804 processor . I have been reading the datasheet of the MCU and...

View Article

Problem compiling xc16 1.26 project with xc16 1.3 (xiaomin.lin)

First, I am new, please be gentle...I am working on a dsPIC33FJ chip, so I downloaded and installed MPLAB X IDE v3.50 and XC16 v1.3. But when I got source code from another engineer, I got error of...

View Article
Browsing all 1508 articles
Browse latest View live


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