Thursday, April 30, 2009

Improving the MSP430 FET

by Travis Goodspeed <travis at radiantmachines.com>

GOODFET10

To celebrate 4/30 day, I am happy to announce my own variant of the MSP430 FET debugger. My variant is compatible with a patched version of the original firmware, but my goal is to eventually have open firmware as well.

For an overview of the internal functioning of the original FET, see my three part series on Repurposing the EZ430, or torrent my 25C3 lecture on the same topic.

For the purposes of this discussion, a FET is any Flash Emulation Tool containing an MSP430F1612, including the FET UIF and EZ430 debuggers. The parallel-port FET operates differently and is outside the bounds of this discussion.

To follow along with this discussion, be sure to print the FET schematics from the relevant TI application notes. The FET UIF's schematic can be found on page 64 of SLAU138K. Version 1.0 of the EZ430U can found on page 12 of SLAU176B, while Version 2.0 can be found on page 13 of SLAU227B. As I've likely made a few mistakes in the write-up, please kindly inform me of them.

FT232 for TUSB3410


All present FETs use the TUSB3410 usb to serial converter. Support for this chip is a pain in Linux, with kernel module requirements varying often. It's so bad that I keep a script in my private svn repository for fixing support as quickly as possible, and despite the recent appearance of open FET clients, using them on an obscure operating system is impossible without kernel support.

Internally, the '3410 is an 8051 microcontroller with a USB 2.0 Full Speed (12Mb/s) peripheral and a single UART. The traditional FET and most other devices use this chip with its default usb/serial firmware, but the second-generation EZ430 firmware uses various tricks to make a second, bit-banged, asynchronous serial port to the debugging target. On Windows, this leads to reliability issues, and on Linux, this leads to utter incompatibility. The '3410 also requires several external components, complicated the design and making hand soldering less feasible.

The FT232R from FTDI is a perfect replacement. It is available in an SSOP28 package for easy soldering, every operating system on Earth supports it, and its only external components are decoupling capacitors.

Bootstrap Loader


The MSP430 Bootstrap Loader (BSL) and I have had some good times together. While I still consider it to be a security risk for locked devices, it's damned handy for an unlocked board such as the FET. Likely for historical reasons, the BSL runs on P1.1 and P2.2, rather than the hardware UART pins. It also requires a special reset sequence, in which the RTS and DTS serial lines are connected to the RST and TCK pins.

Early revisions of the FET did not connect the BSL I/O pins, making the software bootloader that I describe in my articles on the EZ430 necessary. (The FET and first-generation EZ430 share a flash bootloader, while the second-generation EZ430 has a different, larger bootloader.) While later hardware revisions of the UIF connect the BSL pins, I've not seen the masked-ROM BSL used in practice. My design supports the BSL, preventing bricking and allowing for TI's firmware and open firmware to be exchanged at a whim.

To program the board by BSL, use tos-bsl with the --invert-reset and --invert-test switches.

MSP430F1612/1611


The MSP430F1612 was chosen for compatibility with the original FET. It has 55K of flash and 5K of RAM. Alternately, the MSP430F1611 with an identical footprint might be used for applications which require additional RAM but are willing to use less flash, at the expense of compatibility with the original chip. (MSP430 firmware grows upward from the bottom of flash memory, making it easy to port code from a device with less flash to a device with more, but difficult to port in the opposite direction.)

All custom firmware should be compiled to run in the intersection of memory of the two chips. In that way, most applications will run on either chip, with only those that need more stack depth requiring the 1611 and only those requiring more flash memory requiring the 1612.

Crystals


The MSP430 supports both high-speed and low-speed crystals, with the low-speed crystal's frequency being multiplied. Stable timing is not necessary for synchronous protocols such as JTAG or Spy-Bi-Wire, but only for asynchronous serial communication. While the EZ430 and FET firmwares both demand high-frequency crystals for absurdly high serial baud rates, I expect to reduce the data rate and source an external low-frequency crystal to reduce the parts count.

It is also possible to use bit-banged serial, or to call bit-banging serial routines from the bootloader (BSL) ROM. The BSL's code is particularly elegant because it resyncs the timing with the 0x80 SYN byte. This byte in 8/E/1 (8 bits, Event parity, 1 stop bit) appears as 8 marks surrounded by spaces, so rather than being read it is measured. The measured width is right shifted three times to get a bit's width, then once more for a half-bit. This measurement is used to bit-bang one transaction, then a new measurement is made for the next transaction. In this manner, even without a crystal, the BSL is able to perform fast, reliable serial communication in spite of clock drift. By calling this code--which is already resident in each chip--crystal-free operation is possible.

