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

XC16 the problem of multiple definition file.h and .c (PicLikeds)

Hello,This is my first post, so at the beginning I apologize for any errors and I am asking you for patience :)I am trying to divide my code from main.c into files in the logical directory respectively...

View Article


Reference to the variable in h-file problem (amctech)

Hello,I am trying to run "ECAN_Crosswire" app on DSPIC33FJ256MC710. The app is a ready to use example of ECAN Bus programming exactly for that chip. I believe the app itself was written not for xc16...

View Article


Compile error 'unrecognizable insn' (johndsd)

I am getting a compile error 'unrecognizable insn' for a function called 'intrp3d_u8u8s16n10l_ne' which is auto generated by Simulink embedded coder. The strange thing is that it compiles fine for a...

View Article

Lab-04 exercise bug? (danielsoy)

I have got a problem with LAB-04 exercises. Where can i post ?..

View Article

It was working, but now it's not! (RogerAF)

I have a dsPIC30F4011 on a solderless breadboard, a PICKit3, and MPLABX version 5.10. I wrote a little program to blink an LED and was successful in building it and programming the chip. I'm using...

View Article


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...

View Article

inline assembly (scrungy)

I am attempting to create a simple inline assembly function, and really don't understand the advanced parameter stuff Because a while (!SPI1STATLbits.SPIRBF); generates a lot of overhead, I would like...

View Article

Manual EDS management in assembly function (opieters)

Hi I want to read from a buffer allocated in EDS (efficiently) inside an assembly routine. I am using XC16 version 1.36 and the microcontroller is the dsPIC33EP512MC806. However, either the compiler...

View Article


FatFs and long file names (K3PTO)

Can anyone give me some clues on how to get Long File Names working? I modified ffconf.h as follows: #define _USE_LFN 1 #define _LFN_UNICODE 0 // I have no need for unicode. and I added ffunicode.c to...

View Article


dspic33ep64mc504 32bit timer timer2:timer3 (seyyah)

I think there is a problem with this timer. I'm using timer2/3 in 32 bit mode @70MHz. When I read it I use this code: countValLower = TMR2; // read lsw firstcountValUpper = TMR3HLD; // then read...

View Article

macro errors and optimizer (scrungy)

IDE 5.15 XC16 1.36For some reason I cannot get -O1 to produce decent code for the following so I decided to try to optimize it with macros\ I have attached the pin_manager.h, the TFT_ST7735.h and .c...

View Article

SPI flags (scrungy)

I have questions about the SPI flags. The MCC generated cod for an 8 bit exchange somehow seems wrong.in pseuo-codespi_exchange(...){ while (SPISTATLbits.SPITBF==true) {} SPIBUFL=data; while...

View Article

finding declarion from libraray (mean_machine)

hello all I have old code that i need to migrate to another chip the code built using XC16 and using Dspic33F, i need to find the declaration of some function that been used like spi functions like...

View Article


adc taking time to read analog value (yo123)

hii , i am reading adc value using PIC16lf15344 and display it on seven segment display using multiplexing.it work properly but thing is that at the time of adc reading it take some time and eventually...

View Article

All code moved to boot segment (Sean831)

I am trying to move all of my code to the boot segment before the aivt. I was able to move most of my code but the irq routines and the compiler generated functions (.text and .dinit sections) are...

View Article


PIC24HJ64GP504 IVT relocation (Picchettino)

Hi all, I'm using a PIC24HJ64GP504 with MPLAB IDE v5.15 and XC16 v1.36 C compiler.I have used the --no-ivt linker option to not generate the default IVT/AIVT tables and I have relocated (modifiing the...

View Article

Disabling warnings on section of code or single file in project (JimWoodworker)

I put the Microchip code from an appnote to capture a math error trap and modified it for my application to write the captured data off to non-volatile memory in my system and reset the processor....

View Article


Add one special Hexline to Hexfile after Building (Volker)

Hi, can i automatically add a special Hexline with e.g. a Board Id to the Hexfile after building? Thanks!Volker..

View Article

is this a compiler bug? (scrungy)

XC16 1.36! {This is problematic. Why would the compiler multiply by 4 on a sizeof(void *) .Needless to say, this is causing crazy program results.IF you multiply by 2 instead it yields the correct...

View Article

what is void *payload? (kamyip)

Hi guys,I have problem understanding "void *payload" in the code below:typedef uint32_t (*timercallback_ptr_t)(void *payload);typedef struct tmrStruct { timercallback_ptr_t callbackPtr; void* payload;...

View Article
Browsing all 1508 articles
Browse latest View live


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