How to implemet fractcomplex multiply operation (Maple)
Hello everyone! I wonder if anyone knows some "fast" fractcomplex-type multiplication routine.I am using the belowing one, but I think it is not so optimized. Does anyone can share his idea on...
View ArticleXC16 - Discarded sections (megaboy)
I try to determine which sections (in data or text) were optimized out by linker if all appropriate flags are set:-function-sections, -fdata-sections and --gc-sections for linker. I really see that...
View Articlelong int compare ..... (FerrariLuigi)
Dear all,I'm debbugging a sotware compiled with XC16 ver 1.54The MPLAB-X release is 5.34 and the PIC is PIC24FJ256GA106 I have the following code unsigned long Address;......... if (Address >...
View Articlefast approximate algorithm of phase for complex number (Maple)
Hello everyone!I am using dsPIC33CK64MP506 MCU, XC16 compiler v1.41.I want to get feature data of a fractcomplex-type data, which are its magnitude and phase.I found build-in functions...
View ArticleQuestion about uint32_t values not working correctly sometimes (user2x)
I have a problem: XC16 1.41 I have a function and the a call to it:void Watchdog_StartTimout_ms(uint32_t timeout_ticks){ uint32_t something_else = timeout ticks;}<..
View ArticleFunction Pointer Problems XC16 (TomasParrado)
I’m trying to port over an old program I wrote for an an 8bit PIC in XC8 to a dsPIC in XC16 and it won’t compile. I’ve used 8bit PIC for several years, but this is my first time using the XC16 so I’m...
View ArticleFunction Pointer Problems XC16 (TomasParrado)
I’m trying to port over an old program I wrote for an an 8bit PIC18 in XC8 to a dsPIC33 in XC16 and it won’t compile. I’ve used 8bit PIC for several years, but this is my first time using the XC16 so...
View ArticleFunction Pointer Problems XC16 (TomasParrado)
I’m trying to port over an old program I wrote for an an 8bit PIC in XC8 to a dsPIC in XC16 and it won’t compile. I’ve used 8bit PIC for several years, but this is my first time using the XC16 so I’m...
View ArticleRepeat value in .fill now needs to be a constant (dkark)
I am trying to use .incbin to include a smaller file in a (larger) fixed space in data memory so that if the file changes size from over time, it will still sit at the front of the allocated space. In...
View Articleint24_t conversions for XC16 (TomasParrado)
I have an intermittent stream of 8bit SPI data in 32bit chunks that I need to work with that is in the form; 8bit command + 24bit signed data. I'm on the slave side and cannot alter the command/data...
View Article__resetALT (FerrariLuigi)
Dear all, I wrote my own bootloader for PIC24FJ256GA106 project using MPLAB-X 5.35 and XC16 toolchain 1.50It works, it loads the user program in flash and jumps to the correct entry point location.Of...
View ArticleVariable doesn't update in callback function (lucciodelavegas)
Hi, can someone explain this problem? my variable "sixD_src" is not updated when used in a callback. This works with a flag and variable "sixd_src" used in mainbool accFlag;void EX_INT1_CallBack(void){...
View ArticleFixed Point Q1.15 in XC16 (dsprogrammer)
The device is dsPic30F4011. The compiler is XC16 v1.50.I am writing a c main file with an assembly file. I want to use Q1.15 fixed point for mac operationI have specified the variables as fixed point...
View ArticledsPIC33CH valid slave PLL setting (oliverb)
OK so I improvised something that should flash a LED once per second. It is actually taking twice as long though, but anyway... I tried adding master settings to boost the frequency to 40MHz and I get...
View ArticledsPIC33CH configuring slave ADC clock in MCC (oliverb)
I've found DS70005213G so I'll try to figure it out for myself but the configuration options in MCC appear to make no sense at all, I have a choice of:AUX VCO DIVMUXFOSCFOSC/2PLL VCO/4 Now since the...
View ArticleXC16 Linker Bug with Boot Sector and AIVT, dspic33ch (olso4539)
I'm experiencing a problem with the XC16 linker which I believe is a bug. The linker refuses to allocate most of the entries for the alternate interrupt vector table, as well as other small manual...
View Articlewarning: Negative offset for 'variable' (Szidor)
Hi! What does the warning "Negative offset for 'variable'" mean? "variable" is the name of a global static data variable. Thanks,Szidor..
View ArticleDefault alignment of auto variables declared in a block (dkark)
I am tracking down a bug that occurs very infrequently doing some maintenance on code written long ago, that creates an annoying error periodically. If an auto variable is declared in a block (and is...
View ArticleXC16 v1.50 "assignment discards qualifiers from pointer target type" (Shuaah)
Hello,I have the following structure defined in my code to implement a circular queue:typedef struct{ PWM_BUFFER_ENTRY *head; PWM_BUFFER_ENTRY *tail; PWM_BUFFER_ENTRY buffer; bool enabled; bool...
View ArticleMPLAB XC16 v1.61 Released (DevMod1)
MPLAB XC Compiler v1.61 is now available for download here. This is a bug fix release, please see the release notes for full details...
View Article