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

undefined reference to... (aa9gg)

Trying to build the following code:#include "mcc_generated_files/mcc.h"#include "app_host_cdc_basic.h"#include "mcc_generated_files/usb/usb_device_cdc.h"#include "stdio.h"MAIN_RETURN main(void){...

View Article


ECAN message priority for DsPIC33EP64GS804 (dogusural)

Hello people , In an ECAN network , if two nodes start transmitting at the same time , is there a way to make one node dominant and other transmitting node silent ? I can only see TX buffer priority...

View Article


__DefaultInterrupt gone with v1.26 and later? (JimDrew)

So, I have a global definition (.global __DefaultInterrupt) in my series of IVT definitions for the DefaultInterrupt. I don't want to use the XC16 default interrupt handler. I have my own. When I use...

View Article

simple uart full duplex program for pic24 (diva)

Hi, Im a electronics student and i want a simple uart program for pic24 with full duplex and interrupt on both transmission and receiving? Thanks, DIVA..

View Article

Delay function in XC16 (jalpa)

Hi, how to use delay function in XC16 for pic24f series?..

View Article


DMA compile error (timr@circuitabbey.com)

Hi,I am getting the following error:elf-cc1.exe: warning: _DMA0Interrupt PSV model not specified for '_DMA0Interrupt'; assuming 'auto_psv' this may affect latencyThe compile finishes and the code runs....

View Article

Assigning Variables to Registers (GlenTreankler)

Hi! I want to assign a variable to a portion of a PORT register, similar to this: #define MyRegister PORTB<3:0> That doesn't work. Can anyone show me the correct syntax for this, to assign 4 bits...

View Article

Mysterious Assembler Symbol Issue with XC16 (JuliaDee)

I'm using a handy switch-case assembler macro that works by XOR'ing the previous case's test value with the current instance's, and testing for zero: .macro switch.equ prevtest,0.endm.macro caseb...

View Article


How to read UDID PIC24FJ1024GB606 (michael.dale)

I am wondering what the correct way to read the UDID on this part is as all I can get is 0's, none of the following seem to work unsigned int UDID;unsigned int *DIDIPTR = (0x801600); UDID = *DIDIPTR;//...

View Article


PIC24F32KA302 and classb: Keeps failing the clock test? (RodoPIC)

Hi all, I added the microchip classb libraries to my project and after a while I got them to work except for this clock test.I've added the required definition for the timer used (TMR1 in my case) but...

View Article

Using "return" or "goto" in ISR (dogusural)

Hello people , I want to return from my ISR to skip the unnecessary if else statements and shorten the ISR process time if possible, I have seached the Microchip forums and although there are topics...

View Article

crt0.s for dspic30f (DaveNH)

The download of the compiler doesn't seem to have any crt source files. Any idea where I can find them?..

View Article

Questions about Timer1 in DsPIC33ep (dogusural)

Hello people , since I am not able to test my code on any real platform , all I have is your experience and the datasheets ,so let me thank you in advance for your patience and willingness to share ,...

View Article


force xc16 compiler to compile some portion of code in optimization s...

hello guys. peace be upon every human.want to compile all portions of long code while my compiler xc16 v 1.31 is in optimization level s. following is the portion of code.int x,y; TRISB=1; while(1) {...

View Article

ultoa(), utoa() returns wrong pointer value (DTM)

XC16 v.1.31 (checked also with 1.20 and 1.26).Using: unsigned char conv={}; unsigned char *ptr; unsigned long next_sn=1234; ptr=ultoa(conv, next_sn, 16); conv address is 0xC34 (checked with debugger)...

View Article


Incorrect data storage- XC16 V1.30 and XC16 V1.31 (Rakesh H)

Hi,I am using MPLABX v3.50, XC16 v1.30 and XC16 v1.31, PIC24FJ1024GB606 controller. I declared two variables long double lat= 15.12345678901234, lon= 71.12345678901234;But when I check them while...

View Article

Separating a word into two bytes. (kelt)

Hello everybody. A question from a newcomer to C. (XC16)I need to separate a 16 bits wide word into two 8 bits bytes.I cannot find a simple and elegant way for doing that. I have found something in my...

View Article


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

DEE Emulation 16-bit Address Trap Issue [SOLVED] (vjasinski)

Hi to all,I have discovered a problem with the code provided with AN 1095, DEE Emulation 16-bit. I have searched the forums extensively and have not seen this particular issue addressed. I add this...

View Article
Browsing all 1508 articles
Browse latest View live


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