EmbeddedRelated.com
The 2024 Embedded Online Conference

mplab linker problem - newbie problem

Started by ponjo in comp.arch.embedded14 years ago

Hi all, I'm new to mplab and when I try to build a project that I downloaded from PICOS's page I get the following error: Error - section...

Hi all, I'm new to mplab and when I try to build a project that I downloaded from PICOS's page I get the following error: Error - section '_entry_scn' type is non-overlay and absolute but occurs in more than one input file. Errors : 1 Here's my linker file: [CODE] //**********************************************************************/ //* ...


electronic Chronometer with mplab

Started by Mich in comp.arch.embedded19 years ago 3 replies

Hi For school I have to program with mplab a electronic Chronometer but the chronometer doesn't work can some please look at the...

Hi For school I have to program with mplab a electronic Chronometer but the chronometer doesn't work can some please look at the code Thanks Mich ; This program simulates a chronometer title "Chronometer" list p=16F870, r=hex, n=0 __config 0x0C02 #include ;************************************************************ ; variables (equ statements) ;***********


PIC mplab c18 C compiler

Started by darkknight in comp.arch.embedded18 years ago 15 replies

Hi A colleague of mine is using MPLAB C compiler and is struggling with the saving of registers in ISRs. Apparently the compiler manual...

Hi A colleague of mine is using MPLAB C compiler and is struggling with the saving of registers in ISRs. Apparently the compiler manual says you have to manually scan the assembler code generated by the compiler to work out what registers to save/restore in interrupt routines. His software is crashing and he appears to be struggling to solve the problem. Does anyone have any exper...


HI-TECH c compiler

Started by bahrouz in comp.arch.embedded14 years ago 3 replies

i'm using the microchip mplab ide with hi-tech c compiler integrated into it ,mplab version 8.46 what ever the c code i try to build it keeps...

i'm using the microchip mplab ide with hi-tech c compiler integrated into it ,mplab version 8.46 what ever the c code i try to build it keeps giving me Error [939] ; . no file arguments i dont know what to do to make it build my code ,i wish if there is one can enlighten me about it ,i know its a newibe question and i hope if any one can make it clear to me . thanks in advance :)


PICKIT 2 development help on MPLAB or Piklab or any other IDE on a PIC18F2620

Started by ssylee in comp.arch.embedded17 years ago 2 replies

I have been trying to use the PICKIT 2 programmer option within MPLAB IDE, but it seems like the option to do so is disable as shown...

I have been trying to use the PICKIT 2 programmer option within MPLAB IDE, but it seems like the option to do so is disable as shown in http://imagebin.ca/view/86lX0hhQ.html. I have also tried to update the firmware of my PICKIT 2 separately on the software provided on the Microchip website, but it keeps on freezing regularly every time I have attempted to check my PIC18F2620 to see if it is ...


dsPIC33FJ32GP302 Configuration Bits

Started by embcontrol in comp.arch.embedded13 years ago 4 replies

