Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Junebug: need help understanding PK2CMD.exe

Status
Not open for further replies.

soky157

New Member
Can someone please tell me what PK2CMD.exe is used for. When I click on the .exe a black screen flashes briefly. That is all I see it do. I was told to use it in order to get the Junebug to release or something like that.

Thanks in advance


Soky157
 
You need to set it up exactly as shown in the Swordfish section of the Junebug manual. It will pause and display for 2 seconds after programming.
 
This is how I entered the Program from Page 11 of the Junebug Manual:
} Junebug Hello World, DIP SW 4 (TX) on, all others off
will send "Hello World" at 9600baud To the TX pin once
per second. Requires Swordfish Basic SE & Pickit2 2.50
UART tool }
Device = 18F1320
Clock = 4 // tells the compiler the FOSC speed
Config OSC = INIT02, WDT = OFF, lVP = OFF
Include "Usart.bas"
OSCON = $62 //select 4MHz internal oscillator
SetBaudrate(br9600)
While true
USART.Write("Hello World",13,10)
DelayMS(1000)
Wend
End

When going to Project Compile and Program...Swordfish when compiling doesn't like the commas in certain places and wont program.

Soky157
 
Found the problem

The very curly bracket was turned the wrong way. I then selected Project then Compile and Program everything went fine all the way to the bottom of the program BUT no LED's flashed.

Soky157




This is how I entered the Program from Page 11 of the Junebug Manual:
} Junebug Hello World, DIP SW 4 (TX) on, all others off
will send "Hello World" at 9600baud To the TX pin once
per second. Requires Swordfish Basic SE & Pickit2 2.50
UART tool }
Device = 18F1320
Clock = 4 // tells the compiler the FOSC speed
Config OSC = INIT02, WDT = OFF, lVP = OFF
Include "Usart.bas"
OSCON = $62 //select 4MHz internal oscillator
SetBaudrate(br9600)
While true
USART.Write("Hello World",13,10)
DelayMS(1000)
Wend
End

When going to Project Compile and Program...Swordfish when compiling doesn't like the commas in certain places and wont program.

Soky157
 
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top