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

ERROR: undefined reference to `__delay_us' (jateijeiro)

Hello all. This is my first post here. I'm trying to drive a HD44780 16x2 LCD with a PIC32MM, and get errors related to delays... I cannot find the problem in the code... I use the MPLABX XC32 compiler...

View Article


XC32 misplaces __coherent__ array (adown)

Hello, im working with a PIC32MZ2048EFH144. I have noticed some weird behavior while trying to allocate some DMA buffers. I have several buffers assigned using the __coherent__ attributes. Some of...

View Article


are sprintf snsprintf memcmp memcpy strncpy ecc... thread safe ? (AlexGiov_uc)

Hello, I'm using FreeRTOS official demo for PIC32MX in MPLAB X and XC32 compiler.Are sprintf snsprintf memcmp memcpy strncpy ecc... thread safe ?..

View Article

FreeRtos: Heap 4 issue (bordlab)

PIC32MZ2048EFG144MPLAB 5.20Harmony 3 core v3.4.0 csp v3.4.0Heap 4 When I try to pvPortMalloc a second item I crash in prvInsertBlockIntoFreeList. In the following loop pxNextFreeBlock is NULL. There is...

View Article

Using Values From the Source Code in a Post Build Command (chrisgr99@gmail.com)

Using MPLabX I need to use the post processer to insert in the hex file some values #defined in the XC32 source code. Is there a way for the post processor to access information from the source code?..

View Article


Linker Script Modification to place web bin in specific memory location in...

Hello, I have a problem here with linker script modification. My MCU part number is PIC32MZ2048EFG100. I have a large constant array in a file name res.c. The declaration of the constant is as follow:...

View Article

xc32 std lib link error (pic32cpp)

Hi there, I have just upgrade from XC32 v2.15 to v.2.20. I now get a linker errors when I compile the following code. Can someone help me fix? Code: #include int main(void) { std::string test = "123";...

View Article

First post (pic32cpp)

Forbidden error again...

View Article


MPLAB XC32 v2.30 Released (DevMod1)

MPLAB XC32 C-Compiler v2.30 is now available for download here. The release provides the following: MPLAB Code Coverage New Part Support Fixed issues -- See the release notes for more information on...

View Article


Conditional Statement in Linker Script (weehau)

Hi guys, I have a question regarding conditional statement for linker script. I am developing my application code which has to work with bootloader. Thus a custom linker script has to be added to...

View Article

64bit compiler executables for MacOS 10.15 Catalina (David Meyer)

MacOS 10.15 Catalina is set to fully release later in September. The beta has been available for several months now, and the announcement that 32bit support will cease has been known for well over a...

View Article

MPLAB XC32 v2.30 Released - Questions and Comments (moser)

I have read the readme of XC32 v2.30. There is one thing which called my attention:XC32-1058 XC32 releases v1.40 thru v2.20 had an issue related to branch delay slots and frame-related instructions....

View Article

CACHE ALIGN (gvitor)

Hi, I believe this is a dummy question but unfortunately I couldn't find a proper answer for that: lots of generated code by harmony (I am using V3) has this "CACHE_ALIGN" modifier: uint32_t writeData...

View Article


[SOLVED] time.h not compiling - getting timestamp from NTP server - PIC32MX -...

Hi. I am using MPLAB X v5.25, XC32 compiler v1.43, PIC32MX270F256D. I am using a ESP8266/ESP-01 Wifi module together with the PIC32MX to get the current timestamp from a NTP server. For example,...

View Article

Float Maths timings (ThierryV)

Hello, I would like to monitor my software, to check its timings, its respect of the cycle times and localize the bottlenecks. My problem is I have a lot of float arithmetics (IEEE754) and my PIC32MX...

View Article


Can't call sqrt() from C++? (realexander)

Hi, I have a project (stripped-down test project attached) where I'm calling sqrt() from a C++ source file. I get a linker error:c:/program files...

View Article

Trig functions broken in C++? (realexander)

Hi, I'm calling acos() from C++ and it returns bad results, e.g. acos(0.54) returns NaN. If I call it from C, it works. I've attached a sample project. I'm using a PIC32MZ2048EFH064 (which has a...

View Article


Can't get function to return value (Pete F)

My setup is: MCLAB X IDE v5.10 XC32 (v2.30) Harmony 2.06 Demo Kit DM320010 PIC32MZ Embedded Graphics with Stacked DRAM (DA) Starter Kit PIC32MX2064DAG169 I made a function to do a simple calculation,...

View Article

Having problems with atof(). (_fragment_)

MPLAB X 3.35.XC32 1.42.PIC32MX570F512L. char rmc_buf[] = "$GNRMC,170341.00,A,4336.24959,N,11622.67799,W,0.527,,031019,,,A*77\r\n"; char *ci; double lat; LONG x; ci = strchr( rmc_buf, 'A' ); ci++; //lat...

View Article

Some code just not compile at all, gap in the assembly instructions ! (luk)

Hello,After an "if" statement, the program jumps to a totally unexpected place, neither where it should jump if the statement were true neither if it were false. After debugging the program, I noticed...

View Article
Browsing all 1537 articles
Browse latest View live


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