A high-frequency crystal is required to run unpatched variants of TI's firmware, but I've decided against including one in the design at this stage. Perhaps this will change in the future.

I/O Pins


The first four pins of P5 are used as JTAG and SBW I/O. Starting with P5.0 and continuing to P5.3, they are TMS, TDI, TDO, and TCK. I've chosen to omit the FET UIF's optical isolation in favor of the EZ430's simpler protection, which consists of 47K pull up resistors and 100R current-limiting resistors. Unlike the EZ430, which only support spy-bi-wire, my design has a full 14-pin JTAG connector.

Firmware, Old


EZ430U Memory Map
The above image is the firmware of an EZ430U FET, generated by msp430static. 0x0000 is the bottom left corner, 0xFF00 the top left, and 0xFFFF the top right. Blue represents the target of an immediate pointer, black is empty flash memory, red is potentially executable code, and grey is information which is certainly not executable.

The image is composed of two parts. The upper red region is a bootloader which is used to reflash the chip, while the lower region does the actual work. As compilers ship with firmware upgrades, it is not necessary to distribute any copyrighted code. A replacement bootloader could accept a firmware upgrade, then patch it, while retaining software compatibility. More information on the bootloader can be found in Part 3 of my series on repurposing the TI EZ430U.

Firmware, New


Ideally, replacement firmware will be written for various applications, beyond MSP430 debugging. The same hardware could program competing microcontrollers, serial eeproms, FPGAs, and all sort of other things in the same way that the Hackaday Bus Pirate does.

So far as replacement firmware for debugging MSP430 chips goes, documentation is slim. Enough of the JTAG protocol has been documented to implement programming, but the setting of hardware breakpoints and other advanced features are not described by any public documentation. Custom firmware is not yet functional, but that ought to change in the near future.

Second Serial


The red board variants of the EZ430, those shipping with the RF kits, use drastically different firmware to facilitate a second serial port that connects to the target board. This breaks Linux compatibility, requiring firmware of both the MSP430 and the CAT24 EEPROM of the board to be downgraded.

To support low voltage serial communications, I brought out the second UART of the board's MSP430 to test points. This might also be used for timing attacks or similar things. Series and pull-up resistors would be nice on these lines, but they were omitted in the first design.

Availability


I've ordered a panel of the first revision, GOODFET10, and I'll send a board to anyone who is willing to assemble the device and help construct its firmware. Schematics, gerbers, and construction details have been posted to http://goodfet.sourceforge.net/, and "hello world" firmware has already been committed to the subversion repository.

273 comments:

«Oldest   ‹Older   201 – 273 of 273
Finn Foley said...

Thankful for the exceptional expertise offered by the authors on this platform. Santa Claus Vest

Finn Foley said...

Appreciated for the outstanding level of authenticity in content creation. Santa Claus Vest

Finn Foley said...

The content covers a wide range of relevant topics, catering to different interests. Santa Claus Vest

Finn Foley said...

The website offers practical tips and advice that can be implemented immediately. Santa Claus Vest

Finn Foley said...

The website offers a variety of multimedia content, including videos, infographics, and podcasts. Santa Claus Vest

Finn Foley said...

The website's content covers emerging trends and topics in the industry. Santa Claus Vest

Finn Foley said...

Your explanation has clarified any confusion. Christmas Sweater Vest

Finn Foley said...

Thank you for sharing more insights on your comment. Christmas Sweater Vest

koni said...

Embrace change as a means to foster resilience and adaptability.Christmas Chronicles vest

Finn Foley said...

Thank you for elaborating on your standpoint. Christmas Sweater Vest

Finn Foley said...

Your explanation has clarified any doubts. Christmas Sweater Vest

Finn Foley said...

Your explanation has shed light on the issue at hand. Christmas Sweater Vest

Finn Foley said...

Thank you for elaborating on your initial comment. Christmas Sweater Vest

jamesmith said...

I appreciate the depth of research evident in your articles, ensuring readers receive accurate and up-to-date information.
mens christmas vest

jamesmith said...

