error: unknown type name 'ROM' ... (Antimatter)
Older code uses 'ROM' but the newer XC32 doesn't recognize it. Do I use 'const' in it's place?..
View ArticleMPLAB XC32 v4.20 Released (DevMod1)
The MPLAB XC32 Compiler v4.20 release is now available for download here. This release provides the following new features. Please see the release notes for more detailed information. ----...
View ArticlePorting to MPLAB X from MPLAB 8: Warnings and multiple definitions (dominik98)
I have the following compilation errors: Warnings: warning The PLIB functions and macros in this file will be removed from the MPLAB XC32 C/C++ Compiler in future releases And for multiple definitions...
View Article__attribute__ ((space(prog),address(...)) works, but allmost all other is...
Hi, using MPLAB XC32 v4.20 with an ATSAME70 MCU. Successfully put constant data on flash using: const volatile unsigned char FLASH_CONSTANT __attribute__ ((space(prog), address(0x449f00))) = {...};...
View ArticleWeird problem with log10f() function (mrerdem)
Hi all. I have been facing a weird problem with math library. I am giving below the minimized example that contains the problem. #include #include #include #include #include #i..
View ArticleBootloader for USB on ATSAMD51 cannot get it working - hints? To do list...
Bootloader for USB on ATSAMD51 cannot get it working - hints? To do list I would be happy if anyone could give me hints on jump function to the main code. I have relocated my code to 0x20000 My test...
View ArticleIs the message that says "Code incompletely loaded starting at 0x1FC14000" a...
Hi. I have an Ethernet bootloader project with the device PIC32MZ1024EFM064, XC32 v4.20, MPLAB 6.05, when compiled, shows me this message:...
View ArticleBootloader + Application for PIC32MK1024GPE100 (ramisettyranganadh)
Hi All, I am new to Bootloader. I am trying to develop 2 applications for my controller and trying to jump from one application to another application with the help of linker file but I am unable do...
View ArticleSetting Multiple Bits Atomically on PIC32MZ (laffelt)
I am writing a function which needs to quickly set the lower nibble on an I/O port, specifically PORTE. Setting single pins I would always use the "atomic" commands using the PORTESET and PORTECLR. I...
View ArticleMPLAB XC32 v4.21 Released (JasonK)
The MPLAB XC32 Compiler v4.21 release is now available for download here.This release provides the following bug fixes:Bug fix for xc32-bin2hex when generating a large C source file -- The XC32 v4.20...
View ArticleXC32 Linker errors (stofanel)
I am trying to compile a simple C++ program, and it throws linker errors when I include iostream (XC32 v3.01) //#include #include using namespace std;int main(){ return 0;} This program compiles just ..
View ArticleNo source code when Step over (Roibert)
Dear forumConsider this 2 line, simulated on PIC32MZ, XC32 Compiler: 1) rtDW.h_Sa=-1.16;2) rtDW.C = ceil(rtDW.h_Sa); // ----> this line block the debug on step over Via simulator, when Debug the...
View ArticleHow to read data in PIC32MX flash memory and how to write the read function?...
Chip: PIC32MX360F512Compiler: XC32 V4.21MPLAB X IDE V6.05I looked in the datasheet but couldn't find anything on how to read the flash, My goal is to write one that reads data from a physical address...
View ArticleA practical method for calculating free Heap memory (PIC32MZ, XC32) (dario...
I remember a thread (possibly also in another forum) regarding the above, but I was not able to get it working: is there a good method to retrieve available dynamic memory (to be added to the Stack...
View ArticleDownloaded and installed plib, now missing stdint (Bernie2021)
I recently downloaded XC32 compiler for MacOS and followed the instructions at https://microchipsupport.force.com/s/article/PIC32-Legacy-peripheral-Library-for-MAC-OS to download the peripheral...
View ArticleCan't compile the example program (Kevil)
I am trying to compile Frequency Bin Example, but I got an error message: commontables.o: Link Error: Could not allocate section .rodata, size = 920376 bytes, attributes = code Link Error: Could not...
View ArticleHow to define complex number array? (Kevil)
I am having trouble to define complex number array. As an example, I used only the first 8 numbers out of 1024. While compiling I get error: error: expected identifier or '(' before '[' tokenat the...
View ArticleWhy is lldiv a long unsigned unsigned division in XC8 (at least at v2.40)?...
...and how to do a 64 bit division?Would expect lldiv_t lldiv(long long num, long long den) Sure I missed something. foo2= (unsigned long long) foo / evtr_cnt.frame_total; takes __lldiv (long, long)...
View ArticleXC32 license question - HPA terms? (user2x)
Hello,Does anyone know if / when / how the HPA has changed from supplying free upgrades for 12 month to expiring the license completely after 12 month? My XC32 license has stopped optimising on level 1...
View Articlefree licensed compiler use xclm with a long timeout (SteffenRose)
I use the XC32 since some time and it worked. Yesterday something did go wrong.Now every compile/link step call the xclm and wait for nothing a ong time.As I use the free version I fon't have a license...
View Article