pic32mx uarts multiple interrupts (ROSS)
hiI am using a pic32mx795l with 5 uarts providing coms to separate boards and PC, the PIC is the route of messages. the pc and 2 boards are 115200 and 2 part 9600 baud rs485. all seem to work ok until...
View Articlegeneral C code "include" question in MPLABX from sub folder to project folder...
I have the following simple project: main.c main.h lib1.c Now lib1.c wants to "#include "main.h"". It does not see it by default, so In the project properties I am able to add an ABSOLUTE "Common...
View ArticleHow to use properly the DSP library functions? (thoraz)
I'm working with the matricial operation and I want to use for my first time the dsplib_dsp.h library. I'm in the Harmony framework. From the XC32 I found the mips_vec_dotp32...
View ArticleGeneral exception Handler - link errors porting to Xc32 (Bill Yonkers)
Hello, I am porting code written in c compiler 2.02 in the older IDE 8 series ide. Switching to MplabX and using the xc 1.40 complier. First processor module was moved to the new environment with a...
View ArticleHow to Increase program memory on XC32 (V1.34) compiler?? (balastat)
Hi, I am using PIC32MX110F016B controller for my application. IDE - mplabide (v4.1)Tool chain - XC32(v1.34). While I am Compiling the code, the kseg0_program_memory is almost full(98.8%). But...
View Articlesnprintf with format specifier "%.4g" seems not to work (xc1.42 + legacy lib)...
I'm using xc1.42 with legacy lib and a PIC32EFM. I intended to use the "%.4g" format specifier with snprintf. However, this doesn't seem to work. Usually %g provides a mechanism that the value switches...
View ArticleError handler: reporting line numbers, file, function (TomWr)
Greetings,In writing an error handler, I would like to report the line number, function, and file of an error. gcc supports this with __FILE__, __FUNCTION__, and __LINE__. Is there something similar...
View ArticleIn Bootloader global variables are being overwritten seemingly randomly...
Hello, I am writing a bootloader for the PIC32MZ2048EFH. I used Harmony (2.03) to generate the bootloader linker. I have been messing with it trying to get it to use both parts of the bootflash. I have...
View ArticlePMP or EBI for TFT? (RodoPIC)
Hi all, I have a project that needs a 4.3" TFT (16BPP, 5-6-5) with projected cap. touch panel. I'm currently using a PIC24 but I'm quickly filling the flash and I'm pretty early in the design. I'm not...
View ArticleBootloader passing arguments to main application? (kc4ydx)
Its working, but the compiler/linker is complaining: code#define BLDATA_ADDR RAM_END - BLDATA_SIZEblStatus_type BLdata __attribute__((address(BLDATA_ADDR),persistent)); OutputBootLoader.h:126:1:...
View ArticleData stored in flash cleared at startup (ffb.boy.30)
Hi,I've made some functions to read and store in flash .The code works, when I store data I can read them back but at startup when I read them all of them are equal to 0.I use the same function at...
View ArticleXC32 vs XC32 Pro? (Jeffw5555)
We have been using the 18F2685 in one of our products going on 8 years now, and are doing a product update. We have struggled fitting our recent code on the 96K flash; we now do reflashing and...
View ArticleWhen is 1 >= 10? (TonyH_345)
I have a breakpoint inside an if() that tests when a local variable is >= 10. The breakpoint hits when that variable is non-zero (see attached image) and it's kind of a problem. What can I tweak to...
View ArticleHow to make a basic project in harmony 2.04? (RodoPIC)
Hi all, I'm using mplabx 4.05, xc32 1.44 and harmony (mhc) 2.04 with Windows 7 pro. 64-bit.I've used PIC12, PIC18 and PIC24 before but 'm new to PIC32. I didn't see the template for a PIC32MZ project...
View ArticleMPLAB X is not connecting to the PIC32MX 1/2/5 starter kit (Cha1312)
hello forum, I am phasing a problem that is my MPLAB X and PIC32MX 1/2/5 Starter kit are not getting connecting. I tried by restarting the IDE and also restarting the system but still they are getting...
View Articleconvert a char[] to a char * (ffb.boy.30)
Hi,I'm trying to convert a char[] to a char *.My final variable is declared like thischar* ipAddr;if I doipAddr="192.168.26.200";the program work .I get the initial value from an uint32 and I make a...
View ArticleHow to read dedicated memory address variable from bootloader? Right now...
I have an app and a bootloader. The app will have char[]'s at predetermined memory locations. One of which for example will show what version of the app firmware is loaded. The app does nothing with...
View ArticlePIC32MZ : TCPIP_STACK_Init() fails on USB_Host_Bootloader. (yama)
Purpose: I would like to upgrade the firmware using usb flash memory. (My application includes UDP_Ethernet and I2C.)Issue: To realize the above, I tested it with Harmony's demo application. I tried to...
View ArticleXC32 compiler options.. A 'hack' (mrpackethead)
THis is a very interesting read. At the outset i do not support nor encourage the breaking code with the intention of not paying for what is a 'paid' product.. However if the claims that are being made...
View ArticleWhich library to use for legacy project? (luker)
Hi forum, a legacy project, in desperate need to be maintained, crept up on me to have one of its features expanded. I tried to load it in MPLab8 but the mcw file was missing. So I had to dig it up...
View Article