Quantcast
Channel: MPLAB XC16
Browsing all 1508 articles
Browse latest View live
↧

[XC16] How to "ExClude" or "UnLink" libm-coff.a library file ? (Neiwiertz)

At the map file some math functions are used/ included like: libm-coff.a(udivsi3.epo) Is it possible to exclude or unclude or unlink or by an compiler option to accomplish that file:libm-coff.a is not...

View Article


Another question about end of memory... (balmerjd)

I know that there have been a lot of these going around lately, but I have a slightly different question on the matter. From what I've seen most everyone is asking about being able to allocate...

View Article


How to map asm instructions at fixed adress in PM in a mixed C/asm project...

Hello all, I would like to add specific asm instructions (and not complete subroutines) at given PM adresses in a c project For instance, I would like to add a NOP or CLRWDT or BRA instructions without...

View Article

dsPIC33EP512MU810 - How to read the PWM Primary Master Time Base (PMTMR)...

Hello people, I'm using the PWM1 module of dsPIC33EP512MU810 in some projects. Everything is working well. But today I need to read the PMTMR... the source clock of PWM (please, see picture attached -...

View Article

using fixed point math library (salish maharjan)

hi,I am using xc16 compiler and i want to use libq.h for fixed point math. I also provided a linker option -lq in the command line of the compiler but i dont know how to link with the library file...

View Article


Query regarding the Q15 and Q16 math operator (amtech)

Dear sir, I want to use Q15 and Q16 math function. If i find square root value of given no. using Q15/Q16 format, what is a way to use this operation?I use Q15 and Q16 math operator as per 16-Bit...

View Article

PIC24F_periph_features.h missing definition for PIC24FJ128GB202 (Ben Crundwell)

I'm using a PIC24FJ128GB202 in a new design and am having trouble using the peripheral libraries as the PIC24FJ128GB202 is not listed in the PIC24F_periph_features.h file. Is there an updated version...

View Article

Begginer mistake with XC16 - Or - A very frustrating experience in upgrading...

I had some dsPIC chips lying around, from many years ago, and I decided to put them to use in a small light automation project for a friend - a simple state machine that alternates between blinking...

View Article


Question on bootloader written in XC16 (PoorEng)

Hi all, I want to write a bootloader in XC16(v1.11) and MPLAB X(v1.85) for dsPIC33FJ128GP802.I modify the gld file to place the bootloader code between 0x400 to 0xBFF.I don't finish the bootloader...

View Article


How to write in the Flash of dspic33EP512MU814 (Mwen Dzao)

Hello everybody, I'm programming an automatic temperature superviser using dsPIC33EP512MU814I would like to have a some space in the flash to put the configuration (depend on customer).I tried to...

View Article

XC16 v1.23, MPLABX v2.30 aren't create a vector for PIC24F16KL401...

The chip is PIC24F16KL401, the compiler is XC16 v1.23, the IDE is MPLAB X v2.30.See the example project attached.The problem is the absence of interrupt vector for output compare 1 interruption. This...

View Article

warning: 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 Article

MPLAB XC16 v1.24 Released (DevMod1)

MPLAB XC16 C-Compiler v1.24 can be downloaded here. This release provides: New part support Add support for alternate register sets which are available on some devices Please see the release notes for...

View Article


Strange behaviour of _memcpy_p2d24 with compiler XC 16 (david.novak)

Hello, Recently I've run into a strange behavior of _memcpy_p2d24 which I really don't know how to explain.I'm writing an application for dsPIC30F6014A-30I/PF using MPLAB X IDE v2.26 and compiler XC 16...

View Article

Strange Compiler outputs (dantech8)

I have this struct: typedef struct { unsigned short patternLength; PatternEvent events;} Pattern;--- snip ---Pattern currentPattern;--- snip ---Then I'm running this:currentPattern.patternLength = 64;...

View Article


PIC24FJ64GA002 SPI Clock (vijayaraghavan)

Hi, I am a newbie to PIC24FJ series and SPI communication. In fact, this is my first time I am using SPI communication. I plan to use a 16MHz external oscillator as I have read somewhere that internal...

View Article

xc16 compiler fails with optimization (idc.rachel)

I'm running the latest version of the xc16 compiler. When I turn optimization on (Level 1), it breaks my program. Is there any known solution to this problem?..

View Article


Linker question. Locating and reserving program memory. (jcvel)

I need to locate function(s) on a specific program area.Sayvoid funct_1(void)// andvoid funct_2(void) On 16-Bit Assembler, Linker and Utilities User’s Guide page 216 says:11.12 LOCATING AND RESERVING...

View Article

Potential glitch with XC16 compiler... (balmerjd)

I will start by saying that I am not 100% certain this is a compiler problem but it sure seems to be. Long story short, I have a program that is doing a running average on data coming in on an SPI port...

View Article

XC16 license issue (Ken Davidson)

I'm running MPLAB X IDE v2.15 and XC16 v1.21. I have a workstation license for XC16 and have applied the activation key for it. I've also confirmed that a license file is located in the folder at...

View Article
Browsing all 1508 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>