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

XC16 memcpy for size >= 0x400 (aleruggeri87)

Hi everybody,I noticed a strange behavior of XC16 memcpy function when optimization 1 is ON:if copied data size is more than 0x400 bytes, the pointer to the data source is not correctly restored. Here...

View Article


XC16 memcpy with size >= 0x400 (aleruggeri87)

Hi everybody,I noticed a strange behavior of XC16 memcpy function when optimization 1 is ON:if copied data size is more than 0x400 bytes, the pointer to the data source is not correctly restored. Here...

View Article


Bug Report: "Verbose" prevents build (aoeui)

Passing `--verbose` or `-v` to `xc16-gcc` (or `coff-gcc`/`elf-gcc`) causes no result file to be emitted. This is contrary to stock gcc's behavior and the command-line help documentation (where `-v`...

View Article

XC16 Linker Documentation out of date ? (Gernot Schreiner)

I am trying to write my own linker script for an assembler only project using XC16. I have read the Linker Part in the DS50002106E "MPLAB® XC16 Assembler, Linker and Utilities User’s Guide".This...

View Article

Migrating from C30 to XC16, what has changed??? (BobAGI)

I have a number of projects developed using C30 but now updates on C30 seem to have stopped so new parts are not covered.So my question now is if I am to move to XC16 instead, what are the differences...

View Article


MICROCHIP_XC16 macro? (RoboDLC)

My legacy project code was used in both MPLAB/C30 and IAR workbench compilers. To make sure both IDE/compiler combinations worked properly with "packed" arrays in their respective sandboxes I used this...

View Article

XC16/MPLABX does not use my custom linker file (RoboDLC)

I am migrating from MPLABX/C30 to MPLABX/XC16. I have a custom bootloader in my code and that means a custom linker file. My post processing tools then convert the .hex to bin files for downloading,...

View Article

Install PIC24/dsPIC Peripheral Libraries v2.00 - macOS CATALINA (diegoufg)

I need to install the PIC24 peripheral libraries for the new xc16 1.50 compiler on mac os Catalina,I downloaded PIC24 / dsPIC Peripheral Libraries v2.00 - macOS but it doesn't installhow can I do ?..

View Article


error compiling in C16 for dspic 30f (jose_pic16F)

hello forum friends a big regardsI have designed a small code that is a digital ohometer with dspic30f, but when compiling it generates many errors, I hope you can help me guys. This is my code. /* *...

View Article


dsPIC33/PIC24 Family shared ADC core oversampling with scanning inputs (atonyb)

Hi everyone, I'm just wondering if someone with experience on the matter can chime in as I'm struggling to get a definitive answer on this one. If I read DS70005213G page 56, it suggests that if I have...

View Article

About the "unsafe" ACCAH/L (henkebenke)

Hi, I use to access the ACCA and ACCB from C code, and it produces a lot of warnings, since it's regarded unsafe.The problem is that those warnings are so many that they makes it hard to see both new...

View Article

XC16 device header bug: REFOTRIML (rallyr)

I have a project which compiles perfectly and runs great under XC16 V1.3. Under V1.5 the code generated by the MCC (configurator) does not compile at all. I've traced the problem to the P24FJ128GA202.H...

View Article

Loadable program, access constants stored in program memory. PSV, eds or...

Hi all,I was searching but did not found the right hint to my problem. I am working on a bootloader project, where parts of the project should be executable from the later (down-)loaded application.I...

View Article


PIC24FJ instruction set details, where are they? (RoboDLC)

I have searched both Google and the Microchip site to find the 16-bit instruction set details. I have found the instruction set overview, but what I _think_ is the assembly details (section 3) appears...

View Article

Variable in EDS (for sure) (Wieschebrock)

I have a data array that should be located in the EDS memory space and so I declared it as__eds__ SCRN_DATA scr_data __attribute__((eds)); But it seems to need an extra attribute, because, depending on...

View Article


Get preprocessor constants as #warning or #error outputs (hangikjot)

Hi all, Do you know if there is a way to get XC16 to print the values of certain preprocessor calculated expressions to accompany warning or error messages? I have a preprocessor guard check against...

View Article

structure members prints with errors after store them in a menu routine (vra)

Hi all, I'm using a PIC25FJ256GA106 to make several things and one of those things is a menu, in that menu I'm configuring the date an time by reading the characters through a keypad and print them at...

View Article


A way to suppress warnings is a specific section of code? (RoboDLC)

Is there a way to get rid of XC16 "flash_helper" warnings? I have a legacy base that I am moving from C30 to XC16 and I really do not want MCC to make another set of bootloaders that I need to get to...

View Article

XC16 V1.50 Build failed (antal_peter)

What is the Waiting for unfinished jobs....?What is Error 255?What is Error 2? This files compiled perfectly before my win10 crashed. make -f nbproject/Makefile-Peter.mk SUBPROJECTS= .build-conf make:...

View Article

XC16 and the time_t Year 2038 problem (realexander)

Hi, It appears that XC16's time.h library is using a 32 bit time_t based on 1970 and thus will have the year 2038 problem. Has Microchip offered a new library to get around this? Has anyone here faced...

View Article
Browsing all 1508 articles
Browse latest View live


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