The articles on your website serve as a platform for diverse voices, promoting inclusivity and amplifying underrepresented perspectives.
mens christmas vest

Finn Foley said...

Your explanation has provided valuable perspectives. Christmas Vest Womens

Finn Foley said...

Thank you for offering more details on your comment. Christmas Vest Womens

Finn Foley said...

Valuable insights contribute to personal growth and broaden our understanding. Christmas Vest Womens

koni said...

Recognize change as a force that challenges you to step outside your comfort zone.Christmas Chronicles vest

koni said...

View change as a gateway to expanding your horizons and broadening your perspective.Christmas Chronicles vest

koni said...

See change as a catalyst for personal success and achievement.Christmas Chronicles vest

koni said...

View change as an opportunity to redefine your definition of success and happiness.Christmas Chronicles vest

koni said...

See change as a catalyst for personal growth and self-mastery.Christmas Chronicles vest

shanjanaarora said...

The mind-blowing fact is that there are different types of massage therapy. Moreover, all of them aim at specific parts of your b to b massage centre near me body and provoke versatile feelings.

chrispine said...

The leather jacket worn by Jean-Luc Picard is not just a fashion statement; it also symbolizes his resilient and adventurous spirit. Star Trek Picard Season 3 Leather Jacket

Jennifer Walsh said...

Your blog on enhancing the MSP430 FET is a brilliant technical journey. Just as we seek to understand "How Old Is Dolores in Encanto," your post delves into the details, unraveling improvements. Thanks for sharing this insightful guide that empowers us to optimize our tech experiences!

izspa.net said...

Self-Care Practices: Guiding individuals female to male spa near me in incorporating self-massage and relaxation techniques into their daily routines.

albaflores said...

These Top Smartphone Accessories at Wholesale Rate meet a variety of client requirements, ranging from device safety to simple charging options and audio improvement. Furthermore, phone holders, grips, and camera accessories are in great demand among consumers looking for more varied and better smartphone use.

Jennifer Walsh said...

The enhancements in the MSP430 FET are remarkable, and considering its impact, one might wonder, "spend bill gates money' resources to further accelerate this progress?" The possibilities are intriguing!

Amenda Lucifer said...

Extraordinary offer! boost mobile phone number is a unique advantage! 📱✨ It resembles giving your telephone a turbocharge. With quicker handling, smoother performing various tasks, and faster application stacking, it's a definitive redesign for your gadget.

albaflores said...

Mobile Accessories Wholesale Market in Pakistan is a growing sector, with numerous significant centres catering to the need for a diverse variety of mobile device add-ons. Furthermore, internet portals such as Daraz.pk and Alibaba.com have grown in popularity, giving a channel for bulk sales of mobile accessories. When negotiating the mobile accessories wholesale market in Pakistan, quality assurance, negotiation skills, compliance with local rules, and adequate paperwork are all critical factors.

lishasingh said...

Massage is an important modality for full service massage in bangalore any individual taking part in sport whether it is competitive or recreational

lishasingh said...

Massage is also used readily to reduce the full service massage in bangalore risk of injury because tight muscles lacking flexibility and elasticity can be susceptible to tears during the demands of sport.

albaflores said...

An Online Wholesale Market is a virtual marketplace where firms purchase and sell things in bulk. These digital platforms work as mediators, linking wholesalers, producers, and distributors with retailers and other corporate organisations looking to acquire big amounts of commodities. Online wholesale marketplaces provide a vast range of items ranging from electronics and clothes to food and industrial supplies, serving to a wide range of businesses and sectors.

rennasweety said...

Lymph is a protein-rich fluid that moves throughout your body in lymph vessels. It scoops up things like bacteria, viruses, and waste sensual massage in hyderabad and carries them to your lymph nodes.

rennasweety said...

good and the sensitive sensual massage in hyderabad

albaflores said...

Now that you've had a taste of everything Bangkok has to offer, it's time to plan your budget-friendly journey. Uselect Flights has the Cheapest Flights from UK to Bangkok. We specialise in luxury travel packages and provide the lowest flights from the UK to this appealing destination.

albaflores said...

This game-changing method not only provides access to a pool of high-quality specialists, but it also delivers several benefits that can greatly increase the profitability of your organisation. In today's fast-paced business environment, any company's primary priority is to maximise revenues while retaining financial agility. Building Offshore Accounting teams, which is available with Servtec, is one creative approach that has gained significant appeal in recent years.

