Error 118 Overwriting Previous Address Contents
PMHi - I used PBP3 quite a few years ago to write a fairly complex security alarm program. Since then I've been using C code and have to admit I've forgotten a lot about PBP. I recently pulled the archives to add a modification to the program, but it no longer compiles. I get the error message: Error[118] C:\MPLAB PROJECTS\LCD GATE ALARM 3 RTC - TEST 2015\LCD GATE ALARM M4R.ASM 483 : Overwriting previous address contents (2007) Halting build on first failure as requested. Looking at the ASM file around line 483 I see: ASM? __config _HS_OSC & _WDT_OFF & _LVP_OFF & _CP_OFF ENDASM? Ah, it slowly comes back to me. I remember struggling to master the dreaded CONFIG directive, and finally understanding it after much effort, but now it looks like something's broken there, and I can't remember anything about it. Where to start? The only thing I can think of is that I've probably updated MPBLAB and the compilers since then. Can anyone give me a hand and save me some pain with this? Thanks... Henrik Olsson02-11-2015, 01:11 PMDid you really use PBP3 or did you possibly use an earlier version? The reason I ask is that the way you manage the CONFIG Words in PBP3 is different than in earlier versions (and it's for the better) and your example shows the typical way of doing prior to PBP3 where you commented out the default config in the .inc file and added your own in your source file. Now, if you use the #CONFIG / #ENDCONFIG directives instead and you don't need mess around with the .inc files. I'm guessing you have this in your source file: ASM __config _HS_OSC & _WDT_OFF & _LVP_OFF & _CP_OFF ENDASM If so, then simply replace ASM with #CONFIG and ENDASM with #ENDCONFIG. If you look in the DEVICE_REFERENCE folder you'll find a file for each device the compiler supports. In those files you'll find ALL the settings for the specific device and what PBP will use if you DON'T add a #CONFIG/#ENDCONFIG block to your source. /Henrik. chicowoodhill02-11-2015, 06:02 PMDid you really use PBP3 or did you possibly use an earlier version? I'm guessing you have this in your source file: ASM __config _HS_OSC & _WDT_OFF & _LVP_OFF & _CP_OFF ENDASM If so, then simply replace ASM with #CONFIG and ENDASM with #ENDCONFIG. /
2014, 14:16Beginning to regret that I bought PBP3 for a lot of money. I'm so tired of this idiot system failure. I've had it 4 times before with PBP2.6. The only thing that works is to format the entire C drive! Not even a simple Blink.pbp program can be compiled. I suspect that it is something in the windows registry that has roots in - maybe something from Microchip. Have tried to uninstall and reinstall programs/compilers. CCleaner in between. Does not work. runs: Windows 8.1 x64 PBP 3.0.7.0 MPLABX 2.00 - Jacob 7224 7225 http://support.melabs.com/archive/index.php/t-1065.html? HenrikOlsson- 10th February 2014, 15:34Hi Jacob, When you get that error meesage it usually means you're trying to change the default CONFIG bits for the specific device and that you're doing it wrong. This was a VERY common question on the forum before PBP3 was released. PBP3 changed the way that CONFIGs are handled, to the better. Now, I see from your screenshot that you're NOT http://www.picbasic.co.uk/forum/archive/index.php/t-19013.html trying to tweak the CONFIG so as long as you haven't manually edited any files (and in doing so messed them up) I'm not sure what the problem might be here. Is it possible that you've edited any of .inc files for the 18F4620 in this case? I opened the Blink example in MicroCodeStudio, selected 18F4620 in the dropdown, un-commented the ADCON1 line and hit compile - no errors, compiles fine. I'm on PBP3.0.7.4 and I'm using MPASM 5.47 (from MPLAB 8.88). I wonder if it's possibly a conflict with the MPASM version you're using (from MPLABX) but it I really don't know. /Henrik. Darrel Taylor- 10th February 2014, 18:061) Does the problem only affect the 18F's? Can you compile a program for a 16F? 2) Do you have Office 365 installed on your computer? Office 365 is known to cause this problem with the Microchip MPASM assembler. PerlNoerd- 10th February 2014, 19:34Via Google Translate: Very interesting, Darrel: Blink.pbp works for 16F88! It's only 18F that are affected by the problem. Okay, here's a longer program (DisplayRouter.pbp) I have written that I Regularly inspect uploaded to my PIC18F45K22. It has now run for several months.
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company http://stackoverflow.com/questions/20429297/pic-assembly-gpasm-error-overwriting-previous-address-contents Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million http://www.instructables.com/answers/pic-12f629-mplab-problem/ programmers, just like you, helping each other. Join them; it only takes a minute: Sign up PIC Assembly GPASM Error “Overwriting previous address contents” up vote 0 down vote favorite I'm trying to build assembly firmware written error 118 for Ikea Dioder v2 (3 buttons and color wheel, project presented at http://www.vagrearg.org/content/skilt20): https://github.com/openspaceaarhus/ikea-sign/blob/master/idh-firmware.asm#L430 The assembler gpasm is part of gputils which can be found at h ttp://sourceforge.net/projects/gputils/ >gpasm -v gpasm-1.2.0 #980 (May 17 2013) >gpasm -DCOD=1 -p16f684 -o idh-firmware-16f684.hex idh-firmware.asm idh-firmware.asm:430:Error[118] Overwriting previous address contents (0020) The source code mentions something about "jump-table misalignments" which I don't understand (I know C but no asm). Could this have to do with the error? assembly error 118 overwriting microcontroller pic share|improve this question asked Dec 6 '13 at 16:51 user3075213 1 add a comment| 1 Answer 1 active oldest votes up vote -1 down vote Looks like some jump table misalignment might be to blame. Have you looked at the listings, like it says in the idh-firmware.asm line 121 on? The error as such mean that the assembler outputs of different pieces of code overlap. Looks like that appens at address RAM_B0_START equ 0x0020 It could also have to do with the configuration (absolute/relocatable code): ; Running variables IFDEF COD ; { org 0x0020 ELSE ; }{ databank udata 0x0020 ENDIF ; } share|improve this answer edited Dec 9 '13 at 15:35 answered Dec 8 '13 at 23:37 turboscrew 54739 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged assembly microcontroller pic or ask your own question. asked 2 years ago viewed 320 times active 2 years ago Related 7Whats the best resource to learn Assembly language for PIC microcontroller's2Asse
Instructable »ANSWERS : Technologysearch answers:Ask a Questionpic 12f629 // mplab problemevery time i try to build a 12f629 project i get Error[118] C:DOCUMENTS AND SETTINGSOWNERDESKTOP F629 SOURCE.ASM 6 : Overwriting previous address contents (2007) Error[118] C:DOCUMENTS AND SETTINGSOWNERDESKTOP F629 SOURCE.ASM 6 : Overwriting previous address contents (2007) what is the problem as i used a good source code unmodfiedFollow QuestionFlag this comment as:Not NiceInappropriateSpamPreview Your CommentWe have a be nice comment policy. Please be positive and constructive. Add ImagesxWe noticed you attached photosto your comment.Did you make this instructable? No, just adding photos. Yes, I made it! steveastrouk6 years agoReplyWrong target for the size of program you are trying to assemble ?12V (author) steveastrouk6 years agoReply; list directive to define processor list p=12f629 ; processor specific variable definitions #include