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

Page: < 12345 > Showing page 3 of 5 - Powered by APG vNext Trial
Author
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/30 22:03:29 (permalink)
0
Thank you for the in-depth reply, rafalw. Very insightful! Since the PIC32 Starter Kit uses the same 18LF4550, it was admittedly just hopeful speculation on my part that they might've reused a common reference design for the programmer/debugger part of the board. Ah well, no worries.

Got your firmware working, and must say that it's fantastic. Thank you for making this happen! It's a shame Microchip didn't finish this feature themselves as documented.

Did run into some problems along the way, due entirely to my naivete regarding the Explorer 16 board. First, learning that J1 (the PICkit 2 header) is labeled backward (mentioned elsewhere on the forum). Second, that the Exp16 board must be powered for the "PICkit 2 Lite" to show up on the USB bus (unlike a normal PK2 that shows up on USB power alone). Probably old hat for most folks, but just mentioning it here in case other newbies get similarly stumped.
#41
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/30 23:02:30 (permalink)
0
Thanks for the sharing. Actually I realized the same thing when I started with Explorer 16 boards. 

  USB_Links and libusb
#42
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/31 07:24:38 (permalink)
0
The Explorer 16 can easily make to power via USB, just add one or two Schottky diode, see photos.
I added one 1N5819, it works perfectly. 1N5817 was better, but I do not have.

Problems:
LM1117 3v3 works on the edge specification, but the voltage is stable.
USB port must provide a current of more than 200 mA, but all new computers to have,
tested chipsets Intel, NEC, VIA, AMD, NoName, the problems are with the old VIA and AMD.

Attached Image(s)

#43
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/11/03 18:35:03 (permalink)
0
Just added the diodes. Works great! Between that and the firmware, it's so nice to be able to program this thing without a heap of cords all over the desk. Thank you for the hot tip!
#44
raidfibre
New Member
  • Total Posts : 10
  • Reward points : 0
  • Joined: 2008/01/10 17:09:53
  • Location: 0
  • Status: offline
RE: Firmware for Explorer 16, 18F4550 (U2) (unofficial) 2008/11/04 09:06:34 (permalink)
0
1. Downloaded: FirmwareV2.100.21b.for.Explorer16 (JTAG PIC32 and SPI).zip
2. Switched J7 to F4550
3. Loaded 18LF4550 with: PK2_Explorer16_V0210021.hex using ICD2, erased, programmed, verified
4. Disconnected ICD2
5. Removed power
6. Switch J7 to PIC24
7. Reconnected power
8. Closed MPLAB
9. Connected USB cable
10. Ran PICkit2V2.exe
"PICkit 2 not found. Check USB connections ..."

Any ideas?

Thanks.
post edited by raidfibre - 2008/11/04 09:07:53
#45
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/11/04 12:51:31 (permalink)
0
Use the firmware with BL (BootLoader).
Better to use version PK2_Explorer16_V0210022-BL.hex.
#46
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/11/04 13:20:55 (permalink)
0
Say Rafal,

I wanted to ask if you might be okay with my hosting your firmware files and directions for the diode modifications on my personal (non-commercial) web site; I would of course give proper credit and attribution for the work, however you would like that stated.

If not, no worries then, I can always direct people here. Just thought it might be easier than having folks rummage through all the messages.

Either way, thank you for all your help with this! Between you and Xiaofan, it's like all the knowledge in the world is here. :)
#47
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/11/04 13:33:29 (permalink)
0
Yes, of course.
#48
raidfibre
New Member
  • Total Posts : 10
  • Reward points : 0
  • Joined: 2008/01/10 17:09:53
  • Location: 0
  • Status: offline
RE: Firmware for Explorer 16, 18F4550 (U2) (unofficial) 2008/11/04 14:28:40 (permalink)
0
Still can't get it to work - nothing happens when I plug in the USB cable..
#49
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/11/04 15:19:11 (permalink)
0
1) Change the USB cable.
2) Try the file "PICkit2Bootloader.hex".
3) Check the configuration bits, post # 31.
4) Upload any program to test and debug on the 18LF4550.
5) Check quartz (Y1), soldering.
6) The original E16 is not powered by USB, connect the power supply to J12.
post edited by rafalw - 2008/11/04 15:39:07
#50
RISC
Super Member
  • Total Posts : 5127
  • Reward points : 0
  • Status: offline
