Firmware for Explorer 16, 18F4550 (U2) (unofficial)

Page: < 12345 > Showing page 2 of 5
Author
scania
New Member
  • Total Posts : 5
  • Reward points : 0
  • Joined: 2008/06/25 05:45:21
  • Location: 0
  • Status: offline
RE: Firmware for Explorer 16, 18F4550 (U2) (unofficial) 2008/06/25 06:16:29 (permalink)
0
Thanks to all contributors along this thread! The main information here should be published as priority flash: The description of  the USB subsystem on Explorer 16 needs to be updated!
 
Connecting my pc and the E16 USB gives no visible effect at all.
 
May I kindly ask for an up-to-date step-by-step guide how to use the USB connection on Explorer 16 for programming the PIC24FJ128GA010.
 
Best regards!
#21
xiaofan
Super Member
  • Total Posts : 6247
  • Reward points : 0
  • Joined: 2005/04/14 07:05:25
  • Location: Singapore
  • Status: offline
RE: Firmware for Explorer 16, 18F4550 (U2) (unofficial) 2008/06/25 07:01:23 (permalink)
0
1) Download the unofficial firmware and PC software
2) put J7 in "F4550" position and use another programmer like ICD2 to program the firmware to the 18F4550
3) put J7 in "PIC24" position and now you can use the downloaded PC application to program your PIC24 chip.

  USB_Links and libusb
#22
scania
New Member
  • Total Posts : 5
  • Reward points : 0
  • Joined: 2008/06/25 05:45:21
  • Location: 0
  • Status: offline
RE: Firmware for Explorer 16, 18F4550 (U2) (unofficial) 2008/06/25 07:34:50 (permalink)
0
Thank you, xiaofan, for the precise answer and for your earlier contributions here. The whole thread team has made life easier for many Explorers!
 
scania,
Sweden
#23
rafalw
Junior Member
  • Total Posts : 44
  • Reward points : 0
  • Joined: 2007/06/23 02:24:42
  • Location: 0
  • Status: offline
RE: Firmware for Explorer 16, 18F4550 (U2) (unofficial) 2008/06/27 08:55:11 (permalink)
5 (2)
New version of firmware for PICkit 2 Lite.
I added support for 3-State on 'Release from Reset',  and improved SPI, rewrite in assembler and switch to high interrupt priority, and small fixes for compatibility with original PICkit 2.

FirmwareV2.100.18.for.Explorer16 (JTAG PIC32 and SPI).zip
http://www.mediafire.com/?mnno3xmjlqz

FirmwareV2.100.05.for.Explorer16.zip
http://www.mediafire.com/?tl3tjjvnug5
post edited by rafalw - 2008/06/30 10:59:40
#24
rafalw
Junior Member
  • Total Posts : 44
  • Reward points : 0
  • Joined: 2007/06/23 02:24:42
  • Location: 0
  • Status: offline
RE: Firmware for Explorer 16, 18F4550 (U2) (unofficial) 2008/06/30 11:05:19 (permalink)
0
Attention: When debugging SPI must be disabled!

The problem is a buffer SPI uses the same buffer as the debugger.

#25
rafalw
Junior Member
  • Total Posts : 44
  • Reward points : 0
  • Joined: 2007/06/23 02:24:42
  • Location: 0
  • Status: offline
RE: Firmware for Explorer 16, 18F4550 (U2) (unofficial) 2008/06/30 14:36:57 (permalink)
5 (1)
New firmware for SPI.

FirmwareV2.100.20.for.Explorer16 (JTAG PIC32 and SPI).zip
http://www.mediafire.com/?52nsz1tzhpq

This version of firmware allows to work for two PICkits. First PICkit 2 as an external debugger and second PICkit 2 on the board (E16) as support the SPI by PC Application. In earlier versions of firmware, PC Application can disrupt the an external PICkit 2 debugger. Yesterday make mistakes in the version 2.100.19.
post edited by rafalw - 2008/07/01 09:44:29
#26
xiaofan
Super Member
  • Total Posts : 6247
  • Reward points : 0
  • Joined: 2005/04/14 07:05:25
  • Location: Singapore
  • Status: offline
RE: Firmware for Explorer 16, 18F4550 (U2) (unofficial) 2008/07/30 05:13:36 (permalink)
0
Just want to let you know that the firmware source code (V2.32) and host software (v2.52) source codes for PICKit 2 V2.52 have been released. You may want to update your changes. Thanks.
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1960

  USB_Links and libusb
#27
rafalw
Junior Member
  • Total Posts : 44
  • Reward points : 0
  • Joined: 2007/06/23 02:24:42
  • Location: 0
  • Status: offline
