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

Writing to Flash in PIC24FJ256GA704 (K3PTO)

I need some data flash in the PIC and the only flash available is the program flash. I have tried to follow the instructions but am getting nowhere. I am now having trouble even reading the program...

View Article


Applying HPA Doesn't Work - Solved (nbeddoe)

Hi Everyone,I own an XC16 workstation pro licence and I've just bought an HPA after letting the old one run out a few years ago. I definitely have the right HPA and compiler combinations but clicking...

View Article


sim808 response code 405 when tried to send the data on server (yo123)

hi, i want to send the data on server using http in sim808, but i get 405 response ,below is the AT command that i am using please go through it and suggest where i am wrongthanking youyogesh AT+CSQ...

View Article

Cannot run XC16 at all!!! (CPMLSA)

I purchased licensed version of the XC16 & got the install file (about 95 Mb).I installed it & I submitted HOST ID for my PC.I then received the numbered pass code (4 groups of numbers).Once...

View Article

Anyone done scalable fonts on the PIC 16 bits? (LdB_ECM)

I got excited by $6.00 ILI9341 320x240 colour screens and made a board connecting it to a 24FJ256GA705. Works beautifully but you forget how big a 320x240 will require screen fonts like between 32 and...

View Article


Conditional library compilation (Psychic)

I'm using MPLabX for a PIC24. I have created a library project that I wish to use in multiple PIC projects. However, as the PIC projects have different pin setups I'd like to put a #ifdef in the...

View Article

dsPIC33CH basic asm code (Andrius_Vaiceliunas)

Hi. I am trying programming dsPIC33CH128MP508 in asm, i can select just XC16 compiler. Also no linker and include files in microchip installation folder, just html. I attached asm code, who is...

View Article

PIC24FJ Address Trap issue (jijo.thomas@bytesandnibbles.com)

Dear All,I am facing an issue with address trap error with following code on PIC24FJ simulator and chip. Could someone help me?uint8_t* Xor16_H(uint8_t* in1, uint8_t* in2){ uint8_t _result; uint8_t...

View Article


BORV error: invalid suffix "V" on integer (xpicolo)

Hi,I use PIC24F02KA201 and XC16 V1.26Configuration bits are generated by MPLAB X IDE V4.01.I receive error on this line:#pragma config BORV = 18V thanks...

View Article


Anyone know how to make printf/fprintf write an entire line at a time? (RDS...

I want to use printf/fprintf to write debug messages out of a Bluetooth connection. Up to now, I've been using a UART, and was able to take over the write() function and redirect output as described in...

View Article

PIC24FJ Watchdog and RTCC issue (jijo.thomas@bytesandnibbles.com)

Dear All,I am facing a weird issue with PIC24FJ1024GB610 (Explorer 16/32 board). The problem is that when i enable WDT and RTCC, it always waiting here: /* Cause timestamp event. */ RTCSTATLbits.TSAEVT...

View Article

Customer Linker setup PIC24FJ (jtzeng)

I am using a PIC24FJ256GA705 part where half the memory(data) will be generated by another application.I will take the hex file from code development and insert the other generated hex data for part...

View Article

Stack Allocation (I_am_Lexx)

PIC24FJ128GA606.MPLAB v5.00.XC16 v1.31. Hello. How to allocation the stack at the define address using the linker file? I have seen:"MPLAB® XC16 ASSEMBLER, LINKER AND UTILITIES User’s Guide",chapter...

View Article


Programming a PIC24EPXXX with a PicKit 2 (vra)

Hi all, how are you?. It is possible to program a PIC24EP with the old PicKit 2?...

View Article

FatFs and long file names (K3PTO)

Can anyone give me some clues on how to get Long File Names working? I modified ffconf.h as follows: #define _USE_LFN 1 #define _LFN_UNICODE 0 // I have no need for unicode. and I added ffunicode.c to...

View Article


PIC24F UART not working (jdegeete)

I am trying to send data from a PIC24FJ1024GB610 using an UART connection and capture the transmitted data on the pc side. Without any luck. Nothing shows up on the pc side. I am puzzled by this and...

View Article

I can't create a structure for managing several pins of different ports like...

Hi all, I'm using a PIC24EP and I want to write values on different port pins like those pins in different ports like there was one port, the subject of this is to manage a four caracter seven segment...

View Article


Erroneous compiler error (nice)

Compiler: XC16 1.36 Devices: dsPIC33CH128MP508 and dsPIC33CH512MP508 Test code: void __attribute__ ((interrupt, context, no_auto_psv)) _ADCAN7Interrupt (void){ ADCBUF7; _ADCAN7IF = 0;} The above code...

View Article

Cannot fall back to free license (Passer__by)

XC16 compiler gives error:elf-cc1: fatal error: Cannot fall back to free license.What is it means?OS: Ubuntu 18.04 LTS, MPLAB v5.20On Windows all works OK...

View Article

UART not working with I2C (Mr_White)

I am currently working with the PIC24EP512GU810 and trying to implement an external RTCC using the DS3231 module. I am getting readings on the oscilloscope from I2C, however, I also wanted to verify...

View Article
Browsing all 1508 articles
Browse latest View live


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