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

Is there a way to force C30 generate a Jump Table for a simple switch() statement? (DarioG)

$
0
0
[some sunday question, again I have a simple switch() with some 8 cases, based upon an enum hence all consecutive: but the compiler still generates a bunch of Comparisons/Branch... no matter what optimization in use. I am (for a change!) pushing the limit..

Is it possible to relocate the interrupt vector table? (niwnfyc)

$
0
0
I'm using the dsPIC33FJ256GP710 with the C30 compiler. Is it possible to move the IVT to a different memory address? What I would like to do is setup a bootloader that uses memory locations 0x00000 to 0x04FFF, and then the main program uses ONLY addr..

SET_TRIS_B() function (cdobuff)

$
0
0
I have just started using PICs again after a 4 year absence! I have previosly used asm to program but my company has provided me with a C assembler. I want to simply set all the pins on port b to output by using: SET_TRIS_B(0); when i try to compile a get..

MPLABX IDE, C30 compiler issue (Immanuel Raja)

$
0
0
Hi, I am using MPLABX IDE V4.05. and am getting the following error. build/default/production/CM.o(.text+0x174be)c:\program files\microchip\mplabc30\v3.31\bin\bin\..\bin/pic30-elf-ld.exe: Dwarf Error: found address size '185', this reader can not handle s..

Trouble bit-banging a 74HC164 shift-register (Spottymaldoon)

$
0
0
I'm bit-banging from a 32MX (80MHz) to a 74HC164 8-bit shift register. My clock is controlled by RA9, data via RA10 and the chip enable is through RB7. Why doesn't the following work please? void ValveSet(unsigned char data)
{
char i;
_LATB..

DSPIC33EP512MU810 ASL2/ASDA2 I2C PROBLEM (Cengizhan)

$
0
0
Hi,In my project I use dsPIC33EP512MU810 and XC30 tool with MPLAB. I try to communicate with I2C protocol between pic and DS1682 ETC sensor the former is master and the latter is slave. From the datasheet which is located in the attached document device i..

No RSS Feed Item Available

c++ cross compiler for pic (dspic30f6011a)

$
0
0
is there any c++ cross compiler available for pic micro controller. thanks..

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..

DSPIC33EP512MU810 ASL2/ASDA2 I2C PROBLEM (Cengizhan)

$
0
0
Hi,In my project I use dsPIC33EP512MU810 and XC30 tool with MPLAB. I try to communicate with I2C protocol between pic and DS1682 ETC sensor the former is master and the latter is slave. From the datasheet which is located in the attached document device i..

What does (a!xr) mean in a linker script? (arnold_w)

$
0
0
Below is an excerpt from a standard linker script: data (a!xr) : ORIGIN = 0x800, LENGTH = 0x4000 reset : ORIGIN = 0x0, LENGTH = 0x4 ivt : ORIGIN = 0x4, LENGTH = 0xFC aivt : ORIGIN = 0x104, LENGTH = 0xFC program (xr) : ORIGIN = 0x200, LENGTH = 0x155F8 con..

Linker Script Error: section .handle problem (asmallri)

$
0
0
I am working on a high memory bootloader for the PIC24F developed using C30. When code origin is set to 0xF000 or below the code links correctly. If the origin is set above the first 64K page, such as 0x10000 or above, the code will not link. It produces ..

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..

Do we really need the volatile qualifier? (DavidePizzolato)

$
0
0
In the forum, a common answer to solve problems with interrupts is something like “declare the variable as volatile”. I have fully functional softwares with many shared variables and many interrupts, without any volatile variable. I wonder if sooner or la..

No RSS Feed Item Available


Where is: 16-Bit Language Tools Reference Manual (RogerAF)

$
0
0
Where can I Find the "16-Bit Language Tools Reference Manual" (DS50001456). The Reference Manual search turns up no documents...

Different HEX files. (mark42)

$
0
0
Hello,I have Source code for PIC24(using C30-V3.30 compiler) written in embedded c.Whenever I try to compare the HEX file of same source code compiled on two different machines(using same compiler with same version),it shows that these two hex files are d..

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..

SET_TRIS_B() function (cdobuff)

$
0
0
I have just started using PICs again after a 4 year absence! I have previosly used asm to program but my company has provided me with a C assembler. I want to simply set all the pins on port b to output by using: SET_TRIS_B(0); when i try to compile a get..

MPLABX IDE, C30 compiler issue (Immanuel Raja)

$
0
0
Hi, I am using MPLABX IDE V4.05. and am getting the following error. build/default/production/CM.o(.text+0x174be)c:\program files\microchip\mplabc30\v3.31\bin\bin\..\bin/pic30-elf-ld.exe: Dwarf Error: found address size '185', this reader can not handle s..
Viewing all 304 articles
Browse latest View live


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