restricted license message (BumpSplat)
I apologize if this is a simple one I should have figured out on my own. I purchased a Workstation License and am receiving error messages when optimizing my code. I've selected the optimization level...
View Articleconfiguration memory (neworld)
I am not able to find any built-in functions that erase the configuration memory. The '_erase_flash' with '_FLASH_ERASE_CODE' as a parameter does not work, since it is for erasing a row of program...
View ArticleHow to set "shadow" and "no_auto_psv" for an interrupt function in CCI...
I wrote first in NON-CCI an intterupt function with "__atribute__((interrupt, shadow, no_auto_psv))", which worked. Then I revised this in CCI as "__interrupt(shadow, no_auto_psv)", which caused...
View ArticleField Oriented Control Source Code (Qwertyqwq)
hello i came here from stm32 family and i'm new around here :) I want to make a pmsm motor driver. This motor driver must contain field oriented control and as you know it requires a microcontroller....
View Articleassembly only mode. (Joel_L)
Hi,I recently jumped on MPLAB X 5.4. After some teething pains with the switch from MPASM to pic-as I got that sorted out and is working well. Now I'm on a project that will use a 24FJxxxxx. The...
View ArticleBuild fails for lack of permission to delete/modify file it just created. (JJay)
This may be an MPLAB-X issue as I've seen similar with the XC8 compiler, and multiple versions of MPLAB-X. Currently using v5.40 or v5.15. Basically, I can build my project just fine, repeatedly. Then...
View ArticleXC16 v1.60 is on the Download Page (GlennP)
I gave it a quick test with a small-ish program and the resultant code was identical to v1.50 - using the free version. But I didn't happen to have anything covered by any of the changes. It did hang...
View ArticleMPLAB XC16 v1.60 Released (DevMod1)
MPLAB XC16 C-Compiler v1.60 is now available for download here. This release includes:This release introduces certain features to improve customer experience and bug fixes.New feature added that...
View Article.struct assembler directive (mskala)
Has anyone successfully used the ".struct" directive in the XC16 assembler? If I run the command-line assembler, version 1.60, on any file that declares symbols in the absolute section with struct -...
View ArticleSoft 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...
View Articleasm("reset"); not the same as power reset (BigOrangeFish)
Hi there! I use the command asm("reset"); to reset my dspic33ch128mp508. Only the processor is not resetting very well. It resets, but is hanging at the beginning of the code. I think there are...
View Articleasm("reset"); is not working property, chip is not re-starting. (BigOrangeFish)
Hi there, I cannot hard reset my chip dspic33ch128mp508 with the software command asm("reset");. My chip is not reset properly, it seems that the processor restarting but does not startup property. I...
View Articleaddresses different in hex file and what is declared in code (David0405)
Hi all,I'm newbie with microchip and C language.I have a project with PIC24FJ128GB106.When I declare this:UINT16 const __attribute__ ((space(psv), address(0x6C00))) InitStatus = {0x1234,0x5678};When I...
View ArticleLinker and overlays (mskala)
Has anybody successfully used the OVERLAY directive in linker scripts? As far as I can tell, it has a bug that makes it unusable: although all the input sections within an output OVERLAY section will...
View ArticleBug in the dsplib and workaround (=SM=)
The function "FFTReal32bIP" from libdsp contains a bug. Libdsp was taken from compiler v1.50This function returns complex conjugate value for the "central" (N/2) sample of spectrum, and correct data...
View ArticleConfusion on Fixed Point Implementation (dsPIC33CH) (joey5398)
Hello everyone, I'm having some trouble with implementing some fixed point math on a dsPIC33CH. I'm currently using the DSP library to do some interpolation/filtering and other vector operations on...
View ArticleXC16 W0 WREG (FerrariLuigi)
Dear all, I'm using XC16 compiler gcc version 4.5.1 (XC16, Microchip v1.50) Build date: Jan 16 2020 (Microchip Technology) to develop a project based on PIC24FJ256GA106. I have a the following code:...
View Articlemodulus and angle of fractcomplex variable (Maple)
Hello everyone! how to get the modulus and angle of fractcomplex variable? Is there any build-in library functions I can use? if not, would anyone can give me some example? Thx!..
View ArticleXC16 - v1.32B - elf-objdump.exe has stopped working (dennisnguy)
Hi Everyone, I got the "elf-objdump.exe has stopped working" error message with XC16 - v1.32B (note: there is no issue with XC16 v1.31, v1.30, v1.26)I'm using MLAB XIDE v4.0, windows 7 version 6.1.Here...
View Article