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

Compiler licenses not working on VM anymore? (albertm)

Using latest MPLAB X and XC16 compiler. Same issue with my XC32 compiler. For many years now my setup has been the following: MacBook Pro laptop with VMware Fusion to host VM's that I develop in. In...

View Article


SameProject, XC16, v1.61 build OK, v1.70 build ERROR (paolor)

Hello to all! I have a project named SBZ for DSPIC33EF512MU810 with EZBL inside. When I Build this project with XC16 v1.61 all is OK and the program run very well. A few days ago I have upgrade XC16 to...

View Article


Address of function missing page info when using instrumentation function...

XC16 1.50; PIC24FJ256GA110; nearly full program space; 6 year old code base... I have a problem with my code that is now spuriously getting reset. Normally with an Illegal Instruction. I use persistent...

View Article

Using the Temperature Sensor Diode in the dsPIC33CK256MP208 (RaisinToe)

I could use some help understanding how to use the temperature sensor diode in the dsPIC33CK256MP208. First, in the documentation, it is unclear if the Temperature Sensor is tied to ADC channel AN19 or...

View Article

Preprocessor Arithmetic Limitations (RaisinToe)

Using the XC16 compiler for dsPIC33, I am noticing many limitations when trying to process arithmetic in a #define. The preprocessor does not seem to recognize the third line. #define A 1.0#define B...

View Article


Confused: "special" pointers and allocation of const variables. (Ihor)

I've been writing code for DSPIC for almost 20 years, and I'm still confused about the proper way(s) to allocate, reference, and generally deal with const objects, including flash programming, etc....

View Article

Local C variables in inline assembler (Batgoy)

How? With older compilers all works fine.extern int evar;void test(void){ int var=0x5a14; __asm__ volatile("mov _evar, w0\n"); __asm__ volatile("mov var, w1\n");}After compiling: undefined reference to...

View Article

Project Structure With Shared 'Library' Files (S.Rhodes)

I am trying to work out the best way to structure a project. I have a working project that includes a set of .c and .h files that provide protocol handling for a UART. I now want to take those protocol...

View Article


dsPIC33EP memory section at location > 0xffff (Link Error: relocation...

Hi, I need help with a question about linker file and memory arrangement.Thanks in advance. I'm integrating code that needs to separate flash memory in several sections for different purposes.For...

View Article


posbbile compiler bug with dsPIC33F? (at least XC16 v1.60 and v1.70) (JPortici)

i have a piece of code that i'm groing to summarize like this tpyedef struct { bool active; ... ...} mystruct_ttypedef struct { mystruct_t list;} mystructlist_t;my..

View Article

How to locate ALL firmware in dsPIC33 auxiliary flash? (jtron)

I have a trivial test project consisting of a main() function, which is built with xc16-gcc (v 1.25) for dsPIC33EP256MU806. I want to to locate the firmware in aux flash and boot into the aux flash....

View Article

Delay function (ahmet)

I want to use __delay_ms() function but MPLAB X IDE gives the following error:undefined reference to `___delay_ms'.How can I use delay function? Note:I use XC16 v1.70...

View Article

microchip MLA 16 bit uart driver (kemalkemal)

Hi a couple days (or weeks) i try to figure out how to use uart driver code from MLA for 16bit microcontrollers. I have focused on transmit with interrupt part. What i expected from code is to transmit...

View Article


porting issues 8051 keil and xc16 (scrungy)

I am working on porting 8051 code to a PIC24fj1024ga610.I am getting errors and warnings on stuff that works fine on the 8051.In some cases, it is the IDE, and in other cases, it is throwing warnings,...

View Article

Help speeding up access to data in an array (PG1010)

I’ve written a simple piece of XC16 code which scans through the elements of a small 2D array of unsigned ints, and then copies some of the values to another similar array. When I added this new code...

View Article


What the __builtin_enable_interrupts/__builtin_disable_interrupts function...

Maybe my question is trivial but I can't find an trivial and exaustive response, so don't be mad at me! My reference environment is XC16 compiler and PIC24FJ256GA106. What the...

View Article

is control some kind of reserved word? (scrungy)

struct control { unsigned int table_type_1; // type of control unsigned int permission; struct table *table_pointer; }; The ide is spitting up:"unexpected token control" The compiler is generating an...

View Article


Problem migrating and fitting code from C30. Is XC16 not as good? (user2x)

I am migrating an application for PIC24FJ256DA210.On the C30, it was at 99% code space with optimization = s. I now have a license for XC16 v1.70 and I am recompiling this code.It will not fit!! I have...

View Article

Problem with the famous peripheral libraries migration C30 (user2x)

Hello,PIC24FJ256DA210 I need to use XC16 for a previou project but have various problems.THe original prject used the perpheral libs that came with C30. Using MPLAB X 5.10 For XC16, I have now...

View Article

Documentation for the 16-bit bootloader (pernothagen)

I am planning to use the bootloader described at https://www.microchip.com...duct=16-bit-Bootloader but neither me nor my collagues can find any documentation. The closest I get is AN1157 but it is...

View Article
Browsing all 1508 articles
Browse latest View live


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