Quantcast
Channel: MPLAB XC16
↧

Bootloader Application Post-Build Script Puts CRC in Wrong Location...

I am trying to use the 16-bit Bootloader library to create a bootloader and an application. I've managed to build both, load the bootloader onto the PIC24 using a PICKit3, and then load the application...

View Article


Bit corruption, XC16 uses read modify write instead of bclr f,#bit4 ? (user2x)

XC16 1.45 PIC24FJ64GA702This is related bit corruption caused by interaction of interrupt code and normal code The compiler uses read modify write instead of direct bit operation BCLR f,#bit4 I have a...

View Article


PIC16F18326 DFP pack 1.15.191 is broken (cbeif)

I am getting these messages, when I compile using XC8 V2.31, does anyone know how to fix this? Non line specific message::: warning: (1020) unknown attribute "CONFIGPROG" in chipinfo file "C:/Program...

View Article

Controlling how the compiler compiles the project (Timo)

Hi, a newbii MPLAB X 6.0 question. Is there any way of controling the compile in MPLAB X? The project works when i have it in main.c but when i move parts of it to separate *.c files it's goes totally...

View Article

nbproject/Makefile-default.mk:118: recipe for target .... failed (Bit79)

Hello,I have a strange problem (for me) with a dsPIC30F6010A project in MPLAB X (V5.10).Often (non ever) during building project i have this error: make -f nbproject/Makefile-default.mk SUBPROJECTS=...

View Article


DC/DC Boost Converter (naeem1234)

Hello everyone I am looking for some help about how to implement a DC/DC boost converter with a dsPIC33? Your help is highly appreciated...

View Article

Point to GPIO register (smhn24)

Hi everyone, I have a new project and in my code, I want to read the live status of GPIOs inside an array of my custom struct.My opinion is to define a pointer property inside of struct that points to...

View Article

Undefined Reference error (sbukhzam)

Hi folks, i am testing the board IOT Sensor for Google cloud (AC164164) and when following the steps in the User's guide i got errors as below...any comments are appreciated.i tried on both versions of...

View Article


Compiler Optimizing Out Particular SPI Command (bassbreaker)

I am using a dsPIC33 and the system is working as expected, but when I turn on some optimizations, one particular SPI command does not seem to be sending and I don't have any intuition about what is...

View Article


BOOTSWP on PIC24FJ1024 is accepted, but code run after is from same partition...

Hi folks, I'm stuck on this one. I'm using a PIC24FJ1024 in dual partition mode (with MPLAB3.61 and XC16 v1.31), and programming the inactive partition with new code from within the running code. I...

View Article

Are the xc16 v2.0 libraries reliable? (bigkaba56@yahoo.it)

I tried to compile a DSPIC33EP512GM710 project (with version 1.60 it works perfectly) with the new version 2.00 First issue: using the vfprintf, i need to know the format of the FILE structure but it...

View Article

Optimizing DDS math for dsPIC33 (AndreaS73)

I'm using a dsPIC33CK256MP508 running at 100 MHz (FCY) to generate 3 waveforms with a DDS algorithm.Cutting down the whole problem, please look at this code: volatile DDS_t DDS;volatile uint16_t...

View Article

Newbie XC16 question (jackson_sweden)

I recently started to play with XC16, coming from smaller 8-bit devices using MPASM.Reading the manual for XC16 is says: "Unlike the MPASM™ assembler (for use with 8-bit PIC® MCUs), MPLAB XC16...

View Article


Software Reset for PIC24EP (StevePye)

XC8 comes with a RESET() macro (in xc8debug.h) that's #defined to asm("reset"). Is there an XC16 equivalent macro? Or builtin function equivalent?..

View Article

Compiling testprogram for dsPIC33CK512MP605 question (jackson_sweden)

Hello I have recently started to try the dsPIC33CK512MP605 and I made a simple testprogram to get familiar with this device.I have a question as below: This is the simple program: .text .global __reset...

View Article


Combining assembler and C in one project (jackson_sweden)

Since myself is fond of assembler and since MCC offers code generation in C my question is as follows:Can I combine assembler and C in one project?Is it simply put to place both .S and .c files in the...

View Article

new to microchip / looking for library reference (AZZ)

Hello all,we are moving to PIC24 from other company tools etc. am working in MCPLAB IDE / SC16looking for a library ref for the xc16 compiler and haven't had much luck.I must be missing something...

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

Shared program memory constants across Loadables? (mfarver)

Is there a way to specify a constant at a fixed address in program space without having the linker actually generate data for that memory area? Basically in my application I have a const part number...

View Article

ADC1Interrupt not remapped correctly in bootloader application image...

Using MCC (PIC24F-GL-GU_DFP v1.5.121, Core v5.4.11) to enable a PIC24FJ512GL408 with bootloader + application with compiler XC16 (V2.00). Application without bootloader works as expected. When the...

View Article


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