Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 220699 - dev-embedded/gputils: gpasm refuses CONFIG directive for 18F4550
Summary: dev-embedded/gputils: gpasm refuses CONFIG directive for 18F4550
Status: VERIFIED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Embedded Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-07 01:18 UTC by Christopher Head
Modified: 2008-05-18 18:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Head 2008-05-07 01:18:14 UTC
According to the gputils website, as of version 0.13.5, the CONFIG directive should be supported for the 18F series. However, it doesn't work, at least for the 18F4550.

Reproducible: Always

Steps to Reproduce:
$ cat config.asm
	radix dec
	processor 18F4550
	#include <p18f4550.inc>

	config PLLDIV=5, CPUDIV=OSC1_PLL2, USBDIV=2, FOSC=HSPLL_HS, FCMEN=OFF, IESO=OFF
	config PWRT=ON, BOR=OFF, VREGEN=ON, WDT=OFF, MCLRE=ON, PBADEN=ON, CCP2MX=OFF
	config STVREN=ON, LVP=OFF, ICPRT=OFF, XINST=ON, DEBUG=OFF
	config CP0=OFF, CP1=OFF, CP2=OFF, CP3=OFF, CPB=OFF, CPD=OFF
	config WRT0=OFF, WRT1=OFF, WRT2=OFF, WRT3=OFF, WRTB=OFF, WRTC=OFF, WRTD=OFF
	config EBTR0=OFF, EBTR1=OFF, EBTR2=OFF, EBTR3=OFF, EBTRB=OFF

	end

$ gpasm -v
gpasm-0.13.5 beta

$ gpasm -c -w2 config.asm

Actual Results:  
config.asm:5:Error [176] CONFIG Directive Error:  (setting not found for selected processor)


Expected Results:  
This should compile; MpASM compiles identical code fine.
Comment 1 Christopher Head 2008-05-07 01:19:12 UTC
Note that config.asm wrapped lines in the bug report; anything indented was the start of a new line in the original code while anything not indented is the continuation of the previous line.
Comment 2 Denis Dupeyron (RETIRED) gentoo-dev 2008-05-13 10:03:15 UTC
Could you please file this bug upstream and follow it up there ? Unless you can provide a patch for it I'm afraid there's not much much we can do here. If you or upstream end up being convinced this is a Gentoo-specific issue then feel free to reopen this bug, but in that case we'll certainly need help to fix it.

Denis.
Comment 3 Christopher Head 2008-05-13 18:07:57 UTC
Taking it upstream, will report progress.
Comment 4 Denis Dupeyron (RETIRED) gentoo-dev 2008-05-13 18:49:50 UTC
(In reply to comment #3)
> Taking it upstream, will report progress.

Thanks a lot.

Denis.
Comment 5 Christopher Head 2008-05-14 06:33:49 UTC
Report from upstream:

[quote]
The example works perfectly with SVN r500 or newer. Support for the CONFIG
directive on the 18f4550 just barely missed the 0.13.5 release, but will
definitely be in the 0.13.6 release which I expect to have ready in about a
week.

You can either update to the SVN version or wait for the next release.
[/quote]
Comment 6 Denis Dupeyron (RETIRED) gentoo-dev 2008-05-14 08:32:51 UTC
I hope you won't mind if I don't create a snapshot for a feature that will come in a week. If it was a security fix or if I was less busy it would be a different story, though. Make sure you reopen this bug when upstream makes the new release, and I'll bump it ASAP.

Denis.
Comment 7 Christopher Head 2008-05-14 18:04:43 UTC
Not at all, I wasn't expecting anything before the next release anyway :)
Comment 8 David Barnett 2008-05-18 04:10:20 UTC
I've released the new version (gputils-0.13.6). It's on sourceforge now, but I'll go ahead and update the ebuild ASAP.
Comment 9 David Barnett 2008-05-18 04:24:24 UTC
I attached the new ebuild at bug #222581.
Comment 10 Christopher Head 2008-05-18 18:42:23 UTC
Nice, same-day ebuild service :) Seems to be working for me.