I tried write a class but error appear. Is not possible include classes in XC16? regards,Javier..
↧
C++ in XC16 (Javier Lopez)
↧
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()
{
I2C1BRG = 0x09;
I2C1CON = 0x8000;
I2C1STAT = 0x00;
_NSTDIS = 0;
//I2C1CONbits.RCEN = 1;
I2C1CONbits.RCEN = 1;
}
void I2C1_wait()
↧
↧
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 level
void __attribut..
↧
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 typically use a "fuses.inc" file for the configuration bits (s..
↧
Trying to create a large array using XC16 and MPLAB X for the PIC214FJ256GB210 (caron.r.williams)
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 large array and got a variety of errors. The largest array..
↧
↧
Link Error: Could not allocate section .text, size = _____ PC units, attributes = code (zbo)
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 "Memory model" to "Large". The only difference between ..
↧
Why "Cannot run program C:\Program Files (x86)\Microchip\xc16\v1.36\bin\elf-objdum"? (thoraz)
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 get the following error: EZBL: Converting .elf to .bl2
↧
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 the generated assembly code in the disassembly listing..
↧
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, const char *, _Va_list);
#endif /* _ADDE..
int snprintf(char *, size_t, const char *, ...);
int vsnprintf(char *, size_t, const char *, _Va_list);
#endif /* _ADDE..
↧
↧
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. //********************************************************************************
// STEP 6..
↧
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 break point after characters are received, the array is ..
↧
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 create a bootloader for this pic, so i created my main p..
↧
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 create a bootloader for this pic, so i created my main p..
↧
↧
#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 configuration bits in the IDE and then copy the generated code in..
↧
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. Then I have an app that include that Library and needs ..
↧
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)) u8IdtSmbAddress; But if i try to debug the application w..
↧
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 using interrupts totally managed by the code generated by ..
↧
↧
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 MCCclock=> FRC with FCY=8MHzSPI1=>SPI1_Initialzation() //12..
↧
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);
givesLAT 41.645746 result 1 4164.574219..
↧
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 myFun.c and myFun.h
Activities I've done:1. Creating..
↧