RE: Firmware for Explorer 16, 18F4550 (U2) (unofficial) 2008/11/22 10:27:51 (permalink)
0
Hi,

Thanks Rafalw. It works real good ;=)

I am even able to use MPLAB in Pickit2 debugger mode with the onboard PIC18LF4550 ;=)

#51
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/11/23 04:19:26 (permalink)
0
ORIGINAL: rafalw

A revised version of example SPI for PIC24 and dsPIC33.

Hi,
 
I have tried this example but don't quite understand where the transmitted data is supposed to end up. I was hoping it would appear in the PICkit UART Tool, but it doesn't. Am I making wrong assumptions or did I make a mistake somewhere?
 
Thanks.
#52
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/11/23 15:21:00 (permalink)
0
Hi,

The data are transmitted to 18LF4550, it receives the PC Application.
No the Pickit UART Tool, but the Pickit SPI Tool.
The Pickit SPI Tool is in the PC Application PICkit2V2 (JTAG PIC32 and SPI) 2.160.01.
You must have Firmware version 2.100.22.for.Explorer16 (JTAG PIC32 and SPI) on the board E16.

1) Turn on SPI, PC Applicton -> Tools -> SPI Tool -> Enable SPI.
2) Run the program from post # 19.
3) Recive data from memory 18LF4550 to PC Application, Tools -> SPI Tool -> Recive.
post edited by rafalw - 2008/11/23 15:26:44
#53
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/11/24 08:00:41 (permalink)
0
Ok, thanks, I did not realize I needed the modified PC application. I receive data now, but either leftmost or rightmost bit gets lost, depending on the selected SPI mode of the PIC24.
 
When I leave the spi mode 00 (SPI_CONF==0x0131 in main.c of example), the received bytes are shifted left 1 bit. The Pickit firmware on the 4550 does not recognize the READ or WRITE operations, so no data is received at all.
 
With spi mode 11 (SPI_CONF==0x0071), I do receive data but the MSB gets lost. The maximum value I receive is 0x7F, and only half the buffer is used. I've tried slowing things down by increasing the spi prescalers to max, and increasing the delay in writeSPI1(),  but it didn't help.
 
Do you have any ideas?
 
Oh. and I'm testing it with the 24FJ128GA010 PIM.
 
Thanks.
 
#54
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/11/24 12:15:52 (permalink)
0
I'm not SPI expert.

I have PIC24FJ128GA010 revision = Rev 0x3002 and PIC18F4550 revision = a3.

Try this:
1) Turn on SPI, PC Applicton -> Tools -> SPI Tool -> Enable SPI.
2) Set MCLR to a low level.
3) Load the program to memory the PIC24 from post # 19 or hex file from attachment (SPI_CONF 0x0131).
4) Set MCLR to a high level.
5) Recive data from memory 18LF4550 to PC Application, Tools -> SPI Tool -> Recive.

This hex file is working for me.
#55
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/11/24 12:37:00 (permalink)
0
Nop, I receive nothing, and led D10 (LATA7) goes off.
 
But never mind, i just found out it works ok with  the dsPIC33! , so I will just play with that one for a while, and see again later.
 
Thanks again.
 
 
#56
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/11/24 12:53:52 (permalink)
0
What are the revisions of processors?
It may be a hardware malfunction.

#57
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/11/24 13:31:58 (permalink)
0
I have 0x3007 for the PIC24 and 0x6 for the 4550.
 
 
 
#58
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/11/24 15:14:06 (permalink)
0
See the erratum for the processors.
See thread started by Neiwiertz http://forum.microchip.com/tm.aspx?m=339163 posts #17, #12, #11.
post edited by rafalw - 2008/11/26 14:24:12
#59
easy1234
New Member
  • Total Posts : 17
  • Reward points : 0
  • Joined: 2008/12/20 08:40:56
  • Location: 0
  • Status: offline
RE: Firmware for Explorer 16, 18F4550 (U2) (unofficial) 2008/12/20 08:45:09 (permalink)
0
Hello,

is it possible to use this firmware with the Explorer 16 Board with 44-pin and 100-pin version?
I want to buy one of the boards and do not know exactly which i should take (DM240002 or DM240001).

Thank you
post edited by easy1234 - 2008/12/20 08:46:41
#60
Page: < 12345 > Showing page 3 of 5 - Powered by APG vNext Trial
Jump to:
© 2018 APG vNext Trial Version 4.5