Quantcast
Channel: MPLAB C30 Compiler, ASM30, Link30 forum
Viewing all 304 articles
Browse latest View live

Getting the most out of our 24bit Code space (Riche)

$
0
0
My code is using quite a lot of multiple lookup constant tables for its graphical interface. Since we are only using 2/3 of every 24bit code space for data, I would have thought that the compile would have anticipated someone getting a bit fancy with its..

Confused about size of data types INT and UINT for PIC24... (BobAGI)

$
0
0
I am revisiting the issue of data sizes, specifically int and unsigned int.We are using GenericTypeDefs.h to get around the uncertainty of variable sizes and now I have come across a piece of PIC24 code where it does matter.In this case the coder has used..

divide support of dsPIC30F (Abdul_Wahid)

$
0
0
Hello every body.I am using MPLABX 3.55, dsPIC30F2010 and compiler xc16.I am facing a problem which may be a very simple but it is very big for me.want to remove some right most digits from a long no.for example 23382983I want to remove right most 4 digit..

How to set up Linker etc. for Protected Bootloader Section, Godeguard (fkaiser)

$
0
0
Hello Everybody! since a long time, i am trying to make my "unbreakable" Bootloader for dsPIC33F and PIC24H devices. "unbreakable", because i want to use GodeGuard and the Boot Segment Function to make my Bootloader Code secured! First of al, i programmed..

Whys is this not causing an error in the compiler? (BobAGI)

$
0
0
When working on some bit-bang i2c code for a PIC24FJ256GB206 I accidentally introduced a bug when changing a delay call from my own (working via timers) to the compiler built in. This is what I ended up with during the copy-paste:__delay_us(1)(100); ..

PIC24 - C30 endian revisited again... (BobAGI)

$
0
0
In my previous thread about the PIC24 endian-ness the conclusion was that PIC24 is using the same endian as a PC with Intel CPU.Now I am facing a problem since it seems like this does not really always apply...I have a struct that contains two UINT32 and ..

Jump to an absolute address (mcpro)

$
0
0
I need to jump from C to an absolute address locate at a fixed point in program memory but I cannot find the right way: 1) I tried to use the goto statement of the C but I don't know how to declare a label with a fixed point in p.m. 2) I try to defi..

How to place big data array in EDS space with PIC24FJ256GB206? (BobAGI)

$
0
0
I was asking about a problem with using big amounts of RAM in a PIC24 thread and by the responses I was guided towards using EDS memory to get part of the way to my goal.It seems like I had not grasped that of the advertised 98 KB of RAM in my part only a..

Unexpected truncation of function return value (C30 v 3.31 for PIC24FJ) (BobAGI)

$
0
0
I have been trying to understand why I am getting weird results back from an SDcard writing function, so today I put breakpoints in and stepped through the code only to find that somehow the value returned gets truncated!Here is the function that is creat..

Erroneous floating point arithmetic results on C30 v3.30b when interrupts are enabled (nos1989)

$
0
0
Hello, I'm periodically seeing some erroneous floating point arithmetic results when having my interrupts enabled. To be clear, I'm not doing these calculations in an ISR, just in a function periodically called from the main loop. Most of the time the res..

PIC24 Read/Write to Text file Help (patrykk)

$
0
0
Hello everyone, I am working on a capstone project for school and am using the PIC24HJ32GP202 micro-controller. I have used the pic in previous years for school labs but the code was essentially written for us with minimal editing required. Therefore I ha..

Context saving before interrupts problem (paltibine)

$
0
0
PIC24HJ256GP210 PIC C30 V3.11 and V3.31 tested I have a problem which I think I have tracked down to an interrupt arriving during the call of a function. The function is called like this: ShiftBufferLeft(Data, (byBitsLen+7)/8, 1); where the first paramete..

Error: A heap is required, but has not been specified (Varma)

$
0
0
hii I am using MPLAB IDE 8.90..when i am using printf function then it is showing Error: A heap is required, but has not been specified,i attached Error warning below..if i am not using printf function then it is not showing any error... can any one help ..

MPLAB C30 v2.04 Released (DevMod)

$
0
0
MPLAB C30 and the related 16-bit language tools are released and available here. Changes include: Bug fixes to the C compiler, and assembler Bug fixes to device support files MPLAB REAL ICE trace and log support for 16-bit devices See the README ..

Many source codes of MLA include xc.h. (ingenioso)

$
0
0
Hi everyone, I try to use the MLA(v2017_03_06) for making the application through the USB communicated to Android. Many source codes of MLA include xc.h. xc.h does not find in the sub folder under \mla\v2017_03_06. I use Microchip C30 for PIC24 as a ..

Sonntag Spiel (CinziaG)

$
0
0
Help me find out the quickest and most compact way to perform this: I have a bitfield, actually 3 bitfields each one 2 bits large, stored in the lower 6 bits of a byte variable.I want to check whether at least one of them is "01" or "10". Basic code is th..

dspic bootloader and application main file (faddale)

$
0
0
Hello, I want to improve own bootloader. Otherwords, when i start my bootloader, i want to jump my application. My bootloader and app is working. But after bootloader work, it doesn't jump to app. I use dspic33fj128mc. I set linker files for bootloader an..

Enabling large-arrays in C30 3.31 causes linker to fail, missing malloc & free functions (CinziaG)

$
0
0
Kinda curious I am trying (for the first time) Graphics library as per 2013 on a PIC24FJ256DA210; project compiles but needs a 38 or 76KB array (320x240x4 or 8).Following advices on the forum, I set the large-arrays option, but then linker step fails 'cau..

PIC24FJ128GA006 : Undefined reference to main (SNTT)

$
0
0
Urgent!!! Help!!! I am new to PIC24, using MPLAB8.10 with Microchip C30 Toolsuite Microchip ASM30 Assembler (pic30-as.exe) to build my assembly source code, but Build failed... c:/program files/microchip/mplab c30/bin/bin/../../lib\libpic30-coff.a(crt0_st..

dsp library on pic24 (seyyah)

$
0
0
Can we use dsp library with pic24? I particularly need fft library. How can i achieve this? Thanks...
Viewing all 304 articles
Browse latest View live


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