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

XC16 clock switching on PIC24E (rgy74)

I need to do clock switching in a PIC24E where the main program is written in c using the XC16 c compiler. After having studied Section 7. Oscillator in the PIC24E Family Reference Manual—in particular...

View Article


Looking for DISI Examples. (dkemppai)

Hi all, I have a project that requires 'threads' of different priorities to access the same buffer. When accessing the buffer, I need to stop some of the 'threads' in interrupts from modifying the...

View Article


EDS problems: linker error and code size explodes (Brausyst)

I have 2 questions regarding EDS (extended memory space). I am using PIC24FJ256DA206, XC16 (v1.21) and MPLAB X IDE v2.05. 1. Question: If I declare an array __eds__ volatile BYTE ppRcBuf...

View Article

XC8 - Linker configuration to link cinit and compiler generated text (Vinoth...

MPLAB XC8: http://www.microchip.com/forums/fb.ashx?m=825372..

View Article

Transfer constant array in program memory. (amtech)

Hi all,I am using dsPIC33EP512MC506 which has 512kb of flash and 48kb of RAM. Now, the problem is when i create large constant array...like,const char XYZ = {1,2,3,4,......}; i got error every time i...

View Article


How to create an over-sized segment? (WWeisgerber)

Hello, I'm converting a project from a dsPIC30F6012A to the dsPIC33EP256MC206 (temporarely dsPIC33EP512MU810 for SW-Test on USB Starter Kit) with an external serial EEPROM. I want to hold an...

View Article

__pack_upper_byte : Possible Bug? (Pete Ruddock)

Using XC16 compiler (v1.21) and thinking there may be a bug when using __pack_upper_byte? Firstly some background.I have a character array defined in memory as __pack_upper_byte const unsigned char...

View Article

Issues with c30_device.info location (Fabien Rohrer)

I use xc16 1.22 in command line, and I would like to migrate only what I need from the xc16 installation into a specific directory.Everything is working if I keep the regular xc16 installation path. I...

View Article


XC16 PIC24 stack corruption problem? (Cypress)

I'm generating a fairly simple signal on the pins of port b of a PIC24EP512MC202 microcontroller using a project that consists of an assembly file that generates the signal using a single interrupt and...

View Article


read/ write EEPROM (sensslen)

I'm trying to access EEPROM on PIC24F series. Usually I use 8bit Pics using xc8 Compiler where I simply call eeprom_read(address) to read EEPROM and eeprom_write(address, byte) to write EEPROM. This...

View Article

XC16 v1.2x generating larger code than XC16 v1.1x (hoche)

I have a bootloader I put together based off the demo code in "Microchip Solutions\USB\Device - Bootloaders\HID" back in 2012. I've been compiling it just fine with the XC16 compiler version 1.00, and...

View Article

PIC24F_RTCC How to GetRTCC (Cabbage_Hall)

Hi, I have RTCC working and the seconds and minutes are incrementing as I can see it in the watch window in debug.I have the main and setRTCC function in the code below. I want to be able to see the...

View Article

switching to the pro version of XC16 (uController_Tomi)

Hy Everyone! When I first installed xc16 I installed the free version. Now I want to try out the pro evaluation version, that lasts for 60 days. I coudn't find any information on how to do that without...

View Article


MPLAB XC16 v1.23 Released (DevMod1)

MPLAB XC16 C-Compiler v1.23 is now available for download here. This release provides:Enables scheduling at -O2 and -O3. Scheduling can improve performance by reducing CPU stalls due to architectural...

View Article

XC16 Compiler RAM occupation details (Vaibhav Patil)

Hi,I am using MPLABX IDE v1.90 and compiler XC16 v1.20. I am working on 16 bit controller PIC24hj128gp504. How can I analyse the RAM memory details used by function, primary as well as secondary...

View Article


Not able to use File Handling functions like fopen(), fclose() etc (Vaibhav...

Hello,I am using MPLABx Compiler and xc16 Compiler.I am not able to use File Handling functions like fopen(), fclose() etc.I am expecting that at list in debug mode it will create Hello.txt file in...

View Article

How to check that my XC17 runs in PRO mode (semir_ver)

HiI had free version XC16 (1.21) and decided to go try PRO (ver 1.23).In phase of installation I selected PRO version and from Microchip site I gotone BAT file which I executed.But, I don't have any...

View Article


Wrong code execution if compiling from XC16 higher than v1.11 (benjoggy)

Code execution works fine if compiled with XC16 v1.11 I have decided to update to v1.23 this week but the same code does not execute as expected anymore. Same problem with 1.22. I did'nt tried with...

View Article

Peripherial headers in assembly format?? (balmerjd)

I've been looking around for the better part of this afternoon on both the forums and Microchip's site to see if the peripheral configuration headers that are included with the XC16 compiler for C also...

View Article

optimal variable size for Pic24F (rjc3656)

I have recently started coding for the PIC24 series after many years of using the 8-bit parts.A simple question, I hopeAs Pic24F part is a 16-bit part would it be more efficient and /or faster to...

View Article
Browsing all 1508 articles
Browse latest View live


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