VSUB i didn't understand ?

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
majd-ghadab
Posts: 1
Joined: Tue Jul 02, 2013 11:34 am

VSUB i didn't understand ?

Post by majd-ghadab » Tue Jul 02, 2013 11:45 am

hello everyone
i didn't understand how VSUB works does it puts the code in the bootloader section in microcontroller ! (when i burn the hex code form this site)
then how i can program my micro controller next time (witch software) to use to not remove the bootloader code when i program my main code "i am using bascom avr"
and what is the hex file name for ATMEGA32A i didn't see the hex code for it or any other microcontroller in the downloaded vusb-20121206

ulao
Rank 4
Rank 4
Posts: 481
Joined: Mon Aug 25, 2008 8:45 pm

Re: VSUB i didn't understand ?

Post by ulao » Tue Jul 02, 2013 2:01 pm

Wow, you my friend would benefit from some reading up. Ok the generally Idea is this. You flash the BL code in hi-memory then using the preferred condition you can enter programming mode. At that point you can flash your main,hex. It puts this after the BT length in memory. Then you release the condition and your done.

condition: In the boot loader code near the end you will see a condition. Something like shorting a pin on portb to ground. You satisfy that condition when the chip is running the boot loader to enter programming mode. You will see a "new hardware found" pop up.

FYI: the boot loader needs its own pid! You can use the free one if you like but not for both the loader and the project.

vouvoume

Re: VSUB i didn't understand ?

Post by vouvoume » Wed Jul 03, 2013 1:09 am

VUSB != bootloader !!!!!

V-USB is just a firmware-library to implement a low-speed USB device (exchange data with host computer via USB) on AVR controllers without hardware usb support.
A bootloader may utilze this as a bitpipe to get data to program - but it is not limited to this application.

You can do pretty much any data exchange - therefore on host-side you can use libusb.
An example with GUI can be found here: http://matrixstorm.com/avr/tinyusbboard/#examples

Best regards,

Post Reply