Hi, I am trying to program a dsPIC33FJ32GP302 chip with the Pickit 2 programmer and using MPLAB C30 (This chip supports the Pickit 2 as...

Hi, I am trying to program a dsPIC33FJ32GP302 chip with the Pickit 2 programmer and using MPLAB C30 (This chip supports the Pickit 2 as illustrated by the green light on the "select device" window). I managed to put the chip on a board and connected it to the pickit 2. I built a project in MPLAB and the programmer sends power to the target as expected and it recognizes it. I imported th...


CC51 compile error with MPLAB

Started by Scott Hooper in comp.arch.embedded20 years ago 6 replies

Hey everybody, I am trying to resolve a compile-time error using CC5x through MPLab. I have a code project (SOURCE CODE AT BOTTOM) where I'm...

Hey everybody, I am trying to resolve a compile-time error using CC5x through MPLab. I have a code project (SOURCE CODE AT BOTTOM) where I'm trying to drive some LEDs out of a MAX7219 driver IC. I have taken the code outlined below from http://www.fernando-heitor.de/pic/projekte/max7219/programm.htm (bless them, there is so little information relating to the combination of the MAX7219 and ...


EXT RC on 18F1320

Started by PigPOg in comp.arch.embedded18 years ago 1 reply

Can anyone advise please? I written a simple prog for an 18F1320 using an RC network (62K+100pF) giving an fosc of approx 100KHz. I've...

Can anyone advise please? I written a simple prog for an 18F1320 using an RC network (62K+100pF) giving an fosc of approx 100KHz. I've flashed a device and the program runs perfectly with the correct fosc/4 (25KHz) waveform on RA6/OSC2. Now, if I replace the 18F1320 with a MPLAB ICE2000, PCM18XJO and DVA18XP180 and execute from within MPLAB IDE (V7.31), RA6/OSC2 has a frequency of appr...


MPLAB error message

Started by kansas_ray in comp.arch.embedded20 years ago 2 replies

Hi to all, I am running MPLAB software to a PIC16F877A microcontroller via a CCS ICD-S20 pod. After downloading the code I get a pop-up with...

Hi to all, I am running MPLAB software to a PIC16F877A microcontroller via a CCS ICD-S20 pod. After downloading the code I get a pop-up with the following error message: "Could not start the target. The target was not halted after reset. Check the target oscillator and MCLR." I am using a 20MHz crystal oscillator from EPSON (working fine). The MCLR circuit is an MCP120-4.5V pulled up ...


PIC18F2620 sample code in a sample project in MPLAB

Started by ssylee in comp.arch.embedded17 years ago 4 replies

I'm currently using MPLAB's C18 compiler to build a hex file from a simple "hello world" program to flash onto the program memory of...

I'm currently using MPLAB's C18 compiler to build a hex file from a simple "hello world" program to flash onto the program memory of a PIC18F2620 in order to see if I can perhaps create a program to toggle a pin to get started. However, I have been getting the following error in the pastebin link from the Build window: http://www.pastebin.ca/684463. I'm using a PICKIT 2 programmer from Microc...


Problem for program 16f628A with Mplab icd 2 Verification problem

Started by manfer1984 in comp.arch.embedded17 years ago 9 replies

Hi all> I have some troubles with programing the 16f628A with mplab icd2 i configured all bits configured, i don't have any pull up...

Hi all> I have some troubles with programing the 16f628A with mplab icd2 i configured all bits configured, i don't have any pull up resistor in RB6 and RB7, the voltage suply is ok for Vdd and Vpp. the dispositive pass all the self test and the voltage have a rigth value. also i configured de bits configured in the program like this: __CONFIG _HS_OSC & _WDT_OFF & _PWRTE_ON & _BODEN_OFF


MPLAB C 30 Student Edition C-Compiler optimization level 1

Started by Thomas Magma in comp.arch.embedded17 years ago 4 replies

Here is a quote from Microchip: "The MPLAB C30 C Compiler Student Edition is free! It is full-featured for the first 60 days. After 60 days...

Here is a quote from Microchip: "The MPLAB C30 C Compiler Student Edition is free! It is full-featured for the first 60 days. After 60 days only optimization level 1 can be enabled in the compiler. The compiler will continue to function after 60 days, but code size may increase." Does anyone really know what 'optimation level 1' really means? Or is this a trick get you purchase the t...


pic18 questions

Started by John Smith in comp.arch.embedded17 years ago 1 reply

a) CONFIG/CBLOCK directive: I don't know what these directives do b) retfie dt; this is a Pic18 instruction. But, mplab uses only "retfie"....

a) CONFIG/CBLOCK directive: I don't know what these directives do b) retfie dt; this is a Pic18 instruction. But, mplab uses only "retfie". Is it equivalent to "retfie 0"? If I comment these directive, then my files are compiled. But, the hex files are not same. Also, mplab generated hex files are not in previous (pic16fx) format. The header is in previous format. But, the body is bro...