RE: Firmware for Explorer 16, 18F4550 (U2) (unofficial) 2008/07/30 14:22:44 (permalink)
5 (2)
New Firmware and PC Application. Fixed a multiple PICkit 2 support critical issue that was causing simultaneous use of multiple PICkit 2 units to fail. I noticed in the bootloader are wrong settings in the configuration bits.

FirmwareV2.100.07b.for.Explorer16.zip
http://www.mediafire.com/download.php?lpquihgpj9e

FirmwareV2.100.21b.for.Explorer16 (JTAG PIC32 and SPI).zip
http://www.mediafire.com/download.php?l8vygjnevxm


PICkit2V2 (JTAG PIC32 and SPI) 2.160.01.zip
http://www.mediafire.com/?rltdimzyrbj
post edited by rafalw - 2008/08/07 09:30:35
#28
clemo
New Member
  • Total Posts : 1
  • Reward points : 0
  • Joined: 2008/08/01 13:58:09
  • Location: 0
  • Status: offline
RE: Firmware for Explorer 16, 18F4550 (U2) (unofficial) 2008/08/01 14:22:26 (permalink)
0
Thank you very much, this is great! I've been trying to do something useful with this f***ing Explorer board for months now because I don't have a programmer. I got myself a PICKIT2 clone but that didn't help me much. Today I managed to get the on-board PIC18 programmed using an EasyPIC4 board but it still didn't work properly and now finally I came across this thread and suddenly everything starts working. Thank you! Thank you! Now why couldn't Microchip get this working??? Or explain it properly?

But, can you please explain what all these files are for?

- Why would I need FirmwareV2.100.07.for.Explorer16.zip ? (OK I used this one)
- Why would I need FirmwareV2.100.21.for.Explorer16 (JTAG PIC32 and SPI).zip ? (more features, I guess, but why?)
- Why would I need PICkit2V2 (JTAG PIC32 and SPI) 2.160.01.zip ?
- What am I supposed to do with the hex files in the attachement ?

Sorry for being thick, but I just loaded PK2_Explorer16_V0210007.hex and that seems to work fine with the official PICKit 2.52.00 so what are all the other files for?

Anyway, thanks again!

P.S. I got this board for free without programmer (duh) but I didn't want to invest money in it since I had no use for it. I found it very frustrating to look at those silly demo texts and not being able to modify anything. I mean it's a dev board for crying out loud! Well, you can probably understand how I felt. But now I can ... right?
#29
xiaofan
Super Member
  • Total Posts : 6247
  • Reward points : 0
  • Joined: 2005/04/14 07:05:25
  • Location: Singapore
  • Status: offline
RE: Firmware for Explorer 16, 18F4550 (U2) (unofficial) 2008/08/01 18:13:52 (permalink)
0

ORIGINAL: clemo
But, can you please explain what all these files are for?

- Why would I need FirmwareV2.100.07.for.Explorer16.zip ? (OK I used this one)
- Why would I need FirmwareV2.100.21.for.Explorer16 (JTAG PIC32 and SPI).zip ? (more features, I guess, but why?)
- Why would I need PICkit2V2 (JTAG PIC32 and SPI) 2.160.01.zip ?
- What am I supposed to do with the hex files in the attachement ?


You should be able to get your PICKit 2 clone work if it is a proper clone.

PICkit2V2 is the host software modified from the original PICKit 2 host software. The 2nd firmware just has more features than the first one. Both will work.

The hex files are just for your convenience so that you can use a programmer to program the on-board 18LF4550. It combines the bootloader firmware hex and application firmware hex.

You will need a programmer (just once) after all since the on-board 18LF4550 does not have the proper bootloader firmware built-in (at least in my case, YMMV). If you have the PICKit 2 clone, you just need an adapter (or wost case, solder some wire). After this first time, you can use the host software to update firmware since the bootloader is already burned into the 18LF4550.

  USB_Links and libusb
#30
rafalw
Junior Member
  • Total Posts : 44
  • Reward points : 0
  • Joined: 2007/06/23 02:24:42
  • Location: 0
  • Status: offline
RE: Firmware for Explorer 16, 18F4550 (U2) (unofficial) 2008/08/07 09:36:56 (permalink)
0
I noticed in the bootloader are wrong settings in the configuration bits.
The settings in configuration bits should be like in the picture.
#31
jeff_m_lee
Super Member
  • Total Posts : 469
  • Reward points : 0
  • Joined: 2005/06/08 09:04:36
  • Status: offline
RE: Firmware for Explorer 16, 18F4550 (U2) (unofficial) 2008/10/05 14:51:45 (permalink)
0
I just received the Explorer16 board and have loaded the 18LF4550 with the pickit 2 code and checked that if programs the 24F pim.
 
My questions:-
Can this setup be used to program non JTAG pics via ICSP ?
If so what would the I/O pins be ? The same ones as JTAG i.e. TDI-> data in, TDO-> data out, TCK-> clock or what?
Does the code switch automatically from JTAG to ICSP ?
 
