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

Type conversion when calling a function. Problem!!! (SERGOSV)

XC32 1.44. Free. PIC32MZ2048EFM100. Using the optimization O1. There is no type conversion when passed to a function. It appears so: void Function (unsigned char TestChar) {signed int TestInt;...

View Article


malloc behavior (microcoder)

Hi, is there a documentation of how XC32 malloc works, compared to C32, and how to avoid heap fragmentation? the issue was mentioned here but did not get any answer:...

View Article


Bootloader Mapping Problems? (agude)

Hi all, Processor: PIC32MX460F512LCompiler: XC32 v1.20 I will try to explain this as thoroughly as possible. I have two bootloaders, one old and one that is based off the old one with a few new tweaks...

View Article

get the address of a defined constant (miketv)

-MPLAB-X with XC-32 and Harmony-Harmony generated this code to store an IP address into program flash:#define TCPIP_NETWORK_DEFAULT_IP_ADDRESS_IDX0 "192.168.0.10" I'm trying to get the address...

View Article

Pointer to Struct problem (Exception thrown) (lasa@kiatronics)

Hi all, I am trying to use Pointer to Struct in my code since I have library which uses that form. The problem I encounter is when ever I try to access a member in the structure a exception is thrown....

View Article


Wrong cos() result (Igor Kocman)

Hi, I have a very strange problem: long lineCos(float degree, long len) { volatile float c1,c2; c1 = degree*3.141/180.0; c2 = cos(c1); return (c2*len); } And the return value is wrong.For example when...

View Article

XC32++ Workstation PRO License does not work in PRO mode (sirio93)

Dear all,the product in the subject does not compile at minimum possible size.With -Os it generates 12680 bytes code.If I check "CLean and Build with Pro comparison..." I can see that I could achieve...

View Article

Working on bootloader linker scripts for PIC32MX530F128H (NKurzman)

Cross Post.I am trying to get a pair of linker scrpit to work (since Harmony do not)Any input would be appreciated. http://www.microchip.com/forums/m926430.aspx..

View Article


Timer1 and secondary oscillator SOSC timing (xj457xj457)

Hello,I am trying to achieve right temporizations using the Timer1 with the secondary oscillator. I am using a PIC32MX795F512L in a Ethernet Starter kit II evaluation board. This evaluation board has...

View Article


VIEWING MEMORY (knk53)

HI, I HAVE A PIC32MZ2064DAG169 ON A PIC32 MZ STARTER KIT.I AM TRYING TO VIEW THE CONTENTS OF THE INTERNAL DDR RAM (EVEN 1 BYTE) BACKGROUND: i AM TRYING TO USE THE BUILT IN GLCD PERIPHERAL. THE MPLAB...

View Article

MPLAB X IDE with XC32, added code + boot flash (Timmons)

Good day at all I'm using MPLAB X IDE with XC32 compilerI would like put two questions about my first compilationsWhen i Write a simple code to turn on a led, only a few instructions, i notice that the...

View Article

XC32 and _general_exception_handler() (Emcy)

Hello,I use PIC32MZ2048EFM100 and xc32 v1.44 Is it normal this code doesn't generate _general_exception_handler interrupt ?char * ptMakeError = NULL;printf("%i\n", *ptMakeError);=> It should generat..

View Article

Unexpected result with sscanf (muellernick)

Hi! Compiler XC32 V2.05 (same fault with 1.44), project built under Harmony V1.09const char key[] = "WiFi.RSSI";char subKey;if (sscanf(key, "WiFi.%s(", subKey) == 1) { // subKey is now "RSSI" // Shou..

View Article


XC Licence Manager (xclm) v2.22 is cripplingly slow (David Meyer)

I'm running xc32 on a headless linux server, using the free version of the compiler (for now). The xclm binary takes a very long time to check its status. I figured this out after moving my build to...

View Article

long double to string functions (Nexsys)

Hi,I'm currently using the C32 v1.21 compiler and I've got a project where I have to use long doubles.I'm having difficulty finding any native support from the C32 v1.21 libraries to convert a long...

View Article


MAX31865 code example? (Netanel)

helloi connect MAX31865 via spi4 to PIC32MX795F512L starter kit.i send data to the device, the data go out perfect, but i dont get nothing back from the device.someone working with MAX31865...

View Article

Holding output ON during software reset (Andy123)

Need little help:Is it possible to hold an output ON during software reset? I have a PC32MX664 based device that needs to keep one output ON during reset. That output is holding power boost converter...

View Article


SYSTEMConfigPerformnce (horkesley)

HiSYSTEMConfigPerformance (80000000ul);error, unable to resolve identifierMPLAB X IDE v4.05XC32 v1.44ethernet starter kitMac.Peripheral library installed.Any ideas..

View Article

XC32 V1.40 Peripheral libraries problems (Akshayy)

Hi, Till no I have been using old XC32 v1.22 compiler for my application.It has got peripheral libraries inbuilt.Now I am going to use XC32 v1.40 latest compiler.Microchip has removed inbuilt...

View Article

C programming pointer questions (Akshayy)

Hi, I have simple pointer related question.I want to pass pointer to functionFunction(void *ptr,size); I can pass string to this function likeFunction("Microchip",9); If I want to pass single variable...

View Article
Browsing all 1537 articles
Browse latest View live


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