Searching \ for '[PIC] Jal keeps setting the wrong oscillator type' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/time.htm?key=oscillator
Search entire site for: 'Jal keeps setting the wrong oscillator type'.

Exact match. Not showing close matches.
PICList Thread
'[PIC] Jal keeps setting the wrong oscillator type'
2005\08\20@011903 by Jason

flavicon
face
I hope PIC is the right tag for this.

I'm using Jal to write a program for a 16F628 using the INTRC I/O.  My programmer is the Picstart Plus, and I'm using MPLAB to write the chip.  Every time I import the hex file generate by Jal, the oscillator type is set back to HS.  
Any ideas why?

Thanks,   Jason

2005\08\20@015654 by Wouter van Ooijen

face picon face
> I hope PIC is the right tag for this.

It 'has a PIC in it' so it is.

> I'm using Jal to write a program for a 16F628 using the INTRC
> I/O.  My programmer is the Picstart Plus, and I'm using MPLAB
> to write the chip.  Every time I import the hex file generate
> by Jal, the oscillator type is set back to HS.  

Funny. So if you load the .hex and then save it, the saved version has a
differnt OSC setting? Did you try to set the processor type in MPLAB to
16F628?

Wouter van Ooijen

-- -------------------------------------------
Van Ooijen Technische Informatica: http://www.voti.nl
consultancy, development, PICmicro products
docent Hogeschool van Utrecht: http://www.voti.nl/hvu


2005\08\20@022649 by Jason

flavicon
face
From: "Wouter van Ooijen" <spam_OUTwouterTakeThisOuTspamvoti.nl>
Sent: Friday, August 19, 2005 10:54 PM


> Funny. So if you load the .hex and then save it, the saved version has a
> differnt OSC setting? Did you try to set the processor type in MPLAB to
> 16F628?

If I import the hex file, set the OSC right, then export it and import it
again, it sets the OSC  correctly.  Even if I change it to something
incorrect before importing again, it sets it back to the correct setting.

I did set the processor type to 16F628 in MPLAB.


2005\08\20@074147 by olin piclist

face picon face
Jason wrote:
> I'm using Jal to write a program for a 16F628 using the INTRC I/O.  My
> programmer is the Picstart Plus, and I'm using MPLAB to write the chip.
> Every time I import the hex file generate by Jal, the oscillator type
> is set back to HS.
>
> Any ideas why?

Because that's what is specified in the HEX file?  Do you have a __CONFIG
directive or whatever the JAL equivalent is?


*****************************************************************
Embed Inc, embedded system specialists in Littleton Massachusetts
(978) 742-9014, http://www.embedinc.com

2005\08\20@081827 by Wouter van Ooijen

face picon face
> If I import the hex file, set the OSC right, then export it
> and import it
> again, it sets the OSC  correctly.  Even if I change it to something
> incorrect before importing again, it sets it back to the
> correct setting.

Wait wait, one step at a time. You say you have an image, created by
Jal, with a certain fuses setting. Can you check with
> xwisp load <file> target F628 dump
that the image realy contains what you thing it does? And what is this
fuses value?

Next you load this image into MPLAB (import) and you say MPLAB shows a
different fuses setting?

Wouter van Ooijen

-- -------------------------------------------
Van Ooijen Technische Informatica: http://www.voti.nl
consultancy, development, PICmicro products
docent Hogeschool van Utrecht: http://www.voti.nl/hvu


2005\08\20@162934 by Jason

flavicon
face
From: "Wouter van Ooijen" <.....wouterKILLspamspam@spam@voti.nl>
Sent: Saturday, August 20, 2005 5:16 AM


> Wait wait, one step at a time. You say you have an image, created by
> Jal, with a certain fuses setting. Can you check with
> > xwisp load <file> target F628 dump
> that the image realy contains what you thing it does? And what is this
> fuses value?
>
> Next you load this image into MPLAB (import) and you say MPLAB shows a
> different fuses setting?

I had to install python and xwisp to run it.  I don't know how to interpret
that dump to say what the the fuse settings are.  The output starts with:

XWisp 1.08, command line mode
stride=2
0000: 2804
0004: 30FF 00A2 30FF 00A3 3007 009F 1023 21C3
000C: 10A3 21C2 1123 21C1 11A3 21C0 1223 21BF
0014: 12A3 21BE 1323 21BD 13A3 21BC 1422 21C4
001C: 10A0 303E 00A5 2042 10A0 301F 00A5 2042
0024: 10A0 300F 00A5 2042 10A0 30FA 00A5 2168

When  I load the hex file into MPLAB with import, it sets the OSC to HS.  I
would guess that's what the file is telling it to do.


2005\08\20@172255 by Wouter van Ooijen

face picon face
> I had to install python and xwisp to run it.  I don't know
> how to interpret
> that dump to say what the the fuse settings are.  The output
> starts with:

it's the 2007 line

> When  I load the hex file into MPLAB with import, it sets the
> OSC to HS.  I
> would guess that's what the file is telling it to do.

if that's what the file tells, what is wrong?

Wouter van Ooijen

-- -------------------------------------------
Van Ooijen Technische Informatica: http://www.voti.nl
consultancy, development, PICmicro products
docent Hogeschool van Utrecht: http://www.voti.nl/hvu


2005\08\20@183233 by Jason

flavicon
face
From: "Wouter van Ooijen" <wouterspamKILLspamvoti.nl>
Sent: Saturday, August 20, 2005 2:20 PM

> it's the 2007 line

2007: 3F62
OK

