Support for some low power devices

View: New views
7 Messages — Rating Filter:   Alert me  

Support for some low power devices

by seventh guardian-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I'm trying to add support for these pic18f(...) devices to gputils:
23k20, 24k20, 25k20, 26k20, 43k20, 44k20, 45k20, 46k20

I've managed to somewhat understand how to add devices, but some
things aren't clear enough yet. I'm sorry if this info is out there
somewhere, I did search but possibly not enough.

I've added a line to gpprocessor.h for each of the new devices. Now I
need to add a line to gpprocessor.c, but some items of the struct
aren't clear, at least the way they are used.

So my questions are:
1. How can I find out the "coff type"?
2. What is "maxrom"? How does it relate to "badrom"?

Ok, it's pretty much this ;) As soon as I get this info I'll send a patch.

Thanks!
  Renato Caldas

---------------------------------------------------------------------
To unsubscribe, e-mail: gnupic-unsubscribe@...
For additional commands, e-mail: gnupic-help@...


Re: Support for some low power devices

by David Barnett-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, 7 Jul 2008 18:02:41 +0100
"Renato Caldas" <seventhguardian@...> wrote:

> Hello,
>
> I'm trying to add support for these pic18f(...) devices to gputils:
> 23k20, 24k20, 25k20, 26k20, 43k20, 44k20, 45k20, 46k20
>
> I've managed to somewhat understand how to add devices, but some
> things aren't clear enough yet. I'm sorry if this info is out there
> somewhere, I did search but possibly not enough.
I added that info just recently in our wiki:
http://gputils.wiki.sourceforge.net/

The wiki's public to edit, so feel free to improve on the info that's
there.

Out of curiosity, what places did you search (e.g. google, the gputils
web page...)? I need to link to the wiki from the web site and anywhere
else people might be looking for it.

David

---------------------------------------------------------------------
To unsubscribe, e-mail: gnupic-unsubscribe@...
For additional commands, e-mail: gnupic-help@...


Re: Support for some low power devices

by seventh guardian-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Jul 8, 2008 at 4:47 AM, David <daviebdawg@...> wrote:

> On Mon, 7 Jul 2008 18:02:41 +0100
> "Renato Caldas" <seventhguardian@...> wrote:
>
>> Hello,
>>
>> I'm trying to add support for these pic18f(...) devices to gputils:
>> 23k20, 24k20, 25k20, 26k20, 43k20, 44k20, 45k20, 46k20
>>
>> I've managed to somewhat understand how to add devices, but some
>> things aren't clear enough yet. I'm sorry if this info is out there
>> somewhere, I did search but possibly not enough.
> I added that info just recently in our wiki:
> http://gputils.wiki.sourceforge.net/
>
> The wiki's public to edit, so feel free to improve on the info that's
> there.

Ah thanks!

> Out of curiosity, what places did you search (e.g. google, the gputils
> web page...)? I need to link to the wiki from the web site and anywhere
> else people might be looking for it.

I did search google, but without much luck. Only some mailing list
posts saying it would be easy to do, and just "copy a line from a
similar device".. I've also searched the project page and the gputils
manual.

I'd say putting a link to the wiki on the left toolbar of the gputils
page would be a good start.

Thanks for the info! Expect a patch soon ;)

  Renato

> David
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: gnupic-unsubscribe@...
> For additional commands, e-mail: gnupic-help@...
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: gnupic-unsubscribe@...
For additional commands, e-mail: gnupic-help@...


Re: Support for some low power devices

by seventh guardian-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Jul 8, 2008 at 2:00 PM, Renato Caldas <seventhguardian@...> wrote:

> On Tue, Jul 8, 2008 at 4:47 AM, David <daviebdawg@...> wrote:
>> On Mon, 7 Jul 2008 18:02:41 +0100
>> "Renato Caldas" <seventhguardian@...> wrote:
>>
>>> Hello,
>>>
>>> I'm trying to add support for these pic18f(...) devices to gputils:
>>> 23k20, 24k20, 25k20, 26k20, 43k20, 44k20, 45k20, 46k20
>>>
>>> I've managed to somewhat understand how to add devices, but some
>>> things aren't clear enough yet. I'm sorry if this info is out there
>>> somewhere, I did search but possibly not enough.
>> I added that info just recently in our wiki:
>> http://gputils.wiki.sourceforge.net/
>>
>> The wiki's public to edit, so feel free to improve on the info that's
>> there.
>
> Ah thanks!
>
>> Out of curiosity, what places did you search (e.g. google, the gputils
>> web page...)? I need to link to the wiki from the web site and anywhere
>> else people might be looking for it.
>
> I did search google, but without much luck. Only some mailing list
> posts saying it would be easy to do, and just "copy a line from a
> similar device".. I've also searched the project page and the gputils
> manual.
>
> I'd say putting a link to the wiki on the left toolbar of the gputils
> page would be a good start.
>
> Thanks for the info! Expect a patch soon ;)
Hello David,

Here is the patch.

I was unable to find the coff type for the 23k20 and 43k20 as the
current mpasm doesn't yet support them. There's no updated info on the
mpasm manual either. They can always be added up later.

I've noticed that the 45k20 was already supported as a future product.
It is now a current product, so I've revised it and put it in the
correct BSR switch position :)

Cheers,
  Renato

>  Renato
>
>> David
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: gnupic-unsubscribe@...
>> For additional commands, e-mail: gnupic-help@...
>>
>>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: gnupic-unsubscribe@...
For additional commands, e-mail: gnupic-help@...

p18fxxk20_support.patch (11K) Download Attachment

Re: Support for some low power devices

by David Barnett-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, 8 Jul 2008 15:59:35 +0100
"Renato Caldas" <seventhguardian@...> wrote:

> Hello David,
>
> Here is the patch.
>
> ...
Committed to SVN as r546. Thanks.

David

---------------------------------------------------------------------
To unsubscribe, e-mail: gnupic-unsubscribe@...
For additional commands, e-mail: gnupic-help@...


Re: Support for some low power devices

by seventh guardian-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Jul 9, 2008 at 4:33 AM, David <daviebdawg@...> wrote:
> On Tue, 8 Jul 2008 15:59:35 +0100
> "Renato Caldas" <seventhguardian@...> wrote:
>
>> Hello David,
>>
>> Here is the patch.
>>
>> ...
> Committed to SVN as r546. Thanks.

Ah some of the devices don't yet have their headers and link scripts
in the tree. Those are:

p18f24k20
p18f26k20
p18f44k20
p18f46k20

I don't know how they are imported, but I assume it's a matter of
taking them from mpasm? Could you do that?

Thanks!
  Renato

> David
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: gnupic-unsubscribe@...
> For additional commands, e-mail: gnupic-help@...
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: gnupic-unsubscribe@...
For additional commands, e-mail: gnupic-help@...


Re: Support for some low power devices

by David Barnett-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, 9 Jul 2008 11:02:10 +0100
"Renato Caldas" <seventhguardian@...> wrote:

> Ah some of the devices don't yet have their headers and link scripts
> in the tree. Those are:
>
> p18f24k20
> p18f26k20
> p18f44k20
> p18f46k20

Done (finally).

David

---------------------------------------------------------------------
To unsubscribe, e-mail: gnupic-unsubscribe@...
For additional commands, e-mail: gnupic-help@...