Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

Extremely new noob. 90usb162 question?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Extremely new noob. 90usb162 question?

by mosdbyus on Mon Aug 15, 2011 4:03 pm

I want to get started with micro controllers. I have a PSJailbreak with the amtel 90usb162 on it. I have read in a couple of places that this can be re-programed with an ISP. I was wondering if the USBtinyISP AVR Programmer Kit (USB SpokePOV Dongle) would be what i need to program that and if I would still need it for programming this same chip after the bootloader is updated?

I chose this forum because it seems friendly and resourceful. Plus I can purchase stuff for later projects. Not trying to hijack.
mosdbyus
 
Posts: 5
Joined: Mon Aug 15, 2011 3:52 pm

Re: Extremely new noob. 90usb162 question?

by scott_42 on Mon Aug 15, 2011 8:03 pm

I think you use Atmel Flip to program that chip while it is plugged into your USB port.

scott_42
 
Posts: 124
Joined: Mon May 30, 2011 10:46 am
Location: Santa Clara, CA

Re: Extremely new noob. 90usb162 question?

by mosdbyus on Mon Aug 15, 2011 8:13 pm

scott-42 wrote:I think you use Atmel Flip to program that chip while it is plugged into your USB port.

Thanks ill give it a go. I think i read something about lock bits. What are those? If you dont mind me asking. A good point of lititure would work too. I have no idea what alot of this are that are refered to in the datasheet.
mosdbyus
 
Posts: 5
Joined: Mon Aug 15, 2011 3:52 pm

Re: Extremely new noob. 90usb162 question?

by mosdbyus on Tue Aug 16, 2011 8:09 am

I tried using atmel flip. It gave me an error about not having a dll file and something about dfu. If I'm not mistaken that has to due with the bootloader.. Right?
mosdbyus
 
Posts: 5
Joined: Mon Aug 15, 2011 3:52 pm

Re: Extremely new noob. 90usb162 question?

by scott_42 on Tue Aug 16, 2011 9:58 am

You might want to try a Google search for your problem as this is not really a game board.

Just doing a simple search came up with these instructions which might work for you. http://www.r4king.com/ps-jailbreak-modchip-for-ps3.html

scott_42
 
Posts: 124
Joined: Mon May 30, 2011 10:46 am
Location: Santa Clara, CA

Re: Extremely new noob. 90usb162 question?

by mosdbyus on Tue Aug 16, 2011 10:08 am

scott-42 wrote:You might want to try a Google search for your problem as this is not really a game board.

Just doing a simple search came up with these instructions which might work for you. http://www.r4king.com/ps-jailbreak-modchip-for-ps3.html

Thanks. I am looking to repurpose this usb dongle for avr projects and learning. I think that I understand that you use an ISP to program this with the dfu bootloader so that it can be reprogrammed via usb from that point on.i have no desire to use this chip to hack the ps3.
mosdbyus
 
Posts: 5
Joined: Mon Aug 15, 2011 3:52 pm

Re: Extremely new noob. 90usb162 question?

by scott_42 on Tue Aug 16, 2011 10:38 am

mosdbyus wrote:I am looking to repurpose this usb dongle for avr projects and learning. I think that I understand that you use an ISP to program this with the dfu bootloader so that it can be reprogrammed via usb from that point on.


If the device is working and recognized by Flip it probably already has a good bootloader on it. Flip looks like it will display the current bootloader version as well so you can see if you have the latest version (1.0.5). If it already has a good bootloader you can save yourself some hassle by just using it.

If you want to program the bootloader you will need an AVR ISP programmer and some way to hook it up to the chip. I have no idea what the internals of that usb key look like, but you will need an ISP header to plug into. You will probably have to solder on some wires to connect to the chip and you will need a way to power it while programming.
You can download the standard bootloader from Atmel here: http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3886

scott_42
 
Posts: 124
Joined: Mon May 30, 2011 10:46 am
Location: Santa Clara, CA

Re: Extremely new noob. 90usb162 question?

by mosdbyus on Tue Aug 16, 2011 10:59 am

Thank you. I know where to solder the haeder for the ISP. There is just one thing I'm still unclear on.... what are lock bits? I know through a tutorial for upgrading this chip that i have to do something with the lock bits.
mosdbyus
 
Posts: 5
Joined: Mon Aug 15, 2011 3:52 pm

Re: Extremely new noob. 90usb162 question?

by scott_42 on Tue Aug 16, 2011 11:35 am

mosdbyus wrote:There is just one thing I'm still unclear on.... what are lock bits? I know through a tutorial for upgrading this chip that i have to do something with the lock bits.


From the data sheet which has all the info you are looking for:
23.4 Boot Loader Lock Bits
If no Boot Loader capability is needed, the entire Flash is available for application code. The Boot Loader has two separate sets of Boot Lock bits which can be set independently. This gives the user a unique flexibility to select different levels of protection.
The user can select:
    • To protect the entire Flash from a software update by the MCU.
    • To protect only the Boot Loader Flash section from a software update by the MCU.
    • To protect only the Application Flash section from a software update by the MCU.
    • Allow software update in the entire Flash.
See Table 23-2 and Table 23-3 for further details. The Boot Lock bits can be set in software and in Serial or Parallel Programming mode, but they can be cleared by a Chip Erase command only. The general Write Lock (Lock Bit mode 2) does not control the programming of the Flash memory by SPM instruction. Similarly, the general Read/Write Lock (Lock Bit mode 1) does not control reading nor writing by (E)LPM/SPM, if it is attempted.


This is the data sheet: http://www.atmel.com/dyn/resources/prod_documents/doc7707.pdf

Basically the lock bits stop you from programming over part of the chip. Once you get the bootloader setup the way you want, you can set the lock bits to prevent the bootloader from being accidentally written over while programming your app. It wont save it from a full chip erase though. There are other lock bits on that chip that affect other areas, again refer to the data sheet to read all about them.

scott_42
 
Posts: 124
Joined: Mon May 30, 2011 10:46 am
Location: Santa Clara, CA

Please be positive and constructive with your questions and comments.