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

RAM function?? (dlindbergh)

I'm trying to put (most of) an ISR into RAM to make it go faster: I tried:__attribute__((ramfunc,section(".ramfunc"),far,unique_section)) void inline _adcIsr_inner() {} and:#include __longramfunc__...

View Article


No mention of -Wformat= in XC32 manual (dlindbergh)

It's a minor thing, but when you get a -Wformat warning, XC32 (v1.40) prints a warning that mentions "-Wformat=". Note trailing '='. For example: main.c:183:9: warning: format '%f' expects argument of...

View Article


harmony 1.06 TCPIP and USB stack with freeRTOS config question (Bruce Lavoie)

I was able to build and run a Harmony 1.06 project on my custom PIC32MZ2048ECG064 using MHC. I referenced the prebuilt Harmony demonstration projects in the /apps/tcpip/snmpv3_nvm_mpfs and the...

View Article

Move printf to UART1 (jvh)

Somewhere we dropped the ball and our main comm port is on UART1 instead of 2. I remember reading something about using printf with other UARTs but can't seem to find it now. So can printf be used with...

View Article

xc32 optimization (afdm_2020)

hi everyone,i use 1.40 verison of xc32 with License: Workstation - PRO in mplabx , i want tell to the compiler that the dont optimize some lines of my code.how can do it?..

View Article


Does the 'persistent' keyword really preserve data across a power cycle....

According to page 204 of the XC32 compiler documentation (DS5000168G),Variables whose contents should be preserved over a Reset, or even power-off, should be qualified with the persistent attribute,...

View Article

__ISR(V, IPL) macro question (dumont02)

Simple question. In the __ISR(V, IPL) macro, what is the purpose of the IPL parameter? In the XC32 compiler user guide, there is an example with this macro which is:void __ISR(_CORE_SOFTWARE_1_VECTOR,...

View Article

Move Exception Table and ISR function to RAM, PIC32MX150F128B (Stefiff)

I’m trying to move ISR functions and Exception Table to RAM. PIC is 32MX150F128B. XC32 is 1.34. MPLAB X 2.35.The main idea is the CPU does not stop during writing in flash. TMR and UART must continue...

View Article


What would cause UART 1 interrupt to stop catching interrupts? (jvh)

I am sending some strings to my PIC32MX695 UART 1 from a LabVIEW script using an FTDI chip USB to RS23 adapter. Everything runs fine until perhaps an errant string comes in, not sure. But all my tasks...

View Article


Creating const data in V1.40 (alanfhall)

I have a problem on migrating from XC32 V1.31 to V1.40. I wish to create some constant data at absolute locations in my bootloader, which will be referenced later by my application. In V1.31 this...

View Article

Bug in XC32 standard libraries? (stdclean_full.o and stdclean_simple.o both...

Forgive me if this should be a bug report rather than a forum post, but I'm curious if others think this is a bug or not. I am building a project in XC32 v1.40. At this point, it includes little more...

View Article

Baffling compiler error. (jvh)

PIC32695F512LIDE: 2.30 The compiler give me this error message:scriptParser.h:109:5: note: expected 'char *' but argument is of type 'struct ScriptCmdType *' Here is line 109:int...

View Article

(1) Stack trace, and (2) where am I single stepping? (jvh)

Whenever I select Call stack I get a message about fast stepping was enabled. How is this setting changed? It probably won't help in this case as my PC is at 0xBFC00000, which sounds like reset land....

View Article


Optimization ok in 256k but not in 128k (pirupic)

Hello everybody. I simple question. I have a program for the micro Pic32MX575F256H ( 256k program memory )when a compile it with all optimizations available on xc32 compiler the program memory used is...

View Article

UpdateCoreTimer() (jvh)

The code below is on a system I inherited. I don't yet have a real good understanding of the core timer and the core timer functions but even so I don't see the purpose of the call to UpdateCoreTimer()...

View Article


Reset a structure (sebastien.decorme)

Hi,I've a structure declared like thistypedef struct{ float A; float B; float B;}Struct_AAnd I would like to set all my float to 0.0.Is there a safe way to do this ?Thanks you..

View Article

For PIC32EF, libc.a conflicts with hardware floating point usage (Paul Bjork)

When explicitly adding the library libc.a to a project (thought it was automatic) for vfprintf(), etc., the linker reports a warning that "Warning: dist/(project...

View Article


Core timer (jvh)

PIC32MX695F512L Regardless of the value I use to open the core timer it seems to only sends an interrupt on rollovers. Even though I use WriteCoreTimer(0) in the ISR. At least I think that is the case....

View Article

#pragma config and macro expansion (dlindbergh)

It seems that XC32 (v1.40) processes "#pragma config" statements before macro expansion: #define TEST OFF#pragma config DEBUG = TEST Gives: core.c:14:9: error: unknown value for configuration setting...

View Article

XC32 V1.40 vs V1.34 Size Code Optimization? (pirupic)

Hello: I would like to know if this new version does a better optimization concerning to size code, or it is just the same Thanks..

View Article
Browsing all 1537 articles
Browse latest View live


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