MPLAB linker. Link step failed.. can not fit section

Started by urefowei in comp.arch.embedded15 years ago 3 replies

[quote]Executing: "C:\MCC18\bin\mcc18.exe" -p=18F4550 /i"C:\MCC18\h" "enumeration_na_ni.c" -fo="enumeration_na_ni.o" -D__DEBUG -mL MPLAB C18...

[quote]Executing: "C:\MCC18\bin\mcc18.exe" -p=18F4550 /i"C:\MCC18\h" "enumeration_na_ni.c" -fo="enumeration_na_ni.o" -D__DEBUG -mL MPLAB C18 v3.22 (demo) Copyright 2000-2008 Microchip Technology Inc. Days remaining until demo becomes feature limited: 10 WARNING: The procedural abstraction optimization will not be supported when the demo becomes feature limited. Executing: "C:\MCC18\bin\...


PORTA register won't bit set (MPLAB)

Started by Thomas Magma in comp.arch.embedded17 years ago 5 replies

When I execute my simple program in MPLAB the PORTA filer register bit 0 is not being set, but I can easily set bit 0 of the FSR register that...

When I execute my simple program in MPLAB the PORTA filer register bit 0 is not being set, but I can easily set bit 0 of the FSR register that sits right next to PORTA in the micro. In fact, nothing I do to PORTA works. Has anyone seen this before? Start BSF STATUS, RP0 MOVLW B'11111110' BCF STATUS, RP0 BSF PORTA, 0 ;doesn't work ...


C Compiler

Started by ken in comp.arch.embedded20 years ago 5 replies

Does anybody have a copy of Microchip's MPLAB C18 C Compiler or equivalent. Thanks for any help

Does anybody have a copy of Microchip's MPLAB C18 C Compiler or equivalent. Thanks for any help


Need advice for a micro

Started by panagiotis in comp.arch.embedded20 years ago 4 replies

Hello all, What do you think about the MPLAB ICD2 and the "USB Pic" in general ?! MSP430xxxx lowers, would you switch to PIC? Is there some USB...

Hello all, What do you think about the MPLAB ICD2 and the "USB Pic" in general ?! MSP430xxxx lowers, would you switch to PIC? Is there some USB based developpement board for MSP430 I ignore ?!?


dsPIC33F assembler query

Started by Syd Rumpo in comp.arch.embedded12 years ago 1 reply

Hi My MPLAB assembler won't let me use some dsPIC33 instructions - for example CPBLT reports... Error: Invalid mnemonic: 'cpblt' I'm not...

Hi My MPLAB assembler won't let me use some dsPIC33 instructions - for example CPBLT reports... Error: Invalid mnemonic: 'cpblt' I'm not sure what I'm doing wrong, but it's bound to be simple. Any ideas? Thanks -- Syd


PIC templates

Started by Dennis in comp.arch.embedded13 years ago 9 replies

Dummies question here... I'm starting out on a new PIC device 18LF14K22, using MPLAB / C18. Where can I find templates with config bits / int...

Dummies question here... I'm starting out on a new PIC device 18LF14K22, using MPLAB / C18. Where can I find templates with config bits / int vector definitions etc all ready to go? I poked around on Microchips site with no success. Thanks


Magenta Icebreaker kit?

Started by Anonymous in comp.arch.embedded17 years ago 1 reply

Hi newbie here, I am doing GCSE technology and have been given and icebreaker kit to constuct which I have done but am having...

Hi newbie here, I am doing GCSE technology and have been given and icebreaker kit to constuct which I have done but am having problems programming the chip, i have installed both mplab and the icebreaker software but to be honest i just don't know what to do next, there are very little instructions with it. can anyone point me in the right direction? thanks



The 2024 Embedded Online Conference