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

C++ in XC16 (Javier Lopez)

I tried write a class but error appear. Is not possible include classes in XC16? regards,Javier..

View Article


interfacing ds1307 with PIC24FJ128Ga106. (yo123)

hi, i made some function to read and write to DS1307.void I2C1_Init(){ I2C1BRG = 0x09; I2C1CON = 0x8000; I2C1STAT = 0x00; _NSTDIS = 0; //I2C1CONbits.RCEN = 1; I2C1CONbits.RCEN = 1;}void I2C1_wait()

View Article


file.o : undefined reference to `_any_function' error (Javier Lopez)

In the XC16 I hanged file.h and file.c at the same directory than main.c I wrote at pin_manager.c (that is hanged from mcc_generated_files): #include "../file.h" //to go up one levelvoid __attribut..

View Article

Configuration bits in assembly with v1.36 and later? (JimDrew)

So, apparently with the release of v1.36 you can no longer use __CONFIG xxx,yyy to set the configuration bits. There is a message: Warning: DEPRECATED. Please use #pragma config in a C file. I...

View Article

Trying to create a large array using XC16 and MPLAB X for the...

I am new to these tools but have used previous MPLABs and C30 on PIC24 parts before. I chose the FJ256 part because it has 96kB RAM. As an exercise in working with the part I tried creating a very...

View Article


Link Error: Could not allocate section .text, size = _____ PC units,...

Hello, My target device is: PIC24FJ128GC006. I'm using MPLAB X IDE v4.05, and XC16 v1.36. I'm building on a Ubuntu (64 bit) VM. I'm using optimization flag -Os, changed the "Data model" section under...

View Article

Why "Cannot run program C:\Program Files...

I'm importing EZBL bootloader in a old project. So I created a base bootloader project to create the *.merge.* files to include in my application. But when I compile to create the .bl2 output file I...

View Article

Assembly Listing for "C" files (MCDriver)

How do I configure the XC16 compiler tools to output an assembly listing file for each of the "C" code files that are compiled in my project?Also, does anyone know how to follow the execution order of...

View Article


Why is snprintf deactivated by default in legacy libc? (Wieschebrock)

This is probably more of a question to Calum - In the stdio.h that comes with the compiler, it says: #if _ADDED_C_LIB int snprintf(char *, size_t, const char *, ...); int vsnprintf(char *, size_t,...

View Article


Question about CE214 (ezedhill)

I have never used DMA before. CE214 is an example of using DMA channels with the UART peripheral. The DMA channels are associated with the following two buffers....

View Article

Debugger question (ezedhill)

I'm trying to debug an RX interrupt. The interrupt adds a character to an array an increments the index. I know I'm getting data on the rx line because I have looked at it with a scope. When I set a...

View Article

Question about PIC24FJ128GB204 (Giuliano_92)

Good morning to all,I'm not very experienced so my question can appear a little bit stupid (sorry for that).I'm working on a PIC24FJ128GB204 with XC16 v1.35 on MPLAB X IDE v5.00.What i'm doing is to...

View Article

Question about PIC24FJ128GB204 (Giuliano_92)

Good morning to all,I'm not very experienced so my question can appear a little bit stupid (sorry for that).I'm working on a PIC24FJ128GB204 with XC16 v1.35 on MPLAB X IDE v5.00.What i'm doing is to...

View Article


#pragma vs __built-in functions (RogerAF)

I'm using MPLABX v5.10, XC16 v1.36. In the MPLAB_XC16_C_Compiler_Users_Guide DS50002071H is a list of __built-in functions. Working with the template dspic30_c_template_1 it says to set the...

View Article

Header file required both by a Library and my App (vibemac.1)

Goodmorning,I'm using a XC16 1.35 and MPLABX 5.00, and it's the first time to generate a library in MPLABX.As stated in the title I've generated a Library which requires some consts in a header file....

View Article


Shared Variable for Bootloader and Application (Volker)

Hi, i have a project with a PIC24EP256GP204 and need a shared variable in bootloader and application. I tried this in bootloader and application: uint8_t __attribute__((address(0x1000), persistent))...

View Article

XC16 Compiler Optimizations and Code Configurator (labmicro)

I have been using the Code Configurator and XC16 compiler with the optimization level set to 0 to target a PIC24FJ128GC006 processor. So far so good and I have I2C, comm ports, timers, all running...

View Article


FatFs library for sd card interace with PIC24FJ128GA010 (yo123)

hi,i want to interface sd card with PIC24FJ128GA010 using FatFs library. i search some tutorial on google and i found that it is easy to configure SPI using MCC. below function is generated using...

View Article

sscanf() proplem (horace)

PIC24FJ1024GA610 using XC16 V1.36b the following code char tok1[]="41.645746"; float mins; int result=sscanf(tok1, "%f", &mins); printf("LAT %s result %d %f\n", tok1, result, (double) mins);...

View Article

XC16 Multiple definition when it is not in dsPIC (PicLikeds)

Hello,This is my first post, so at the beginning I apologize for any errors and I am asking you for patience :)I am trying to divide my code from main.c into files in the logical directory respectively...

View Article
Browsing all 1508 articles
Browse latest View live


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