Thanks
#32
jeff_m_lee
Super Member
  • Total Posts : 469
  • Reward points : 0
  • Joined: 2005/06/08 09:04:36
  • Status: offline
RE: Firmware for Explorer 16, 18F4550 (U2) (unofficial) 2008/10/07 06:22:15 (permalink)
0
Can this setup be used to program non JTAG pics via ICSP ?
If so what would the I/O pins be ? The same ones as JTAG i.e. TDI-> data in, TDO-> data out, TCK-> clock or what?
Does the code switch automatically from JTAG to ICSP ?


I have put some wires on the explorer16 ICSP pins and programmed an external 18F67J50 PIC
I'm not convinced the JTAG is doing anything and:-

the latter is handling the JTAG (flash D8, D7, D4, D3) and ICSP (only flashes D8).


On my board only D7 flashes ?
#33
rafalw
Junior Member
  • Total Posts : 44
  • Reward points : 0
  • Joined: 2007/06/23 02:24:42
  • Location: 0
  • Status: offline
RE: Firmware for Explorer 16, 18F4550 (U2) (unofficial) 2008/10/07 09:18:52 (permalink)
0
JTAG is only for programing PIC32 (MIPS 32), not for PIC24, PIC33.

#34
pburgess
Starting Member
  • Total Posts : 37
  • Reward points : 0
  • Joined: 2007/04/17 22:06:44
  • Location: Fremont, CA
  • Status: offline
RE: Firmware for Explorer 16, 18F4550 (U2) (unofficial) 2008/10/22 02:25:17 (permalink)
0
Glad I spotted this thread...had just read the bit in the Explorer 16 guide about the onboard PIC18, got all excited and was about to order one. Boy, I'd've been PO'd about that!

So, a couple of questions...

1) With this firmware installed on the 18F4550 on the Explorer 16, will it then appear to any application as if it were a real PICkit 2, or must I use the modified host software? Asking because I might like to use the pk2cmd program on other operating systems...if it needs changes for this firmware, are they heinous, or pretty straightforward?

2) Any chance this could be adapted for use with the 18F4550 on the PIC32 Starter Kit?
#35
xiaofan
Super Member
  • Total Posts : 6247
  • Reward points : 0
  • Joined: 2005/04/14 07:05:25
  • Location: Singapore
  • Status: offline
RE: Firmware for Explorer 16, 18F4550 (U2) (unofficial) 2008/10/22 04:51:29 (permalink)
0
2) It is very difficult as Microchip does not open source their implementation. And PICkit 2 does not support PIC32 debugging as of now.

  USB_Links and libusb
#36
xiaofan
Super Member
  • Total Posts : 6247
  • Reward points : 0
  • Joined: 2005/04/14 07:05:25
  • Location: Singapore
  • Status: offline
RE: Firmware for Explorer 16, 18F4550 (U2) (unofficial) 2008/10/22 04:53:30 (permalink)
0
1) rafalw would be able to answer your question better. But as of now, pk2cmd does not support PIC32.

  USB_Links and libusb
#37
pburgess
Starting Member
  • Total Posts : 37
  • Reward points : 0
  • Joined: 2007/04/17 22:06:44
  • Location: Fremont, CA
  • Status: offline
RE: Firmware for Explorer 16, 18F4550 (U2) (unofficial) 2008/10/22 16:36:21 (permalink)
0
This is related to my "PIC32 development on alternative operating systems" project, which relies on a PICkit 2...and the limitations that imposes (basically, no debug support). Even if the PK2 could debug w/ the PIC32, there's no software on the host end to support it anyway, so it's doubly moot.

As strictly a programmer though, the two get along great...it's just that (if bypassing the Windows-native MPLAB IDE) there's $80 in parts required between the Starter Kit and the PICkit 2. If the Starter Kit's debugger could masquerade as a PICkit 2 the same way this Explorer 16 firmware does, that would significantly reduce the "getting started" cost ($50 vs. $167). Just an idea.
#38
rafalw
Junior Member
  • Total Posts : 44
  • Reward points : 0
  • Joined: 2007/06/23 02:24:42
  • Location: 0
  • Status: offline
RE: Firmware for Explorer 16, 18F4550 (U2) (unofficial) 2008/10/25 07:58:40 (permalink)
0
1)
The difference between Firmware V2.100.07(my) and  PICkit 2 Firmware V2.32(original) is:
- PWM 1 and 2 is off
- ADC is off, and return const 3.3 V
- HIGH/LOW voltage detect is off
- changed pins RA5 -> RA4(MCLR), RA3 -> RA2(PGC), RA2 -> RA3(PGD)
- and other minor changes related to the release of reset, signaling, etc.