> if that's what the file tells, what is wrong?

How do I make the file tell it to use the INTRC I/O  OSC then?

2005\08\20@215421 by Matthew Miller

flavicon
face
Hi Jason,

On Sat, Aug 20, 2005 at 03:35:38PM -0700, Jason wrote:
> From: "Wouter van Ooijen" <.....wouterKILLspamspam.....voti.nl>
> > if that's what the file tells, what is wrong?
>
> How do I make the file tell it to use the INTRC I/O  OSC then?

No one has mentioned (that I've seen) one crucial thing about this
discussion. How are you setting the oscillator in Jal? I've not used Jal
before, but there must be some statement that sets the osc. You've not
mentioned what Jal statement you're using to set the osc, and this makes it
hard for others to help you. Kindly give enough info so we help you solve
the problem. ;^)

Take care.

Matthew

--
"Astrology is neither harmless nor fun, and we should see it as an enemy of
truth."        -- Richard Dawkins

2005\08\20@223020 by Jason

flavicon
face
From: "Matthew Miller" <EraseMEnamiller2spam_OUTspamTakeThisOuTnaxs.net>
Sent: Saturday, August 20, 2005 6:54 PM

> No one has mentioned (that I've seen) one crucial thing about this
> discussion. How are you setting the oscillator in Jal? I've not used Jal
> before, but there must be some statement that sets the osc. You've not
> mentioned what Jal statement you're using to set the osc, and this makes
it
> hard for others to help you. Kindly give enough info so we help you solve
> the problem. ;^)

I wasn't doing anything explicit to set it.  I'm specifying the device with:

include 16f628_4

I thought the fuses were set by the config bit setting in MPLAB, even when I
was doing assembly before I started with Jal.


2005\08\20@225343 by Matthew Miller

flavicon
face
Hi Jason,

On Sat, Aug 20, 2005 at 07:31:01PM -0700, Jason wrote:
> From: "Matthew Miller" <namiller2spamspam_OUTnaxs.net>
> Sent: Saturday, August 20, 2005 6:54 PM
>
> > No one has mentioned (that I've seen) one crucial thing about this
> > discussion. How are you setting the oscillator in Jal? I've not used Jal
> > before, but there must be some statement that sets the osc. You've not
> > mentioned what Jal statement you're using to set the osc, and this makes
> it
> > hard for others to help you. Kindly give enough info so we help you solve
> > the problem. ;^)
>
> I wasn't doing anything explicit to set it.  I'm specifying the device with:
>
> include 16f628_4

Ah ha! There you go. Some default value for the osc. config bits must be
selected since you don't set the bits in Jal.

> I thought the fuses were set by the config bit setting in MPLAB, even when I
> was doing assembly before I started with Jal.

Your half right; the fuses can be set in MPLAB, but the fuses are also set
in the HEX file! That's why Wouter asked you to dump the HEX file. I believe
that if you set the osc. in the Jal source that your problems will be
solved.

Take care.

Matthew

--
I would kill everyone in this room for a drop of sweet beer.
  - Homer Simpson

2005\08\21@025826 by Wouter van Ooijen

face picon face
> include 16f628_4

that specifies XT osc (or maybe HS, both are OK for 4 MHz)

> I thought the fuses were set by the config bit setting in
> MPLAB

that's a bad habit, evene when using asm

Wouter van Ooijen

-- -------------------------------------------
Van Ooijen Technische Informatica: http://www.voti.nl
consultancy, development, PICmicro products
docent Hogeschool van Utrecht: http://www.voti.nl/hvu


2005\08\21@025827 by Wouter van Ooijen

face picon face
> How do I make the file tell it to use the INTRC I/O  OSC then?

There is a Jal statement for that: pragma target fuses <value>

But of *that* is your real question the jallist would have been a better
forum!

Wouter van Ooijen

-- -------------------------------------------
Van Ooijen Technische Informatica: http://www.voti.nl
consultancy, development, PICmicro products
docent Hogeschool van Utrecht: http://www.voti.nl/hvu


2005\08\22@034730 by Vasile Surducan

face picon face
On 8/21/05, Wouter van Ooijen <@spam@wouterKILLspamspamvoti.nl> wrote:
> > How do I make the file tell it to use the INTRC I/O  OSC then?
>
> There is a Jal statement for that: pragma target fuses <value>
>
> But of *that* is your real question the jallist would have been a better
> forum!

 I saw I'm invisible. I've answered already to this guy here, but he
didn't read. sometime I really wander why I'm waste my time answering
to guys who are not appreciate.
:)

Vasile

2005\08\22@171600 by Jason

flavicon
face
From: "Vasile Surducan" <KILLspampiclist9KILLspamspamgmail.com>
Sent: Monday, August 22, 2005 12:47 AM


>   I saw I'm invisible. I've answered already to this guy here, but he
> didn't read. sometime I really wander why I'm waste my time answering
> to guys who are not appreciate.

Maybe you really are invisible :)

I checked back in my email box and I never got another email from you on
this thread.

Jason


2005\08\22@180725 by Stef Mientki

flavicon
face

>  
>
>>  I saw I'm invisible. I've answered already to this guy here, but he
>>didn't read. sometime I really wander why I'm waste my time answering
>>to guys who are not appreciate.
>>    
>>
>
>Maybe you really are invisible :)
>  
>
doesn't Vasile lives in TransSylvenia  ;-)

Stef

>  
>

More... (looser matching)
- Last day of these posts
- In 2005 , 2006 only
- Today
- New search...