Why is the compiler placing the char array in FLASH? (m4l490n)
Hi everybody I'm trying to simply create an array of strings as a local variable for some tests and I noticed something strange. I want to declare the following:char* array[] = {" ", " ", " ", " ", "...
View ArticlePIC32MZ BootLoader Linker reports wrong Program size (MKC)
Crash by adding some code To the USB host Bootloader project.Have been looking for days to find.The Bootloader linker script uses 0x9FC2-0000 with Length 0x0001-4000The reported size in MplabX was...
View ArticleWant to know about a function (SAYAN)
Dear sir, I am trying to work with Ethernet controller(PIC32mx795F512l). So when I was reading the family reference manual, I have got some program code like trasmitting data buffers, receiving data...
View ArticleXC32 license question (MKC)
Can´t find information on the different versions XC32 free, standard, pro.Besides there is a difference in optimization level, where is the concrete information on Levels that can be used with the...
View ArticleSPI PROBLEM EXPLORER16 PIC32 (JaumeGracia)
Hi my name is Jaume,I have a problem when i try to debug my SPI program, it doesn't work.The problem is that when the program starts to run, at once appears the following sentence: "Target Halted".But...
View ArticlePIC32MZ const qualified object in Boot Memory - What am I missing? (aschen0866)
I have a const qualified object. By default, the compiler puts it in the program memory with correct contents. However, when I use this object in the code, it seems the object is not available (as...
View ArticleHow to use #pragma config, config_bf1, config_bf2, etc.? (aschen0866)
Can't find any examples on how to use #pragma config/config_bf1/config_b2/config_alt/config_abf1/config_abf2, which are only documented in PIC32ConfigSet.html (in the docs folder of the compiler...
View ArticleXC32 v1.34 -- xc.h issue (stw_zwickau)
Hi, the xc.h file accompanying the v1.33 compiler includes the processor-specific header file (p32mx795f512l.h in my case) regardless of whether the xc.h is included by a C source file or an assembly...
View ArticleTaskSwitching in PIC32 RTOS homemade : modifying EPC disables interrupts...
Hello, It is about one week I am trying to implement taskswitching in my RTOS, and I am stuck with a particular issue. I use an IRQ (triggered by Timer2) which act like a scheduler.At the end of the...
View ArticleXC32 DOESN'T BUILD SOME FILES SOMETIMES (studioschianchi)
HelloI am usign XC32 compiler with MPLABX IDE.I used the TCPIP project in Harmony framework and modified it to use it with my application.So I added some files *.c and put them in the \SRC directory.I...
View ArticleFreeRTOS heap vs Linker heap (chrismo83)
Hi all, I am experiencing an issue with Harmony V1.03/XC32 v1.34/FreeRTOS V8 on a PIC32MX250F128D deviceWhen I use a demo project with traditionnal _SYS_Tasks and _APP_Task all work fine.But when I try...
View ArticleHow to use PIC32MZ Shadow Register Sets with XC32? (bikeoid)
I have a test program containing a single timer interrupt. I attempted to have the compiler associate the interrupt with a PIC32MZ shadow register set, but it still appears to generate a full prologue...
View ArticlePIC32MZ bootloader failure when code size changes...
We are currently in the process of debugging a very elusive bootloader issue after migrating to the PIC32MZ chips from a working PIC32MX solution. The bootloader is working correctly if the size of the...
View Articlegeneral_exception_handler, MLA microchip_solutions_v2013-06-15 and TCPIP...
Hi I have designed a hardware based on the ESK, I made an example Telnet and works very well in the ESK. In my hardware the example works sometimes a few seconds. After no response from my hardware...
View ArticlePIC32MX7 SPI Slave + DMA RX (mattiatech)
Dear community, I need to run on a PIC32 Ethernet Starter Kit (DM320004) one little application for receivea string of 40 characters from SPI1 and i prefer to use DMA for transfer directly in the...
View ArticleCannot find include file and single step problem. (jvh)
I downloaded the example code SPI project listed for the MX795 and built the project after changing project to use MX795 and Starter kit USB instead of RealIce. In burst_master.c makes a call to...
View ArticleCX32 not compiling the same as C32 (Marius Dumas)
Using PIC32MX460... The following (below) code is used in my firmware, its presents is basically to speed things up a bit, I got it from a USB TO GO example. When I compile it with c32, then the...
View ArticleSetting up heap programmatically (jvh)
I downloaded the example code SPI project listed for the MX695/795. The project was built on a different device so modified the project to use an MX695 and use a starter kit USB interface instead of...
View ArticlePIC24FV PWM Problem Duty 100% (mattiatech)
Dear forum, I have a problem with a PWM application, all works, but when i set the duty cicle to 100% i see the signal go 0 (in the scope). There is a method for setting this signal alway ON when i...
View ArticleXC32 Multiply Int (32bit) Errors (Stefiff)
Hi,WindowsMPLAB X 2.26XC32-1.34CPU PIC32MX120F032B, but tested with many PIC32MX and PIC32MZ in Simulator, result is the same.NO optimization. (level = 0) New project:#include int a,b,c; int...
View Article