The difference between Firmware V2.100.21(my) and  PICkit 2 Firmware V2.32(original) are as above and additionally:
- changed signaling, programing, reading...
- added JTAG pins RC2 -> (TMS), RC1 -> (TDO), RC0 -> (TDI), RB2 -> (TCK)
- added SPI Slave pins RC7 -> (SDI1), RB0 -> (SDO1), RB1 -> (SCK1), RA5 -> (SS1)
- added to the protocol few function for JTAG "JT4_TRY_SET_JTAG" code (0xB2) (see file PIC32MXFunctions.cs) and SPI "TRY_SET_SPI" code (0xB1), "COPY_RAM_DOWNLOAD" code (0xBA) (see file DialogSPI.cs), see also file pickit.c
- changed the function of handling PIC32
- changed priority interrupt on the high
- added interrupt service of SPI

2)
Probably not, because is no binary code and source code, the processor is code protected, and can not read the binary code from 18LF4550 on the PIC32 Starter Kit. Adapt the PK2 firmware for PIC32SK is not difficult, but after loading, lose your original firmware of PIC32SK.

Description of pins for PK2, E16 and PIC32SK:

///////////////////////////////////////////////////////////////////////////////////
18LF2550 [18LF4550] (48 MHz) PICKit2
///////////////////////////////////////////////////////////////////////////////////

[ICSP]
RA5 -> MCLR   -   PIC33/24/32 and othes
RA3 -> PGC
RA2 -> PGD

[JTAG]
-

[Other]
RA4 -> AUX

[Signaling]
RC0 -> Busy (Red)
RB4 -> Vcc Target P (Yellow)

[Input]
RB5 - > Button

[Analog]
RA0 -> Vpp Feedback
RA1 -> Vcc Target Feedback

[Power]
RB2 -> Vpp ON
RC1 -> Vpp Pump (PWM2)
RC2 -> Vcc Target Adjust (PWM1)
RB3 -> Vcc Target N
RB4 -> Vcc Target P

[SPI]
-

[I2C] (Master)
RC6 -> WP
RB0 -> SDA
RB1 -> SCL

[Parallel]
-

///////////////////////////////////////////////////////////////////////////////////
18LF4550 (48 MHz) Explorer 16
///////////////////////////////////////////////////////////////////////////////////

[ICSP]
RA4 -> MCLR  -   PIC33/24/32
RA2 -> PGC
RA3 -> PGD

[JTAG]
RC2 -> TMS
RC1 -> TDO
RC0 -> TDI
RB2 -> TCK

[Other]
-

[Signaling]
RC0 -> Busy D7 (Green)

[Input]
-

[Analog]
-

[Power]
-

[SPI] (Slave)
RC7 -> SDI1
RB0 -> SDO1
RB1 -> SCK1
RA5 -> SS1

[I2C]
-

[Parallel]
-

///////////////////////////////////////////////////////////////////////////////////
18LF4550 (48 MHz) PIC32 SarterKit
///////////////////////////////////////////////////////////////////////////////////

[ICSP]
RC0 -> MCLR   -   PIC32
RB1 -> PGC
RB0 -> PGD

[JTAG]
RA2 -> TMS
RA0 -> TDO
RA3 -> TDI
RA1 -> TCK

[Others]
RC1 -> FPGA_SLEEP (?)
RA5 -> FPGA_RST (?)

[Signaling]
RC2 -> Link Active D1 (Yellow)

[Input]
RA4 -> USB_DET

[Power]
RB5 -> Power ON

[SPI]
-
RB2 -> P18_SMSCL (?)
RC7 -> P18_SDO (?) = PGD
RB3 -> P18_SMSDA (?)

[I2C]
-

[Parallel]
RB4 -> SSP_CS
RD0 -> SSP_DAT0
RD1 -> SSP_DAT1
RD2 -> SSP_DAT2
RD3 -> SSP_DAT3
RD4 -> SSP_DAT4
RD5 -> SSP_DAT5
RD6 -> SSP_DAT6
RD7 -> SSP_DAT7
RE0 -> SSP_ASTROBE
RE1 -> SSP_DSTROBE
RE2 -> SSP_OE

I hope that there is no mistake.
post edited by rafalw - 2008/10/25 12:04:06
#39
Brem
Junior Member
  • Total Posts : 120
  • Reward points : 0
  • Joined: 2005/09/22 12:30:34
  • Location: Amsterdam
  • Status: offline
RE: Firmware for Explorer 16, 18F4550 (U2) (unofficial) 2008/10/29 10:20:55 (permalink)
0
 
Works!
 
Thanks man, really nice.
 
 
#40
Page: < 12345 > Showing page 2 of 5
Jump to:
© 2018 APG vNext Commercial Version 4.5