Usb Uart Bootloader For Msp430

Posted on  by admin
Usb Uart Bootloader For Msp430 9,6/10 3541 reviews
  1. Usb Uart Bootloader For Msp430 Windows 10
Bootloader

I feel quite excited, that means we will have similar functionality to Arduinos, with a simple serial bootloader!this is just a patch up use case for the bbusb bit-bang usb framework done by mathias and oPossum. It has it's potentials, but i won't compare it w/ arduinos, arduinos are a complete ecosystem (don't know if i use the word right) that includes libraries, h/w, tutorials, support channels, etc.the bootloader u saw comes from a reference project from v-usb.

Application
  • The MSP430-BSL Programmer ('BSL Rocket') is a bridge between the MSP430 BSL and a USB connection to a PC. The MSP430-BSL Rocket is a collaboration between Olimex LTD and Texas Instruments. The MSP430-BSL Programmer’s PCB and firmware are open source, and it supports UART, I2C and SPI communication.
  • JTAG (Joint Test Action Group) is a hardware interface and protocol used to perform boundary scanning and facilitate the in-circuit debugging of embedded hardware consisting of one or more microprocessors, microcontrollers, or other JTAG compatibl.
Usb

In some ways it's more useful than arduino as u don't need usb / uart circuit. But than the application also cannot communicate w/ PC via uart / acm.cdc etc.my intention is to try various use cases for bbusb and harden the framework for general use. I had tried mouse, keyboard and others had try joy-stick type setups. It is just nature for me to try a bootloader use case as they are also popular in v-usb usages. I am also very interested to get a bootloader working so that i can build 'everything on an usb key' type of projects.there are still works be done on this bootloader before i intend to check it in github. I will provide a brief description here for the time being.current features. Supports g2553, up to 12k applications (just for addressing convenience, bootloader actually taking only 2.4k).

The Ez430 has a TUSB3410 USB device interfacing an MSP430F1612 (or could be a F169, not extremely certain). I wanted to do this as well, but have never attempted to do it, as at the end I designed my own boards with the USB chip. If you still want to attempt this (which would be a truly cool USB to UART project) here are some.

Usb Uart Bootloader For Msp430 Windows 10

Linux and windows w/ cygwin tested. Transfer is reasonably reliable. (via some checking and avoiding a bug / deficiency in bbusb).

Port 1 interrupt does not work at the moment. (more on that). Support only no-crystal version of bbusb. Bootloader init checks for D- pull-up, if not present, runs application immediately. If D- pull-up present, wait 1 second for usb reset from host, if that does not happen, runs app.at the moment the bootloading is not done in a 'right' way, no bulk transfers and code hacked to avoid a bug / deficiency in bbusb.

I (and may be others) are trying to fix bbusb so that things can be done right.the other bigger issue is that unlike some other high-end chips, the g series does not support interrupt vector table re-location. So i am faced w/. This problem. The bootloader uses bbusb which in turn uses port1 interrupt to work the usb. This is the only interrupt the bootloader uses.

Upon firmware update request, the target application's interrupt vectors are 'mapped' w. The bootloader's.

So the final interrupt vector on the device is 'mostly' of the app's, except for RESET which points to the bootloader init and port1 which we need for usb.i currently do not have a very good way to handle the port1 interrupt. If u have any idea, please reply and see if we can make it work.