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

Issues with UART2 on PIC24E and XC16. Simple Echo software. (breogan_uc)

Hello, Please, could somebody help me with this UART issue? It is taking me long time to solve it. I’m working with PIC24E (pic24ep512gu810) and XC16 version 1.24. PIC24E is connected to PC using...

View Article


Using the MAC instruction in C (Aiden.Morrison)

Hi All,I'm working on an application where I have an input sample stream that needs to be mixed with a local carrier replica, and then decimated. Pretty standard, and at first I was tempted to use the...

View Article


Unable to resolve identifier after include USB CDC files (breogan_uc)

Hello,I'm working with pic24ep512gu810 (it has USB periferal) and compiler XC16 v1.24 and I would like to configure the USB as CDC.I'm using the CDC_serial_emulator example as guide . When I include...

View Article

accessing string data stored in flash (marinayelken)

#define sensor_name_array_absolute_address 0x30000 const char __attribute__ ((space(prog),address(sensor_name_array_absolute_address))) sensor_name = { {{"sensor 1:1"} ,{"sensor 1:2" } ,{"sensor 1:3"}...

View Article

XC16 activation (Goran Ekstrom)

Hi,just about to start developing for PIC for the first time and have the XC16 Standard compiler with RealICE. Regarding activation, I hate computer locked copy protection. If I recall correctly, XC16...

View Article


Error with simple "HelloWorld" program: elf-cc1: fatal error: main.c: Value...

Hi,I'm trying to get up and running with MPLAB X IDE v2.35 and am running a simple "Hello World" program. I get the following error when I attempt to compile with xc16: CLEAN SUCCESSFUL (total time:...

View Article

libq.h Sine Generation (Derek Belle)

Hi All, I had a few questions regarding the _Q15sineSeries() function. I am using XC16 v1.24 in the simulator with a dspic33EV256GM106. I am trying to calculate the coefficients to generate a 15Hz sine...

View Article

Can't use any xlcd.h functions (chinuhark)

The DSC is dsPIC33EP256MC202 with MPLABX v2.30 and xc16 v1.23. I am trying to interface 16x2 LCD but before even starting it, I am stuck at this since morning.I have included the xlcd.h but anything I...

View Article


Uart code help (ΙΩΣΗΦ ΞΥΔΑΚΗΣ)

Hello everyone, I am new in the forum and also newbie at pic programming.I am using MPlab X IDE and XC16 Compiler for the dsPIC33FJ128MC804 MicroController.I want to make a code that reads the...

View Article


Second Program Memory Section (Toll)

I am trying to use the section of flash between the AVT and my bootloader. I am trying to do this by declaring a Memory section called "program2 " in my linker script. /* ** Memory Regions */ MEMORY {...

View Article

Problem with pointer to EDS (matheusmbar)

Hello. I'm working with a PIC24FJ256DA210, a application with a LCD. My compiler is XC16 v1.1, free license. The video buffer to the graphics module of the microcontroller is too big to fit in the...

View Article

An error occured in the debugger. Terminating the debug session. (sitongia)

I upgraded from XC16 v 1.20 to 1.24. Using MPLAB X v2.26. Using Pickit3. Processor dsPIC33EP512GM306. It will program the part OK. It will not debug anymore. At the prompt "Target reset" I click the GO...

View Article

snprintf doesn't honour buffer length. (james.fenech)

Hello, I am using XC16 v1.11 to compile some PIC24 code. In this I am using snprintf to limit the length of the output string. Example: void main ( void) { static char sBuffer ; static UINT16_ sCnt;...

View Article


Inserting compiled C code into assembly (rdibley)

I have a project that is written in assembly on a dsPIC33, using the XC16 assembler. I would like to incorporate C code, compiled using the XC16 compiler, into the assembly code. (as a function, for an...

View Article

Modification in Explorer 16 Demo project? (saeedahmad123)

Hello dear, I am using Explorer 16 development board having processor "PIC24FJ128GA010" and REAL ICE. I have downloaded demo " pic24_dspic_explorer16_demo_v2014_10_27" for Explorer 16. When I open...

View Article


Nasty compiler bug and optimisation? Or code issue? (wreeve)

Is this a nasty compiler bug?Set up “global” variables LastRx4 and Rx4.Only use that variable in an interrupt function; in an if statement compare; for example (Rx4 by the way is read from the RX...

View Article

MPLAB XC16 Compiler (calebASD)

Hello everyone,I recently downloaded the MPLAB XC16 Compiler. Once the compiler got downloaded I could not get the compiler to run. Then I opted to install the PRO compiler for a 60 day free trial....

View Article


General program question (johnoakley)

Just wondered if anyone can shed any light on this strange occurance. Iam reading data from a gyroscope, alls working ok if I merge and scale the results as shown below: //POOL GYRO RESULTS AND GET...

View Article

Help with PC Lint message suppression for ClrWdt() (MarkGrubb)

Hello, Can anyone help with a PC Lint message suppression policy for the ClrWdt() Macro? I've seen a few variations on this problem on the Microchip and PC Lint forums (e.g. inline assember) but no...

View Article

XC16 v1.24 missing the gcc __builtin_popcount function? (icefield)

If you call __builtin_popcount on a constant (e.g. __builtin_popcount(0x55)) it compiles, but if you use __builtin_popcount on a variable (in my case on a 16-bit integer value), the error "undefined...

View Article
Browsing all 1508 articles
Browse latest View live


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