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

C , xc16 and array of struct (comanchetr)

I experienced a weird thing. As you know array ranges can not be variables. They are pointers and we use malloc etc.. However, I wrote a code something like this and it worked. typedef struct{ int...

View Article


p24FJ256GB106_AP.gld (hasanyildiz)

Hi,I used serial bootloader with c30 and i want to use this bootloader with xc16 compiler.When i change gld file p24FJ256GB106.gld with this one p24FJ256GB106_AP.gld and complied and program the chip...

View Article


Incompatible implicit declaration of built-in function 'snprintf' on XC161.15...

Good morning, I have to convert integer values to array. Previously I used to use itoa(). In xc16 1.24 itoa() was working, but in 1.25 itoa() is unavailiable. So I started using snprintf() instead. In...

View Article

Fast Floating Point Math (aboehler)

Hello, I'm attempting to migrate from V1.11 to 1.25/1.26 of the XC16 compiler. I'm using the fast floating point math option (-fast-math) and the free version of the compiler and noticed that the...

View Article

XC16 v1.25 Standard Library Header Files (rgilliom)

Can anyone tell me how XC16 locates the actual standard library header files used with the C standard libraries? I downloaded XC16 yesterday and it tells me that it is v1.25 even though the web link...

View Article


pic24F08KA102 support files missing ANSA, ANSB (gbr1918)

Hi,I just kicked off a new project using the pic24F08KA102 (which seems just the perfect device for it!).When I compile using XC16, ANSA and ANSB aren't recognised by the compiler which means that a...

View Article

Suggestions for a Good Folder Structure and Files Arrangement (luizsalomon)

Hello. My programming background is (was) assembly. Just love it.It's good to go to the movies and watch "The Matrix" and be the only one to laugh when those green letters are falling, since you are...

View Article

XC16 including duplicate symbol (JanJansen)

Hi, i have been using XC8 before XC16, i noticed its different for some codes, now i wanted to add lcd.h and lcd.c, all the sudden i get duplicate symbol warnings on everything. i have these files...

View Article


Dual partition pragma not working (maarten a)

Hi, I'm using a pic24fj256gb410 and setting it to dual partition mode,the problem is that the code generated by mplab code configurator is not working: // FBOOT #pragma config BTMODE = DUAL // Boot...

View Article


defined struct elements not recognized by compiler (EH)

Hi PIC Community, I´ve defined this struct and these variables:---------------------------------- struct LedColor { unsigned char Red :1; unsigned char Gre :1; unsigned char Blu :1; }; struct LedColor...

View Article

Addressing a Label: in assembler (xjp)

How do I load a W register with the address in my assembler code that corresponds to a Label: so that I can later eg GOTO the address held in that W register. MUST be easy - but I can't see it....

View Article

Flasher help for GM series PICs? (JimDrew)

I am trying to write a bootloader for a dsPIC33EP128GM310 part. I have already discovered that the simulator does not show the proper page erase results, so I have abandoned debugging with it. With...

View Article

Can't allocate DMA memory on a dsPIC33E (theozo)

Hi everyone! I have difficulties with allocating DMA memory on a dsPIC33EP512GP806. I am using the assembler of the XC16 compiler.On the PIC24H/dsPIC33F I used the following to create a section for the...

View Article


HEX-file creation failed. (Shinddo)

Hi everyone, I got this : Executing: "C:\Program Files (x86)\Microchip\xc16\v1.26\bin\bin\pic30-bin2hex.exe" "C:\Users\proxipi\Desktop\out ant\BaliseProxipi.cof"HEX-file creation failed.Loaded...

View Article

bootloader for PIC24FJ64GA004 (s.barbabella)

Hello, I nead to write a uart bootloader for PIC24FJ64GA004 and I have XC16 V1.21 (free edition) and IDE MPLAB X V1.95. I use EZBL library downloded from Microchip but when I biuld the project ezbl_lib...

View Article


Is this a bug, how do I report bugs? (LeeZimme)

I have a function that the compilers don't treat the same.Here is the disassemblyCompiled with v1.26 or v1.25!MIWI_TICK MiWi_TickGet(void)!{0x7D7A: LNK #0x4! MIWI_TICK currentTime;! currentTime.word.w1...

View Article

PIC24: LATABITS has no member named LATA4? (elberto)

Sorry guys, I feel so stupid.... I'm porting some PIC projects to MPLAB X.Using PIC24FJ64GA002 (28 pin) I correcly set RA4 pin: #include ...ANSA = 0;ANSB = 0;ODCB = 0;...LATAbits.LATA4 = 1..

View Article


Extern Checking (LeeZimme)

I am using global variables, who doesn't. I changed type of a variable so it wouldn't overflow.volatile uint32_t sec_time;In other files I noticed I externed them to this.extern uint16_t sec_time; This...

View Article

Problem with float multiplication (stoyanoff)

Greatings! I`m using dsPIC30F5015 and I have small problem. I have a logic which multiplies floats.For example: float val1=268.0; float val2=0.0125; val1=val1*val2; The problem is I`m expecting result...

View Article

error in header file (scrungy_doolittle)

XC 16 1.25P24FJ256GB110.hThe definition of INTTREGappears to be at odds with the manual.Specfically, there is no TMODE , and VHOLD is not present. Which is it? is the header file wrong? I wish to set...

View Article
Browsing all 1508 articles
Browse latest View live


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