shailenewoodley said...

Defend Against the Cold with the England Lionesses Puffer Jacket

Body to Body Massage in Chennai said...

Great massage centres near me

Amelia said...

The advanced features of Oscar SRB Integrated POS System can help you monitor all your store branches without any difficulty. You can always check your stock levels in each outlet so you can never run out of any product anywhere.

albaflores said...

Cheapest Flights from the UK. Uselect Flights specialises in providing the most affordable flights from the United Kingdom. No need to spend hours searching the internet for offers; we bring them to you. With just a few clicks, you'll be on your way to seeing the marvels of Abu Dhabi without breaking the bank.

nancysweety said...

Hold. Repeat on the other side. You can modify this lingam massage in pune pose by dropping your bottom knee to the floor for extra support.

nancysweety said...

Keep your hands directly under your shoulders lingam massage in pune and your neck straight. Hold your abdomen

albaflores said...

You may Pay Electricity Bills in Pakistan using the Udhaar simple khata. It allows you to pick different suppliers based on your clients' demands and pay their due power payments with a few clicks. The Udhaar app allows you to pay GEPCO, HESCO, K Electric, LESCO, MEPCO, PESCO, and SEPCO power bills and earn Rs. 4 commission on each payment.

albaflores said...

Their capacity to turn ideas into reality is unrivalled. Businesses may leverage the potential of global talent by embracing the notion of Remote Teams and virtual coworkers, leading to innovation and success. Servtec serves as a catalyst in this revolutionary path, equipping organisations with the skills they need to flourish in today's competitive digital market. Servtec and its team of great remote web developers can help you embrace the future of work, empower your projects, and uncover the actual potential of your organisation. If you want to take your IT business to the next level, go visit www.servtec.co.

Henry Rosie said...

Dissertation Writing Services UK is a unique platform where a number of subjects specialists are available all the time to help students in case of any kind of issues. If you have any kind of issue in your study then feel free to get professional help.

Fat N Fix said...

calories in fried egg white
lower chest workout with dumbbells

albaflores said...

Failures in Offshore Outsourcing are frequently caused by a breakdown in communication. Close the physical gap by maintaining regular, open channels of contact with your international staff. Keep them updated, answer problems swiftly, and celebrate successes with them as you would your in-house workers. With Servtec on your side, you'll have access to smooth communication channels as well as vital help if difficulties arise.

albaflores said...

Concerns concerning data security are eliminated once the Oscar POS Machine is installed in your shop. Within the safe boundaries of the Oscar dashboard, your whole spectrum of company data, including inventory listings, sales records, and other private information, is well-protected. Furthermore, this programme allows you to restrict access to the Oscar dashboard according on employee responsibilities, guaranteeing that top-level management has access to sales data while restricting other employees to inventory availability.

BRANDTPLASTERING said...

dust control Units in Edmonton
are pivotal in mitigating airborne particles, significantly enhancing air quality within industrial sectors. These units serve as essential tools, promoting safer working conditions and contributing to a cleaner environment in Edmonton. Their role in controlling dust and pollutants is indispensable, fostering a healthier and more sustainable atmosphere in the city's industrial landscape.

ava fin said...

Enhancements to the MSP430 FET represent a significant step forward in microcontroller technology. csl plasma coupons 2023 The improvements not only showcase a commitment to pushing boundaries but also underscore the dedication to providing developers with cutting-edge tools. The refined MSP430 FET brings a host of benefits, including enhanced performance, increased efficiency, and a more streamlined development process.

annarhodes said...

Certainly! However, I don't have access to real-time data, and I don't have specific information about Travis Goodspeed's blog. If you provide me with the context or a specific topic from his blog, I can help you generate a comment. Alternatively,franklin graham home value you can provide a general topic or ask for a comment on a specific type of post, and I can create a comment based on that information.

albaflores said...

https://zeilgroup.com/ distinguishes out as Dubai's go-to secondhand store. Zeil Ukay Ukay offers a large assortment of sports shoes at affordable costs, with a varied choice of both local and international brands. Zeil Ukay Ukay offers the right pair for your summer escapades, whether you want to run, walk, or go to the gym. Zeil Ukay Ukay in Dubai has a wide range of shoe brands.

albaflores said...

