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

How to stop autocompletion of comments: dash-star? (RodoPIC)

Hi all,I'm not sure if this is a compiler or IDE setting. Sorry if this is the wrong forum.Every time I type /*, I get an automatic */ next to it. I don't want that, in fact, I don't want anything to...

View Article


XC16 Download Archive (rtoma)

I have just tried downloading v1.21 for Windows of the XC16 from the download archive page: http://ww1.microchip.com/downloads/en/DeviceDoc/xc16-v1.21-windows-installer.exe However I'm getting the...

View Article


PIC24 Assembly Error: Invalid Mnemonic (asmeng)

Hello everyone, I'm writing an assembly program for a PIC24 and whenever I try to define a label, the assembler throws an "Invalid nmemonic" message. I put my code below. Does anyone know what the...

View Article

PIC24FJ1024GB610 configuration words fail initialization using...

It does not appear to be possible to create an assembly language only project for the PIC24FJ1024GB610. The "config" macro used to declare data to be located at the configuration word sections used by...

View Article

How To Convert Binary to Decimal ?? (Abraxas)

Other than a loop, is there and easy way, perhaps with a library function to convert a binary 16 bit number to an int ? Thanks...

View Article


utoa (yeags)

I must be making some obvious mistake but this works with other compilers: char test[] = "MMMMMMMMMMMMM"; //Just some characters to mark the memory utoa((unsigned)123, test, 10);I see the MMMs (0x4D4D...

View Article

Change Notification Interrupt on PIC24 in Assembly (asmeng)

Hi everyone, I'm trying to use an interrupt to turn on an LED when a switch is pressed using assembly but I can't seem to get the interrupt to work. When debugging, I found that the change interrupt...

View Article

Link error about printf (cloud019)

Hi all, When I use printf to show a variable,printf("%d", temp_index); the compiler will show a link errorLink Error: reference to _fwrite in printf_cdnopsuxX.DAeo is not compatible with previous...

View Article


PIC24F - Cannot find recognised SFR names for inline assembler (other than...

I'd like have a chosen phase shift between two PWM outputs. Firsly, a simple complement (inversion), then maybe other phases like quadrature. On a dsPIC33, probably easier - but for now I am using a...

View Article


MPLAB XC16 v1.32B Released (DevMod1)

MPLAB XC16 C-Compiler v1.32B is now available for download here. This release provides for bug fixes and new part support. Please see the release notes for full details...

View Article

warning: passing argument 3 of 'FIR' discards qualifiers from pointer target...

Having problems posting.. trying bit by bit... I have a program that reads samples from the ADC, performs FIR filtering, using the Microchip libraries. As the buffer is acessed by an ISR, I thought I...

View Article

Overlapped sections link error with __pack_upper_byte (Doogie)

I'm getting a suspicious linker error claiming overlapped sections while attempting to use __pack_upper_byte on a PIC24FJ1024GA606 project. This device has 1024KB of flash memory. I intend to use...

View Article

Flasher help for GM series PICs? - SOLVED! (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


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

MPLAB XC16 v1.32B Released....is B for Beta? (RodoPIC)

Hi all, What's the deal with this version of XC16. Did Microchip started using letters instead of numbers now? is the "B" for Beta? Thanks..

View Article


warning: implicit declaration of function 'uart1TxArray' (Rowlandski)

I use the following type of code for debugging/catching errors and it's used in a few places:But i get a warning for only one, which is below: if (picZTPStrPointer == PICZTPMESSAGEARRAYSIZE - 5) { //...

View Article

Write to DSGPR0 and DSGPR1 in C (zetharx)

My datasheet (PIC24F) states that one must write to DSGPR0 twice in a row in order to successfully complete the operation.The page has an assembly example, but when I run inline-assembly in my code,...

View Article


XC16 accessing my Floppy disk when compiling ? (Rogers)

Hi guys. Somebody has yet a legacy Floppy disk Drive in his computer ? It's my case! What a surprise! when I go to compile my code then the FDD light blinks and motors turn on and seeks... what thing?...

View Article

PIC24 Assembly Error: Invalid Mnemonic (asmeng)

Hello everyone, I'm writing an assembly program for a PIC24 and whenever I try to define a label, the assembler throws an "Invalid nmemonic" message. I put my code below. Does anyone know what the...

View Article

Migrating from XC16 v1.25 to v1.32 - linker inserts extra bytes at start of...

I'm updating the compiler to version 1.32 (from 1.25) and, when I compile and link the user code, I've noticed that the hex output contains bytes in the 0-0x1B2 address range. My user code should start...

View Article
Browsing all 1508 articles
Browse latest View live


Latest Images

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