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

XC16 clock switching on PIC24E (rgy74)

$
0
0
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 section7.13 Clock Switching I have the following ques..

Looking for DISI Examples. (dkemppai)

$
0
0
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 buffer while others are in the middle of accessing it. Lon..

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

$
0
0
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 __attribute__((section("eds1"),eds, page)); then I get a lin..

XC8 - Linker configuration to link cinit and compiler generated text (Vinoth kumar Thangaraj)

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

Transfer constant array in program memory. (amtech)

$
0
0
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 built...."Could not allocate data memory"so i need to p..

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

$
0
0
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 EEPROM-shodow in an .pbss-segment. Due to have a checksum over t..

__pack_upper_byte : Possible Bug? (Pete Ruddock)

$
0
0
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 __section("bootstrap") SerialNumber[] = {'\x12', '\x34', ..

Issues with c30_device.info location (Fabien Rohrer)

$
0
0
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 have issues to specify the c30_device.info file to the..

XC16 PIC24 stack corruption problem? (Cypress)

$
0
0
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 a c file that is supposed to interface with the assem..

read/ write EEPROM (sensslen)

$
0
0
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 seems not possible with 16bit Processor. Can anybody pro..

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

$
0
0
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 then later an update to version 1.11, both using the f..

PIC24F_RTCC How to GetRTCC (Cabbage_Hall)

$
0
0
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 year,month etc values as well in debug but I cant seem t..

switching to the pro version of XC16 (uController_Tomi)

$
0
0
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 uninstalling. My question is, is there a way to upgra..

MPLAB XC16 v1.23 Released (DevMod1)

$
0
0
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 data flow constraints.Places string literals used as in..

XC16 Compiler RAM occupation details (Vaibhav Patil)

$
0
0
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 variables.As of now I tried below steps but did not get spec..

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

$
0
0
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 project directory.Is there any extra header file which i ..

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

$
0
0
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 info that my XC16 really works in PRO mode.Anybody knows..

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

$
0
0
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 other versions. I did'nt find anything in the release not..

Peripherial headers in assembly format?? (balmerjd)

$
0
0
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 have a counterpart for the assembly side. So far I ha..

optimal variable size for Pic24F (rjc3656)

$
0
0
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 declare variables as ints or shorts rather than char? many ..
Viewing all 1508 articles
Browse latest View live


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