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

Linker script always includes Interrupt vector table (jstout)

I have one project with a Bootloader, and another project with an Application. They both work fine on their own. The Bootloader project uses the Interrupt Vector Table (ivt) and the Application project...

View Article


XC16 strtol, strtof, strtod missing. (Severino)

MPLABX v5.25, XC16 v1.41: strtol, strtof, strtod are missing. In the related "16-Bit Language Tools Libraries Reference Manual" (DS50001456K) they are not listed any longer, but used to up to XC16...

View Article


Can't install XC16 compiler on MacBook Pro running macOS 15.1 beta,...

I can't install the XC16 compiler on my MacBook Pro running macOS 15.1 beta, "Catalina". MPLAB IDE installs fine, but the compiler goes all the way through its installation process and then complains...

View Article

Assigning custom section and variable into section Program Memory XC16 1.36...

So I want to reserve a block of Flash. I do not want other stuff to encroach into this block and I will be using only a small section of this block. So I thought that a section will do the trick.In the...

View Article

Suggestions for a Good Folder Structure and Files Arrangement (luizsalomon)

Hello. My programming background is (was) assembly. Just love it.It's good to go to the movies and watch "The Matrix" and be the only one to laugh when those green letters are falling, since you are...

View Article


code model size (daverj)

I've updated from MPLABX 3.15 to 5.25, and XC16 1.25 to 1.41 and am compiling an old project that I want to migrate to the new environment. But something is confusing me. While compiling the project,...

View Article

Assigning a PORT pin to pointer or variable: How can that be done? (user2x)

Hello I have led output pins that depend on the system configuration. for example: These 2 pins are are defined as: #define LED_RED_PIN LATAbits.LATA1#define LED_WHITE_PIN LATBbits.LATB4 Only one LED...

View Article

XC16 problems with large numbers of doubles (aekalman)

Long-time XC16 user here ... We have recently encountered / discovered a really weird issue, whereby our use of double-sized variables and function parameters/arguments points at something wrong in our...

View Article


I get interrupts after disabling them. Why? (user2x)

I have the following simplified code:It frequently hits the breakpoint as set in the IRQ handler, indicating tha tI got an interrupt AFTER turning them off. There are other indications substantiating...

View Article


Pic24E XC16 Timer5 Configuration (jvalerio)

I'm trying to setup Timer5 of PIC24EP256GP204.With the below settings I'm only getting a 2Hz toggle on the RC7, I was expecting to get about 250ms. #include #define _ISR_PSV...

View Article

Passing a char array to a function but only 1st element getting sent (gehan_s)

Hi all,I am passing a char array to a function but it seems only the first element gets passed. I had implemented this code on an arduino which was working perfectly. But when I migrated to the...

View Article

Deleted (user2x)

Deleted. resolved...

View Article

Question about reserving space in flash with XC16 (jeff_d)

I've inherited some code which uses RTSP to save operating parameters in the same (only) 32k page with instruction space and we've discovered this was not the best choice. So I've developed a...

View Article


__pack_upper_byte at an address (jtzeng)

I would like to use the __pack_upper_byte but have the storage at a location I pick.The manual does not limit using address(xxxx), but it gives an error.Is there another way to place this flash data...

View Article

Stack monitoring in run time (JPittenger)

I was reading through this thread:http://www.microchip.com/forums/m827832.aspx And I wanted to do something similar for a PIC24F.Since that code was written for the PIC32, I had to modify it for the...

View Article


Issue writing constants to program space dsPIC33EP512GP506 (Vinxian)

I'm having an issue placing a bunch of constants at the end of the memory space on a dsPIC33EP512GP506. The interesting thing is that the exact same code words on a dsPIC33EP256MU810. The code and...

View Article

using __prog__ qualified pointer to struct (GianlucaL)

Hi there.I've the following situation:1- a struct typedef like:typedef struct { uint8_t myData; uint8_t crc;}DATA_MEMORY_t;2- a struct pointer qualified as __prog__ (the struct resides at address...

View Article


MAP file: Pointer to be the address it is pointing to (instead of pointer...

When the map file is generated, is it possible that the memory address location can be made to be the address that the pointer is pointing to, rather than the address of the pointer itself ? For...

View Article

Cannot read pointed location using __eds__ pointer (GianlucaL)

Hi all!I'm trying to read a value using a __eds__ pointer.The value I want to read is at the address 0x25c00 and the value is 0x55. Here is the code I'm using: uint8_t check;...

View Article

Migrating from C30 to XC16, what has changed??? (BobAGI)

I have a number of projects developed using C30 but now updates on C30 seem to have stopped so new parts are not covered.So my question now is if I am to move to XC16 instead, what are the differences...

View Article
Browsing all 1508 articles
Browse latest View live


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