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

undefined symbol `__reset' referenced in expression (mark42)

Hello ,I am getting this error "undefined symbol `__reset' referenced in expression"while compiling my code.Any suggestion,tips how to resolve this issue.I am using MPLAB X with XC16(v1.40) for...

View Article


How to generate code for MCC-unsupported device (Maximus)

Hi, I'm using a PIC24F16KL402 for my project, and I'm trying to get the codes for setting up the peripherals on MPLAB X, in addition to getting the functions to read/write SPI, UART, and also handle a...

View Article


USB HOST Bootloader and Application issue. (LeeZimme)

I had a USB MSD HOST bootloader that worked great. I have an issue with USB drives getting corrupted during the application code. Maybe cheap USB or I am opening and closing them too much. I am working...

View Article

Bootloader EZBL_AllocFlashHole correct usage (VB_VB)

Hi, I am using EZBL bootloader. I have a question that requires a quite deep understanding of this EZBL. Since the UART pins may change from PCB to PCB, I need to find a way to "tell" the EZBL in which...

View Article

Changing XC16's int size (da66en)

Is there any way to change the size of 'int' in XC16? I just don't mean variables declared as 'int', I also mean all literal constants should be 32bit and integer promotion should be done to 32bit. I...

View Article


Divide By Zero Error When Trying to Use IIRCanonic (joey5398)

Hello, I'm currently working on a project with the dsPIC33CH128MP205, and the part I am working on is supposed to apply an IIR bandpass filter to a sample buffer. Right now, the slave is sampling an...

View Article

Issue with PSV not being set (DuaneH)

I'm a newbie to these forums, but not to Microchip. I have a bootloader that insists on putting constants and strings at the upper end of my code, well out of the range of PSV page 0. Although the...

View Article

MLA GFX: Double buffering does not always work (Wieschebrock)

Hi,I'm using a 320*240 LCD on an PIC24FJ256DA210 design that based on the microchip dev board. I am using MPLABX 5.15 with XC16 (v1.35) and MLA v2018_11_26 with additional VGDD plugin The screen works...

View Article


library differences from 1.25 to 1.41 (daverj)

I have a project I wrote a couple of years ago with XC16 v1.25. The microchip/XC16/v1.25/lib folder contained folders for each series (ie: PIC24E) and within those were libraries for each part, such...

View Article


code model size (daverj)

I've updated from MPLABX 3.15 to 5.25, and XC16 1.25 to 1.41 and am compiling an old project that I want to migrate to the new environment. But something is confusing me. While compiling the project,...

View Article

MPLAB XC16 v1.41 Released (DevMod1)

MPLAB XC16 C-compiler v1.41 is now available for download here. This is a bugfix release, current users of v1.40 should update to v1.41. Please see release notes for full details...

View Article

Curious ISR Behavior on dsPIC30F4011 (RogerAF)

I have an issue with a Timer-5 interrupt. I'm using a dsPIC30F4011, 10MHz xtal osc with x8 PPL = 20MHz Tcy. I setup Timers 4&5 as 32-bit and use an ISR to flip the state of PortD0 which turns on an...

View Article

Cannot fall back to free license (Passer__by)

XC16 compiler gives error:elf-cc1: fatal error: Cannot fall back to free license.What is it means?OS: Ubuntu 18.04 LTS, MPLAB v5.20On Windows all works OK...

View Article


xc16-gcc.exe uses stdout instead stderr with the gcc option "-v" (spash)

Hi,We discovered recently an issue with xc16-gcc.exe and xc32-gcc.exe regarding the behavior of the -v option. The GCC documentation (https://gcc.gnu.org/onlin....html#Overall-Options) states:-vPrint...

View Article

bootloader build date to be read by application. (LeeZimme)

I have a bootloader and an application. I want the application to report the bootloader build date, for revision tracking.The bootloader only has USB HOST code and no access to the eeproms, ethernet or...

View Article


localtime maximum value? (elberto)

Hi to all, I'm working on time functions using XC16 (but I'm going to migrate to PIC32 soon..): t32 = (time_t)Epoch_POSIX; my_time = *localtime(&t32); // convert from epoch to UTC t32 is 32 bit...

View Article

warning: implicit declaration of function 'ADC_Init' and other questions...

So I have a circuit variant and I'm reusing a lot of code, but I'm getting this warning about an initialization function that worked in a previous incarnation. What is going on? (I'll upload all the...

View Article


xc16 crash at ulnk (AndJ)

XC16 may use stack frame with lnk-ulnk that copies stack pointer W15 to W14. However, it may still use W14 in code and ulnk resulted in W15=0 for my code which (fortunately) caused a reset! Unchecking...

View Article

time(NULL) returns 0 on PIC-IoT WG development board (dave12311)

I'm working on a project with the PIC-IoT WG wifi development board. I'm trying to modify the demo code to be able to use it on my own MQTT servers. The demo uses code like this in several places:...

View Article

How and where to define and declare volatile variable (RogerAF)

I have an ADC ISR that is supposed to transfer the ADCBUF into a variable (declared it as extern volatile in ADC.h) which is then used by the ISR in ADC.c. Main then uses it to control PWM duty cycle.I...

View Article
Browsing all 1508 articles
Browse latest View live