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

Inconsistency in the datasheet of PIC24FJ128GA204 and the XC16 v1.25...

Hi,looking through the datasheet of the PIC24FJ128GA204 family I spotted several inconsistencies wthe the header ..\xc16\v1.25\support\PIC24F\h\p24FJ128GA204.h 1. RPINR30 RegisterDatasheet p.185bit 5-0...

View Article


Suppress XC16 warning message (vjasinski)

I use the following to initialize an array for output port (latch) manipulation. #define BIT(x) (1 << (x)) typedef struct TPORT_CONTROL{ int16_t * latch; int16_t bit;} TPORT_CONTROL;#define...

View Article


need help, obvious question (neworld)

I would like to create arrays of constants in program memory, and than be able to pass those arrays as pointers in function parameters. eg: const char array1[] = {0xe9' 0xeb};const char array2[] =...

View Article

Old MPLAB V8.66.00.00 Code problem (DavidFi)

HelloI am trying to compile an old MPLAB V8.66.00.00 project Using the Current tools MPLAB X IDE v3.06 with XC16 v1.25 for the PIC24HJ256GP210A After importing the project I get these warnings:implicit...

View Article

Different behaviour in Run and Debug modes (michaelcomp)

Hi.I'm using dsPIC33EP256GM304 with MPLAB-X, XC16 v1.24 and Real-ICE.There are 5 analog channels connected to AN5, AN6, AN7, AN8, AN28. The conversion is done using ADC2 and results are transferred to...

View Article


ftoa or evct available? (Volker)

Hi, i must convert a double to a string and i didn't found a function like ftoa() or ecvt().Exist such a function?I need to transmit the double over I2C... Thanks..

View Article

cannot open linker script file C:\\tmp00001ec8.00: Invalid argument (stilicone)

I am using a PIC24 and I just got the xc16 v1.25 compiler.I get this errorc:\program files\microchip\xc16\v1.25\bin\bin\..\bin/elf-ld.exe: cannot open linker script file C:\\tmp00001ec8.00: Invalid...

View Article

XC16 v1.25 can't include unixio.h (dfoley)

my C file includes unixio.hie. #include in XC16 v1.25 I get fatal error: unixio.h: No such file or directoryHowever, v1.24 and earlier work fine and unixio.h exists in all versions including v1.25..

View Article


Large array issue; will not compile. Solved and global - see replies....

#include I want to create a large two dimensional array: dataArray; // this is only 53k and the device has 96k When i compile i get an error saying:main.c:14:6: error: size of array 'dataArray' is too...

View Article


How to include main() in a library? (MikeAtCalidus)

The software I'm working on consists of a collection of library projects (business logic, protocol stacks, logical drivers, and a dsPIC33E hardware abstraction layer (HAL)) and a set of executable...

View Article

xxxErr0017: File register read failed (Wieschebrock)

Hello,I have this error only on debug build.I have it on different hardware, different debuggers (PicKit3, ICD3, RealIce) and with different cables.Debugger uses PGC and PGD. MCLR is NC in release...

View Article

PIC24F EEPROM Read/Write using Built-in Functions (Ranger48)

Hi all,I'm trying to use the EEPROM related built-in functions of the XC16 compiler on the PIC24FJ64GC006. There are no problems with reading from EEPROM. I declare some default values as follows:int...

View Article

Where is usb_generic_host.h? (mhwang)

Hello, I downloaded the latest Microchip libraries for the USB host, but I can't find usb_generic_host.h. usb_generic_host.c references this file, but I don't see it in the inc folder. Does anyone else...

View Article


dsPIC30F4012 UART translation missing bytes (elmilenmch)

Hello, I use XC16 PRO v.1.10 with optimization O3. My code uses UART communication with these settings: // RS232 Communication UART Configure baud = 10; // BR = 115200 approx.; 1B -> 88us UMODEvalue...

View Article

Error for automatic generation of DSP instruction (karanbanthia)

Hi all, I have the following line of code perfectly working in C30 compiler but gives an error saying "Automatic generation of DSP instructions not yet supported; use __builtin_ addab() instead" in...

View Article


Two FIR Filters using One Set of Filter Coefficients (Bill EE)

Basically the problem is that I want to filter two streams of data using FIR Filters with the same filter coefficients. Each filter has its own FIRStruct and Delay Buffer. What I am getting is an...

View Article

XC16 RTCC Peripheral Library and 24FJ16MC102 (tlg94)

Hello all, I am actually a college student working on a project for my own amusement and was running into some trouble. I am in my first microcontroller class currently, but I wanted to get into a...

View Article


Embedding xc16 compiler in another application (Kyle Gregory)

I'm looking to embed my PIC project into another application that I will distribute to a handful of users so that the users can compile a .hex file without editing any C/C++ code. So I have two...

View Article

xc16 library functions for RTSP for 24EP? (daverj)

When I was using MPLAB-8 and a PIC24HJ part I used C30 and found functions in Lib30 to erase and program the flash using RTSP that integrated into my C code well. Now I am using MPLAB-X and XC16 with a...

View Article

Correct way to reference linker symbol in C code? (daverj)

I have a PIC24EP Bootloader and App pair of projects in MPLAB-X. in the bootloader linker script is a symbol: __APP_IVT_BASE = 0x13804; The first entry in the app ivt is a goto reset, so when the...

View Article
Browsing all 1508 articles
Browse latest View live


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