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

Floating point in dsPIC33 (luker)

Hi forum, on my way to 3-phase AC Induction Motor control, I came across document "GS004". It mentions "fractional multiplication" at one point, which is done in assembler instruction "MPY". Am I right...

View Article


EDS address problem (latchup)

May be related to http://www.microchip.com/forums/m1025615.aspxAfter updating our XC16 compiler from v1.26 to 1.33, I have once again got bitten by a new EDS addressing bug: Adresses of array elements...

View Article


XC16 problems with large numbers of doubles (aekalman)

Long-time XC16 user here ... We have recently encountered / discovered a really weird issue, whereby our use of double-sized variables and function parameters/arguments points at something wrong in our...

View Article

Correct Way of Reading & Writing using SPI (dogusural)

Hello all , ı am trying to send 3 bytes of information, then stuff 3 trash bytes , then read 3 trash bytes and then read the 3 remaining meaningful bytes. Is my way correct way of doing this ? And how...

View Article

Changed from C30 to XC16. Problems with linking (user2x)

Hello I just changed compiler to XC16 and the project I build no longer works. Problem1 : Link Error: relocation truncated to fit: WORD - HANDLE S6P_table Ok, it needs a far call or pointer but how do...

View Article


xc16 v1.33 delay.h obviously I'm an idiot (TBayPic)

OK so I download and update xc16 to 1.33 and my code won't compile.OK so I download the documentation and nothing to solve the problem.OK so I download the support files and nothing to solve the...

View Article

Peripheral library not included in my project (stinf)

Hi all!I have a strange problem with a peripheral library.I use: MPLAB-X 4.05, XC16 1.33, Windows 10. My MCU is a PIC24FJ128GA308. My collegue sent me a project I am not able to compile. After many...

View Article

Doubts about struct and union (elberto)

Hi guys, I'm migrating from C30 to XC16 and I have a bit confusion about structs and unions due my old code is working no more in XC16...struct s_MyTest{ INT8 Tipo8;

View Article


Turning off variable auto initialise (rje106)

Hi All I've been working on some code written for a PIC24EP device and compiled using the XC16 compiler. I've come across some unexpected behaviour that I'm hoping can be disabled. For some unknown...

View Article


Makefile conditional steps for some build configurations? (jeff_d)

I've got several projects each containing multiple configurations and in the build process I'd like to do some post-build processing only on half of the configurations. This is not my application, but...

View Article

Compiler throws error on dsp code part (Daimonion)

Hi I'm trying to compile a math library which was developed under c30 v3.30. One function works with some dsp function like __builtin_sac,__builtin_mac, etc. The function defines at the top a variable...

View Article

CAN messages with different message IDs (uc1)

Hi, I am using to use DM330018 demo board to learn the CAN message receiving. the demo board link: http://www.microchip.com/...V+CAN-LIN+Starter+Kit+I am only playing the CAN receiving part for this...

View Article

Curious questions about the compiler optimization (jeff_d)

I have this small section of code which basically initializes 3 values in 3 32-bit arrays. The compiled code has me curious why it was done this way... This is just a why question of what's internal to...

View Article


psv space linker question (user2x)

as soon as I start adding a few lines of debugging code to this project here, I start getting liner errors like this: build/default/production/_ext/1360937237/ppp.o: Link Error: Could not allocate...

View Article

Debugging: Can I redirect printf or putchar to the MPLAB X console? (user2x)

Instead of going through a UART, can I go through the debugger and have output ending up in some window?I ask because I have no spare uarts when I have the debugger connected to the dsPIC33EP512MU810....

View Article


XC16 compiler not grouping all the code for each section together...

I'm starting to cross over my established code from MPLab 8.92 to MPLab X 4.10. I work entirely in assembly and one project uses the dsPIC33FJ256GP710A. It appears that the XC16 compiler is letting the...

View Article

warning: ignoring #pragma FWDTEN (user2x)

Hello and another quick question: I just noticed that I get this warning warning: ignoring #pragma FWDTEN Why is it ignoring my #pragma ?: I have this at the top of main:#ifdef __DEBUG #pragma config...

View Article


When you can't trust the XC16 Compiler? (arigead)

I'm a printf debugger, there's pros and cons but at present XC16 ain't playing nice. I'm running on a dsPIC33EP256MU806 and because of Peripheral Mapping of IO Pins, or whatever that's called, I have...

View Article

How to save mla projects (JustRob)

I used the visual graphics design developer to do a 3.5" lcd design for Microchip's pic24fj256da210 development board and their 3.5" Truly lcd. It uses a lot of the v2017_03_06 mla. I'm trying to get a...

View Article

__external__ pointers (of data in external RAM) passed as function arguments...

I ran out of internal RAM of my PIC24 and thought I would be smart and move some large structures out to the external SPI RAM chips. I wrote the __read_external() and __write_external() ram driver...

View Article
Browsing all 1508 articles
Browse latest View live


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