Quantcast
Channel: MPLAB XC32
Browsing all 1537 articles
Browse latest View live
↧

Doesn't work I2C with XC32 (poross)

Hello Everyone,I am a newcomer to the PIC32 and XC32. I am using XC32 v2.40, MPLABX v5.35, and a pic32mx570f512l. The PIC is on a protoboard with an INA219 current/voltage sensor using I2C. I believe...

View Article


32MX INT0 does not work with simulator (hopperisgreen)

I am trying to get an external interrupt INT0 to function with Stimulus Pulse in basic program. I'm not sure what I am doing wrong, could someone please tell me why this would not work?. I see the...

View Article


Replacing the C runtime library? (realexander)

Hi, I'm running into strange behavior with the C runtime library, e.g. crashes in sprintf and bizarre results from gmtime. I'm not able to reproduce it in a small program, and I may well be stomping on...

View Article

I2C responds NACK every time (poross)

Hi,iI am a newcomer to the PIC32 and XC32. I am using XC32 v2.40, MPLABX v5.35, and a pic32mx570f512l. The PIC is on a protoboard with an INA219 current/voltage sensor using I2C. I send i write command...

View Article

Help needed, issues with Harmony 1.0, mplabx and loadables hex files (jeff_d)

I've inherited a XC32 project which was built from microchip boot loader, 2 Harmony 1.06 applications (an updater and application). These two apps were included in the boot loader project as loadable...

View Article


xc32 not understanding inline assembler (linton_za)

Hi all I previously compiled code on pic32-gcc compiler with no issues. We have updated hardware and am using MPLAB IDE with xc32 compiler due to there being no support for new PIC in legacy. Compiler...

View Article

Making a typedef accessible in multiple files (adown)

Good afternoon, i have a simple question: I have a structure that i want to be able to use in multiple source files within my project. I have included: typedef struct returnParams_t{ int returnValue;...

View Article

%zu format specifier resulting ASCII zu (sumit809)

Compiler Ver 2.41 Hi All,size_t len;dstr_printf(&obj->stream, "<< /Length %zu >>stream\r\n", len); this is resulting in << /Length zu >>stream What can be the problem...

View Article


[SOLVED] Why double type has 64bit size? (amg)

Hi all, I'm porting a project that was done in a PC with XC32 v1.40 to an another with XC32 v2.40 and for some reason now the double type is sized as 64bit where before was 32bit. I tried adding the...

View Article


Is there a way to place a library at a specific memory location? (rangeck)

With XC32, is there a way to place a library's program code at a specific flash memory location? Using MPLAB X, I pull up the top level project properties and click libraries. I add my library...

View Article

Initialization discards 'volatile' qualifier from pointer target type (poross)

Hi,I am a newcomer to the PIC32mx and XC32. I am using XC32 v2.41, MPLABX v5.40, and the pic32mx570f512l. I want to make a cable tester. It will have 50 pins for output data. I am using sample code at...

View Article

Compiler error - undefined reference to `DRV_I2C_TransferEventHandlerSet' (DHJ)

Hi I get the following error :- undefined reference to `DRV_I2C_TransferEventHandlerSet' whilst trying to compile my code as shown :- app_systemData.i2cHandle = DRV_I2C_Open( DRV_I2C_INDEX_1,...

View Article

Debugging hangs when entering any function (JAL instruction) (adown)

Good morning, i have an issue wherein i start debugging while watching the disassembly and at the first JAL instruction the debugger (and the whole IDE environment) hangs. I have commented out the...

View Article


Place constant at specific location in flash (Vincent44)

Hi, I need to store a constant value at a specific location in flash. The idea is that the bootloader can read this location, to know what is the current firmware version. Ideally, I also need to be...

View Article

Is the PIC32MZ DSP Library still under development? (adown)

Good morning, a question for anyone with visibility into Microchip:Is the PIC32MZ DSP library currently being expanded? Compared to the CMSIS libraries for ARM its very limited. For example the only...

View Article


Mod delete me (acharnley)

Please delete, posted in error..

View Article

NVM data array problems (too large and in the wrong place) (Thorben.Z)

I'm using a pic32mx170f256b and am trying to create a reserved memory area from 0x9d020000 to the end of NVM to store a firmware update. I am currently allocating an array like this (smaller than I...

View Article


Problem During Communication Between Two Microcontrollers Via Uart2 (poross)

Hi, I am a newcomer to the PIC32mx and XC32. I am using XC32 v2.41, MPLABX v5.40, and two pic32mx570f512l. I want to make a cable tester. It will have 50 pins for output data and 50 pins for input...

View Article

How to convert #pragma config's (JakeSays)

Does anyone know how to convert XC32 #pragma config's in to regular C?..

View Article

Clobber values in Inline assembly in XC32 (onnimikki)

Hi, I'm writing some inline assembly for the PIC32MX in XC32 and want to verify the usage of the clobber list. I want to protect the original contents of the v0 register so use the clobber list (the...

View Article
Browsing all 1537 articles
Browse latest View live


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