Hello, I use XC16 compiler v1.34 with MPLAB X v4.15 for a dspc33FJ256GP710. I've got an issue using long double variables. For instance, if I set a long double variable, my program don't work at all, even in debug mode, I can't do a break and step over:#i..
↧
long double variable issue with XC16 compiler (zodd)
↧
dsPIC33EP256MU810 UART2 Rx Interrupt is not working (luckyspring)
Hi All. I need a help. I am working in a project with a dsPIC33EP256MU810, The language is C (XC16) on MPLAB X v5.15.
I use UART2 RX interrupt, but its not working. I checked RX2 signal come in the RX2 pin.
UART1 is for checking U2RXREG (communicate wit..
↧
↧
RP96 or RPI96 dspic33ep512mc806 (EngSam)
In the datasheet pin 58 of dspic33ep512mc806 this pin is RP96 9check attached image
while in xc16 it is defined as RPI96which one is correct and need correction ?..
↧
Problems installing peripheral-libraries-for-pic24-and-dspic (rfjhh)
Hi I'm working with XC16 and I tried to install peripheral-libraries-for-pic24-and-dspic-v2.00 but I receive a message "XC16 compiler is not installed"May somebody tell me why??? RegardsRicardo..
↧
XC16 EEPROM initialize not working in ELF mode (Doug Richard)
Hi. Below code will update my EEPROM memory if I compile in output file format COFF. const unsigned int _EEDATA(2) EEPROM_INITIALIZE[] = {0x0200}; However if I compile using ELF/DWARF my EEPROM memory will not update.I have tried other syntax to update th..
↧
↧
Soft swap instruction "bootswp" (Sanguin)
Hello, I'm trying to use the "bootswp" instruction to soft swap from the active to the inactive partition on a dsPIC33EP64GS504 in dual partition mode. The application in my inactive partiton should be fine, because it is working after I change FBTSEQ and..
↧
dsPIC33EV256GM002 ADC/DMA issue (mpgmike)
Credentials: MPLABX v5.15 (had issues trying to compile with the new 5.20), XC16 v1.36b, dsPIC33EV256GM002, Windows 10, ICD4 (tried Snap & PICkit3 also). PGD1, AN0 = Analog. ADC is 12-bit, using DMA to transfer ADC1BUF0 to AdcVal. I have a 10uF + .1uF..
↧
Stack underflow in C possible ? (aurelienr)
Hello,
I encounter a bug on a software already in production. For the moment we did not find the way to reproduce it.
Some variables are modified even when there is no function that can modify them. I can see at least approx 15 bytes modified, all close..
↧
.const section exceeds 32k but project links (GoEk)
OK, got it! "trying to understand how the .const section can exceed 32k but I do not get a PSV size link error… section address length (PC units) length (bytes) (dec).const 0x8000 0x7fca 0xbfaf (49071) Approx 49kB when close to PSV linker error." The "len..
↧
↧
how to use C variables in Inline Assembler (soleil_sword)
hi, I'm wondering how can I use variables defined in C function in in-inline assembly code?I appreciate if you could help me, thank you very much !..
↧
Where do I find the startup code? (user2x)
Hello, I need to make a modification to the startup code for PIC24F16KL402. I am assuming this code is in assembler but I cannot find it. Can someone please let me know where is the source located? RegardsX..
↧
Erroneous compiler error (nice)
Compiler: XC16 1.36
Devices: dsPIC33CH128MP508 and dsPIC33CH512MP508 Test code:
void __attribute__ ((interrupt, context, no_auto_psv)) _ADCAN7Interrupt (void)
{
ADCBUF7;
_ADCAN7IF = 0;
} The above code compiles fine for the master..
{
ADCBUF7;
_ADCAN7IF = 0;
} The above code compiles fine for the master..
↧
Do XC16 1.36 executables have a virus/trojan? (RDS Cliff)
Just tried installing XC16 on a new computer and my antivirus (Bitdefender) says there is a trojan in the .exe files. Went to the XC compiler download page to re-download the installation program in case I had a bad copy and it looks like the XC16 install..
↧
↧
Latest xc16 Compiler Linux Version doesn't support Compiler response file (AKJ)
I have been trying for the past 2 Weeks to implement a cross compilation toolchain for the xc16 C compiler using Cmake (Since i don't think i could use MPLAB for the the complex project i have in mind). My IDE (CLion) allows me to cross compile and to par..
↧
Assignment makes pointer from integer without a cast (CJP)
Hi, The routine below draws an image on a tft-screen, and although the whole programm works fine and the image is displayed ok, I'm unable to resolve this 'assignment' warning at pS=pS0+n;. I've tried several casts, but as yet not the right one (I'm not s..
↧
USING MORE THAN 32K OF CONSTANTS (Kaisertoni)
Hey, to avoid the problem I am trying to use the __psv__ qualifier but with no success. If I declare a vector of integers and then try to save a single value in a string, everything works correctly: __psv__ const int __attribute__((space(psv))) numbers[] ..
↧
XC16: Different result doing the same calculation in one or two lines. (manuelba)
Hi all!
I was trying to convert a negative number into a positive one to apply an offset and a scale change. The conversion is made using the complement method to 2. (Bit inversion and add 1).
When I wrote the sentence in a single line, using parent..
↧
↧
Question Regarding using ECAN Peripheral with DMA for DsPIC33EP64GS804 (dogusural)
Hello People , In my current project I am trying to create an ECAN network of battery management modules , each node with a DsPIC33EP64GS804 processor . I have been reading the datasheet of the MCU and ECAN & DMA Application notes. Since I have noone ..
↧
long double variable issue with XC16 compiler (zodd)
Hello, I use XC16 compiler v1.34 with MPLAB X v4.15 for a dspc33FJ256GP710. I've got an issue using long double variables. For instance, if I set a long double variable, my program don't work at all, even in debug mode, I can't do a break and step over:#i..
↧
Error: too many positional arguments (MAELIA)
HelloI use MPLAB X V5.15Compiler XC16 (V1.36)microcontrolleur dsPIC 30F4013 I would like to do some macro witch modify a bit in a variableFor exemple i have define a bit : #define FlagX Drapeau,#1 ;Drapeau is a variable My very simple macro !!! .macro Cha..
↧