The Oscar SRB integrated POS system is totally safe to use. Using the cloud-based Oscar POS software, you can obtain complete information about your coffee shop at any time and from any location. In Pakistan, the basic Oscar POS software model is completely free. Furthermore, you may go to the Oscar POS website and request a trial or take a free tour to see the most popular features.

Unknown said...

My Ordinary Sheet is a brand that brilliant lights on giving normal and sustainable sheet material choices. Their things are wanted to offer solace and quality while besides checking the planet. My Typical Sheet for any sensible coupon codes or endpoints.

albaflores said...

Staff Augmentation is not a novel concept, but its popularity has grown in recent years due to its adaptability and low cost. Businesses must adapt swiftly to shifting market needs and technology improvements in the competitive landscape of 2023. Staff augmentation enables businesses to expand their personnel up or down based on project needs, resulting in optimal resource utilisation. This mobility is especially beneficial in businesses where project scopes and timetables are continually changing.

Lilly Anna said...

Improving the MSP430 FET (Flash Emulation Tool) couponcartdaily is a commendable endeavor that holds great promise for developers and enthusiasts working with MSP430 microcontrollers.

Jewel Galore said...

Jewelgalore presents a mesmerizing collection of Kundan jewellery . Explore our range of elegantly crafted pieces, each showcasing the timeless beauty and intricate craftsmanship of this traditional art.

OSH UNIVERSITY said...

Elevate your medical career at Osh University, consistently ranked among the top universities in the world for mbbs . Join a distinguished league of professionals, as Osh paves the way for excellence in medical education on a global scale.

Shalamar Hospital said...

Shalamar Hospital's commitment to your kidney health is epitomized by the kidney specialist in Lahore , delivering comprehensive renal services in a modern and caring medical environment.

coltonmilo said...

Appreciation for offering this confounding web diary to several remarkable information keep it up. Here is new available More markdown with rebate code, voucher code coupon code. for uniqne markdown just with Brands Savings

Future Style said...

Future Style: Your gateway to the future of fashion, offering curated collections and cutting-edge designs that redefine style.

albaflores said...

AutoCore, with its complete Car Repair Software designed exclusively for auto garages and workshops in the UAE, plays a significant role in improving workshop administration by incorporating real-time data tracking.

albaflores said...

Udhaar Book has gained a reputation as a trustworthy platform for millions of companies. The programme simplifies processes and provides financial transparency, making it an indispensable tool for business owners. Recognising the need to solve people' financial issues, Udhaar Book has added a function that extends beyond company management, allowing users to increase their income.

alex12 said...

Introducing the "pretty poison jacket from Riverdale" Jacket from Riverdale: Infused with edgy, rebellious appeal and allure, This classic work captures the essence of the Southside Serpents, offering a daring style statement for those who embrace their inner wild side.
pretty poison jacket from Riverdale

albaflores said...

https://saddar.app/ Mobile accessory sales in Pakistan have gotten popular. Many people have begun to stock high-quality mobile accessories in order to launch their own enterprises. Among all types of cellphone accessories, headphones are one of the most commonly utilised in Pakistan.

albaflores said...

https://autocore.io/ comprehensive solution, designed exclusively for vehicle garages and workshops in the UAE, contributes significantly to improved workshop administration by including real-time data tracking.

albaflores said...

Workshop applications are among the most significant improvements. Workshop apps, also known as vehicle repair software or Garage Apps, are revolutionising workshops in Dubai and the UAE by providing a variety of benefits that improve Dubai workshop management efficiency and effectiveness.

awasecrets said...

Discover the Moringa Collection: a curated range of health and beauty essentials derived from the mighty Moringa tree. Experience the transformative properties of nature's superfood, meticulously crafted into supplements, skincare, and more, for a holistic wellness journey.

albaflores said...

To make your search easier, add keywords like "buying properties in Karachi" and Houses for Sale in Karachi. This guarantees that the results you receive are correct and meet your needs.

Michael Joes said...

Much appreciation to you for sharing your comprehension and fascinating point of view through your blog. I hope to look at additional provocative posts and being a piece of your making area. DOORDASH EXISTING USER PROMO CODE REDDIT

Addy Mudock said...

It is an excellent blog with absolute details. The custom patches are well manufactured to meet your needs and requirements.

«Oldest ‹Older   201 – 273 of 273   Newer› Newest»