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

MPLAB IDE and GIT (guiferra)

Good morning,I have a MPLAB project saved in my PC.I have a GIT Server installed in a network server. I would like put the local project under version control in a repository in the GIT server.Is it...

View Article


Common constants for C and assembler (BobT)

Apologies if I've missed something really obvious, but is there a straightforward way to include common constants (eg array sizes) for C and assembler routines using XC16 on a PIC24F target ?...

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

trouble downloading MPLAB XC 16 compiler (nheft)

Tried downloading MPLAB XC16 latest version (1.70) but I get this internal server error {"StatusCode":500,"Message":"Internal Server Error while processing request..."} Is there a possibility of...

View Article

sizeof, size_t, layout (sjb741)

Say you want to be careful about defining a union where one member is a "byte" array which overlays a structure. You use and types like uint8_t. Also, you are sending the structure serially, one...

View Article


Still trying to wrap my head around codeguard (JPortici)

Long story short for a new project the bootloader must be secure(tm)device is dsPIC33EV256GM106. I can't find a code example that showcases the features (there are old code examples that rely on old...

View Article

How can i place an assembly routine in BOOT sector? (JPortici)

dsPIC33EV256GM106i have several assembly routines (including progmem check, decrypt, key storage) that i want to put in the protected boot sector. Boot sector is enabled by configuration bits BSS2 = ON...

View Article

How to open additional I/O streams in XC16 (Vegas Mike)

Has anyone had success creating additional I/O streams beyond stdin, stdout and stderr? The MPLAB X16 Libraries Reference Guide describes in section " Input and Output" how to create additional...

View Article


Generate PWM signal using MCC (Digital101)

So I'm brand new to PIC microcontrollers but have used AVR/ARM boards in the past. I have the dsPIC33CH CURIOSITY BOARD and I'm trying to generate a PWM signal using the code generated by MCC. The only...

View Article


LED Blink (Antonio21)

Hi I am trying to interface a GPIO output to blink an LED. I am using a MPLABx IDE 5.50 with code configurator 4.2.1 Compiler X16 v1.70 chip dsPIC33CK256MP506 When I iplement the LED_Toggle() function...

View Article

Creating a different sfr mapping (scrungy)

I have tried to create a copy of LATG and give it a new name, and then group the bits. Microchip gave me one solution, that while it does work if you include it in one module like main, it does not...

View Article

Determining current optimization level, including function-specific...

__OPTIMIZATION_LEVEL__ seems to be set to the optimization level invoked on the command line, but does not change if the optimization level for a specific routine is changed using an attribute such as...

View Article

Using global C variables in C called assembly functions (atonyb)

Hi everyone, I really wasn't sure where to post this and apologies for what may be a very basic question... I'm trying to write some C callable assembly functions for my dsPIC project to access DSP...

View Article


Test Post (guiferra)

This is just to check if I am able to publish posts.Thanks.GF..

View Article

Erroneous duplicate case value messages (perdrix)

I have: switch (request) { case Request_Sync: { uint16_t hml = (SPI_Received & 0x0C00) >> 8; // // If not in the middle of s sequence of sync messages // set our working variable to zero. //..

View Article


MPLAB X IDE + XC8 + XC16 ? (gunzelg)

Helloactually i am working on a PIC18 project. But i want to continue on a further project i once started with a dsPIC30F4013. Is it possible to install the XC16 to an existant installation of MPLAB X...

View Article

How to create a binary for PIC24HJ256GP210? (erikS)

How to create a bin form hex or elf with the help of "xc16-objcopy"?Which are the correct parameter for PIC24HJ256GP210?Maybe it isn't possible. Which devices are supported at the moment? Best,Erik..

View Article


[Help]XC16 compile result contain unreachable function (Kaka)

compiler: XC16 1.35 workstationoptimization: s Code and data mode: default I wrote some uncalled functions, these functions will be showed in the hex file.How to prevent? Thanks!..

View Article

Register addresses (Spectrik)

Hi all I have not used any Microchip compilers or IDE's before because let's say there were better available and for some time I have not been using Pic micro's either as was working on Motorola and...

View Article

Recursion detection (DTM)

Using XC16 v1.50 and PIC24FJ256GA106, MPLABX v5.35Analysing Call Graph i see that some funcions are marked "recursion". Unrolling a hundreds of functions, for finding recursion events is very...

View Article
Browsing all 1508 articles
Browse latest View live