gnupic: Re: [gnupic] MCHPFSUSB AN950, AN956, ...
Subject:
Re: [gnupic] MCHPFSUSB AN950, AN956, ...
From:
"rkuhnen (sent by Nabble.com)" ####@####.####
Date:
3 Feb 2006 10:33:47 +0000
Message-Id: <2737448.post@talk.nabble.com>
Thanks for the hint,
I tried the pickit code.
I dont have a bootloader, so i used the standard linker skript of gputils.
The changes in code I did are:
- commented out the vpp and stdp stuff to have the "naked" usb
- added "while(UCONbits.SE0);" to usb_init()
- added ";" after the Nop() commands
What happened:
the usb_gettype(0) in comms.c never returns ptSetup
... don't know why...
Hardware:
pic18f2550 with 20MHz crystal, bus powered
portA as input, portB as led outputs (for tracing code)
Tried a bootloader I got as .hex file, disassembled it , removed everything but the USB stuff for better understanding, assembled again with my config bits and it was recognized by the computer... seems the hardware works.
The code I used can be seen on
http://cluster.physik.uni-freiburg.de/~kuhnen/pic/
Regards
Raphael
--
View this message in context: http://www.nabble.com/Re%3A-MCHPFSUSB-AN950%2C-AN956%2C-...-t503712.html#a2737448
Sent from the MicroControllers - GNUPIC forum at Nabble.com.