Software interrupt on dsPIC33 (ChipBurns)
Can I use the EXTERNAL interrupt vectors as software interrupts by simply setting the appropriate IFS flag?..
View ArticledsPIC33CK256MP508 - DMA issues because variables were located in Y Data RAM...
Hi, we have prototype electronics with dsPIC33CK128MP206 and dsPIC33CK256MP506. The dsPIC33CK256MP506 has the latest silicon revision B3 and was equipped because the I2C module of the dsPIC33CK128MP206...
View ArticleMPLAB XC16 v2.00 Released (DevMod1)
MPLAB XC16 v2.00 ReleasedMPLAB XC Compiler v1.61 is now available for download here. Please see the release notes for full details...
View ArticleSo you think you've found a compiler bug (DevMod1)
So you've found a compiler bug...Help us out by reporting it! A good bug report will help us expedite a fix. Where should I send the bug report? Submit the bug report as a support ticket . The...
View ArticlePIC24F Peripheral Library not supported on XC16 v1.26 and later (craigjbradley)
I am porting an old PIC24FJ256GA110 program to the new PIC24FJ1024GA610 chip as I am running out of program memory (the program is large). Unfortunately the PIC24F peripheral library is no longer...
View ArticleEnd of array of pointers to a structure (radikn)
Hello colleagues, I'm using an array of pointers to a structure: static const RVU_DEVICES * rvu_devices[] = { { ... }, { ... },}; I go through the array periodically, element by element, from start to...
View ArticleProject is using a large data memory model (WeHongKongers)
Hello,I am compiling a PIC24F MCU project and XC16 keeps showing this warning. How do I correct it or improve?Thanks for your opinions.My platform is XC16 v1.5; MPLAB X v5.35.Info: Project is using a...
View ArticleGetting elf-gcc.exe: warning: -legacy-libc is deprecated after going from...
I see that -legacy-libc in the config. Should I just remove it?..
View ArticleStandard libraries don't work with dsPIC33CH512MP505 (Ialonso)
Hi, I have an application running perfectly with dsPIC33EP512GM706 microcontroller, I want to migrate it to dsPIC33CH512MP505. For this, I have a project configurated in MPLABX v6.00 using XC16 v2.00...
View ArticleDoes the XC16 compiler manipulate the source code of EEPROM? (lb1057907736)
I can't find the source code, only the libpic30.h file and the .a library file. Where can I find the source file? Should this be open source? XC8 can see the source code that manipulates EEPROM, and .h...
View ArticleI2C LCD2004 not responding display blank - dsPIC33Fj64gs606...
Iam programming a i2C LCD2004 display peripheral using xc16 compiler and dsPIC33Fj64gs606 processor. i connected pin 36 (SDA1/RG2) and 37(SCL1/RG3) with LCD2004's SCL and SDA pins. after repeated try...
View ArticleProblem with Bootloader and alternate IVT (Cpt_Nemo)
Hello,i'm not sure if this is a compiler/linker or a PIC device question.I'm trying to implement a boot loader with interupts using the alternate interrupt vector table with a dsPIC33EP32GS504. I...
View Articlejump to CRT_STARTMODE(crt_start_mode_normal) (KC5IXX)
Hi, In the .gld file for my PIC24FJ256GB206, I have sections for a bootloader, the program space, and init, like so: MEMORY { data (a!xr) : ORIGIN = 0x1000, LENGTH = 0x18000 reset : ORIGIN = 0x0,...
View ArticleTrying to use an array of function pointers (ChipBurns)
I'm creating an array of function pointers like this: typedef Err_t (*ProcessMenuFunction)( char );ProcessMenuFunction pProcessMenu;voidInitConsole(){pProcessMenu = ProcessMainMenu;pProces..
View ArticleType/bit-field use in union members (Jon_S)
Firstly, I hope no-one minds a question on C in general rather than XC16 specifically. This code behaves the same in OnlineGDB as well as XC16 v1.70. I colleague has just asked me to help with a union...
View ArticleReserving a single page in flash memory (FarmerJones)
Hi,I am using the dsPIC33EP128MC504 device along with MPLABX and XC16 compiler.I have a requirement to store data in program memory and would like to reserve the flash page at address 0x4000 so that...
View ArticleLink Error: Could not allocate section...attributes = bss dma (mxcba)
Hi, I have two MCU's, a PIC24EP256GU810 and a PIC24EP512GU810. I have code that was initially designed for the PIC24EP256GU810, but I need to port the code over to the PIC24EP512GU810. The pin outs are...
View ArticleXC16 Compiler Toolchain and Pack Confusion (mxcba)
I'm porting over a project from a PIC24EP256GU810 to a PIC24EP512GU810. I'm using the XC16 Compiler and for some reason the project was initially setup to use the dsPIC33E-GM-GP-MC-GU-MU_DFP Pack...
View ArticleUART Rx using DMA (C fever)
My project uses the dsPIC33EP512MU810 and I have two UARTs running at 500 kbaud. I want to use DMA to service the receive. My data packet size is variable with the smallest packet of 5 bytes, so if I...
View ArticleNewbie to MPLAB X IDE (andrew.denham@tis.co.uk)
This may be a very silly question but I have set up a PIC18F45K42 with a very simple set up. I am using a newly inytsalled versionof MPLAB x ide V6.05 and XC8 V2.40. MCC is version 5.2.2. The...
View Article