real time clock to epoch time not returning correctly (LeeZimme)
Using the PIC24FJ256GB108 setting the real time clock with build date and time for fileio.May connect to the internet, and want to update the real time clock with sntp server time.Wanted to check...
View Articledissasembly help! (Egomez)
Hi, I've been a long time user of MBLab 8.92 and C30 (which I have a purchased license for) Now that I've started using a DSPIC33EP64GS506 I have migrated to MPLabX and XC16.Now, I'm seeing that...
View ArticleXC16 v1.26 problem with configuration words for a PIC24FJ256GB406 (D Pickle)
I have a problem with XC16 v1.26 creating odd hex files for a PIC24FJ256GB406.A simple project that should have a boot segment of 2 pages and allow the alternate interrupt vector table (aivt). This...
View Articlewhat could possibly be wrong ??? (davea)
XC16 v1.26 MPLAB X IDE v3.26 PIC24F32KA302 I have a varible in the SPI IRQ NEW_spi=1;when Optimization is 0 or 1 program runs fine when Optimization is 2 or 3 program fails to read NEW_spi in main.c...
View ArticleXC16 v1.26 build failing -- (944) data conflict at address... (awolfe)
I updated to v1.26. It worked for several compiles... but has now started giving me this error at the end of the compile. "C:\Program Files (x86)\Microchip\xc16\v1.26\bin"\\xc16-bin2hex...
View ArticleCan't Find XC16 Peripheral Libraries (cjswish)
Hello,I have installed the XC16 compiler for use with a dsPIC30f2010 and would like to use some of the UART functions in the peripheral library. I am programming in C (if that helps at all). I have...
View ArticleMPLAB XC16 v1.26 Released (DevMod1)
MPLAB XC16 C-Compiler v1.26 is now available for download here. This release includes:Beta support for co-resident linking. This feature allows the user to share program and data memory space between...
View ArticleCompilation errors with Microchip sample code (marcosartore)
Hi All,I need to build a serial Bootloader for a dsPic33EP512GP806 and went through the Microchip Easy Bootloader, intended as an almost-ready solution. I started in a conservative way: opening the...
View ArticleXC16 v1.26 MPLAB X Simulator does not play well with v1.26 (dcarrington)
Started a new project using PI24FV32KA301, MPLAB X v3.26 and XC16 v1.26. When stepping through the program using F7, the PC cursor jumps around, is seldom on the appropriate source line, and is often...
View Articlelinker crash due to corrupted C-string in linker (coff-ld.exe and elf-ld.exe)...
Both linkers coff-ld.exe and elf-ld.exe v1.26 contains corrupted fprintf format string that lead to linker crash while producing an image with last flash page occupied for EEPROM emulation:...
View Article/memoryfile.xml: no such file or directory (jlaturnu)
hi everyone, i'm attempting to add a .gld file to my application so i can use the MLA bootloader with my project. the project loads properly by itself, but when i add the linker file i get:elf-gcc.exe:...
View ArticleStack memory size (mktaj)
Hi all, I have an application that I am running on a PIC24FJ256GB210. I know that this PIC has 96k of data memory, although only 32k can be accessed directly. When I recently added some code to my...
View ArticleWhen should i use auto_psv (nike9307)
Hi i've being reading the XC16 docs and i don't understand what auto_psv and no_auto_psv do. So my questions are what do they do, and when should i use them. Thank you in advance :)..
View ArticleReference to EDS Variable Pointer (jyaron)
I declared the below:__eds__ SRAMRDBAllocTableT SRAMRDBAllocTable __attribute__((__eds__, space(eds), section(".SRAMRDBAllocTable"), address(0x8000))); And when I try to reference it...
View ArticleMaximum array size ? (COSMO LITTLE)
Using the dsPIC33EP512GP I cannot define a signed long array greater than 8191: signed long normalised_event_data __attribute__((far,section("samplebuffer"),address(0x2000))); This fails with the error...
View ArticleProblem enabling –fast-math compiler option (AZ1101)
I have a MPLab X 3.26 project that works with floating point numbers - using XC16 1.26 everything compiles and works fine; however after I enabled Fast Floating point math in the "XC16 (Global...
View ArticleXC16 - License has expired message... (terryopie)
I have the free license, always have. I had v1.23 installed with no issues. This morning I installed v1.25. Using that version I consistently get messages during the compile "License has expired"....
View Articlexc16 and EDS pointers (mike_a)
I am amazed with the problems I have found with EDS pointers. I found several cases of incorrect code generation, one of them I submitted a couple 2+ years ago and it's still in V1.25.I'm about to...
View ArticleXC16 Disassembly is incorrect (AZ1101)
I am using MPLab X 3.26 and XC16 compiler version 1.26. I was interested in how compiler implements an “inline” function, so I looked at disassembly of the code. However I could not make sense of the...
View ArticleBuffered STDIO eats 2 characters between buffer flushes (XC16 v1.25 bug?)...
I'm implementing stdout redirect to UART. I'm using XC16 v1.25. Without buffering it operates perfectly, but consumes a lot of clock cycles sending one character at a time. When I turn on buffering,...
View Article