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

Volatile declare struct or variables ? (JanJansen)

Hi, suppose i make a struct, where do i place volatile ? volatile struct{volatile short s;volatile union{ volatile char c1; };}; To be safe i placed volatile everywhere.How does it works ?thanks..

View Article


fileio_config.H,fileio_media.h (dnd)

hi, all, I am trying to incorporate usb composit usb host+hid on pic PIC24FJ256GB206, mplab X V 3.15, XC16 V1.25,and microchip mla\v2017_03_06\framework\usb.After inclusion of all c and header file...

View Article


How to create an array of port pins (PIC007)

I am trying to access LEDs connected to various port pins using an indexed array, but can not get this to work. The aim is to index the array and light each LED in turn. As a test code snippet: #define...

View Article

error: converting to execution character set: Invalid argument (ShaunSquatch)

I am working with a display using 16 bit Unicode, XC v 1.33 MPLABX v4.05(have included stddef.h, dspic33EP512MC506) Why is it that this line:wchar_t mystring[]=L"ABCD"; compiles fine However, this...

View Article

XC16 V1.33 update problem (davea)

IDE v3.65 Generation Information : Product Revision : MPLAB(c) Code Configurator - pic24-dspic-pic32mm : v1.25 Device : PIC24FJ32GA004 Driver Version : 1.02ERROR with mcc.c when XC16 v1.33 was...

View Article


Placing variables in EDS (GoEk)

Hi,is there any way to place many variables in the EDS RAM without cluttering every variable like.. __eds__ int __attribute__ ((eds)) a; __eds__ int __attribute__ ((eds)) b; In other compilers I have...

View Article

XC16 standard library and EDS memory (GoEk)

Hi,I have been googling, searching the Compiler and Library doc's and the compiler options for any information about using the libraries with EDS arrays/pointers but I cannot find anything definitive....

View Article

Storing a .txt in the file structure to access? (kboudreau)

Hi, I'm working with a PIC24FJ128GA202 and have a file that I'll need to transfer over serial pretty regularly. Is there any way to store the file in the project file structure, then easily access and...

View Article


The XC16 compiler fails on the __prog__ directive when using the -ansi...

This code fails to build with the XC16 compiler:/* * File: main.c * Target: PIC24FJ256GB206 * IDE: MPLABX v4.05 * Compiler: C30 v3.31, XC16 v1.33 * * Created on December 15, 2017, 5:40 PM * * Notes: *...

View Article


__builtin_write_NVM broken on XC16 PRO v1.26, v1.33 (jneudorf)

With the "pro" license enabled on v1.26 and v1.33, the xc16 compiler optimizes __builtin_write_NVM ... and breaks things. The PRO version generates code as follows: rcall .LPA0 ; 486 ... 489 bset...

View Article

Intel HEX format question (toms)

Hi all. Sorry if there is a better place for this, the output is from XC16 so I figured I'l stick it here. Im looking in to options and methods for creating a bootloader and distributing firmware...

View Article

Using __builtin_write_NVM, etc (XC16) (rallyr)

I'm trying to erase and rewrite a part of Program flash memory in my dsPic33EP256GP504. I have no trouble with the builtin XC16 functions to read flash, and I get exactly what I expect. But the write...

View Article

Lean and mean float to string function (PIC24FJ series)? (BobAGI)

If I use the sprintf function to convert a float value to ASCII it brings on a large expansion of the flash memory size.I have found in the past that using printf and sprintf consumes a lot of flash...

View Article


Cannot Debug PIC24F. "Target device is not ready for debugging..." (asmeng)

Hey everyone! I'm getting the following error when I try and debug my program using the PICkit3: "The target device is not ready for debugging. Please check your configuration bit settings and program...

View Article

xc16 - pickit3 - dsPIC33EV256GM102 - Invalid Device ID. (hoylegj)

Good evening, I'm being stupid and don't understand what I'm doing wrong. I've been using PIC18's for a few years now and all is good, and I wanted to port to a 16bit processor. Thats when is all went...

View Article


Clubber accumulators into asm inline does not work (roskad)

Hello, I was developping a small code in asm inline for a faster execution but i do not manage to clobber accumulators. The code below :asm volatile ( "MOVSAC A, +=2, W4, +=4, W5 \n" "MPY W4*W5, A,...

View Article

Make support for command line passed parameters? (jeff_d)

What's the syntax for passing code values through the makefile from the command line?For example I'd like to do this:make major=10 minor=1 build=10 allIn the past, I've done something similar by...

View Article


PIC18 EEPROM Write Rejected (tarun172)

Hi All, I am trying to get to the bottom of an unique problem I came across few days back. This happens sporadically and I cannot seems to find a good answer for this problem. I have a situation where...

View Article

MPLAB XC16 linker errors, intermittent (Xantorio)

I am using MPLABX IDE 4.05 with XC16 v1.33 for a dsPIC33FJ128MC204 micro, running on Windows 10.All of a sudden I am getting link errors, couldn't allocate bss storage ... for a long list of variables....

View Article

How append string? (elberto)

Hi to all, I'm porting code from C30 to XC16..... UART2_TX_Buffer filled with all 0x00 ClearBuffer(); // fill buffer of 0x00 (for debug)...UART2_TX_Buffer_ptr = UART2_TX_Buffer;strcat((char...

View Article
Browsing all 1508 articles
Browse latest View live


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