nathancrum

New Dev Platform for MSP430FR5969

53 posts in this topic

Have you tried reading back the FW+BSL to ensure that its what you've written?

Note: You need to set the BSL flag again, just to read for that memory location.

 

Do you mind sharing the schematic for this part of your board? Or PM it to me, I'll check it against mine.

Share this post


Link to post
Share on other sites

The thing you want to be able to do is upgrade the ezFETs firmware from MSPFlasher. that's the real key. The firmware you flashed, atleast when I checked, was different to the latest MSPDebug stack firmware. So MSPFlasher SHOULD be telling you to update.

 

Try downloading an older version of MSPFlasher and connecting to the ezFET. if it don't want you to upgrade the FET firmware then something is going wrong. This system is designed so that the PC and the FET both have equal firmware and they both can communicate.

 

At first glance the schematic looks fine. The official ezFET lite down't have 100k resistors for the voltage dividers, that MIGHT be a place of concern.

 

 

As another debug step, try using older versions of the MSPFlasher software. Try to get the one that matches the firmware file you flashed, as a good place to start.

 

 

 

For reference here is the programmer I made. http://forum.43oh.com/topic/5530-custom-ezfet-lite/

spirilis likes this

Share this post


Link to post
Share on other sites

@@greeeg - you are the man.

 

So - I was counting on CCS to update the firmware and it was erroring out without attempting to fix anything.  I was able to flash the BSL firmware using flasher, but every time I tried to flash the FW_3_3_0_6 firmware it failed verification.  So - I tried flashing only the BSL_1_1 firmware.  Then I plugged the ezFET into USB and tried erasing the target using MSPFlasher.  That's when it did this:

c:\ti\MSP430Flasher_1.3.2>MSP430Flasher.exe -e ERASE_ALL
* -----/|-------------------------------------------------------------------- *
*     / |__                                                                   *
*    /_   /   MSP430 Flasher v1.3.2                                           *
*      | /                                                                    *
* -----|/-------------------------------------------------------------------- *
* Evaluating triggers...done
* Checking for available FET debuggers:
* Corrupted USB FET firmware detected. Starting recovery.
* *********************************************************
* *
* *  Initializing Update Bootloader.
* *  Programming new firmware:
* *  |||||||||||||||||||||||||||||||||||||||||||||||||| 100%
* *  Update was successfully finished.
* *
* *********************************************************

* *  Exit Update Bootlader and reboot firmware.
* USB FET recovery completed.* Found USB FET @ COM3. <- Selected

YAY!!  Then it proceeded to do a firmware update

* Initializing interface @ COM3...done
* Checking firmware compatibility:
* The firmware of your FET is outdated.
- Would you like to update it? (Y/N): y

* *********************************************************
* *
* *  Initializing Update Bootloader.
* *  Programming new firmware:
* *  |||||||||||||||||||||||||||||||||||||||||||||||||| 100%
* *  Update was successfully finished.
* *
* *********************************************************

* *  Exit Update Bootlader and reboot firmware.
* FET firmware is up to date.

Double YAY!  Now it works fine with both MSP430Flasher and CCS - everything is A-ok.

 

So I guess the key is to flash the BSL and let the programmers do the rest.  I haven't checked if I can just flash the BSL and use CCS to update the firmware the first time, but at least I have a working procedure.

bluehash likes this

Share this post


Link to post
Share on other sites

@@nathancrum Glad to see everything is working. I would be interesting in using this product. eventually :D

 

I too have had trouble getting CCS to perform the FW update. glad that we have tools like MSPdebug and MSPFlasher that are cross platform and can successfully do it.

 

FW_3_3_0_6 while technically it SHOULD update to newest, it might just be too far a jump. obviously something isn't going right.

Programming just the BSL definitely sounds like the best way to go, that way it's instantly upgraded to the newest version.

Share this post


Link to post
Share on other sites

I too have had trouble getting CCS to perform the FW update. glad that we have tools like MSPdebug and MSPFlasher that are cross platform and can successfully do it.

I also like that because the source is available I keep multiple versions installed if necessary, something that's probably hard to make CCS do. I'm a bit concerned by the comment somebody made somewhere that the original EXP430FR5969LP would not work with the latest MSPDebug stack that fully supports energy trace, which suggests the new EXP430FR5969LP might not work with the old MSPDebug stack.

 

I too am looking forward to trying this new platform.

Share this post


Link to post
Share on other sites

Hi guys,

 

We've been playing with the prototypes for a few weeks now and wanted to start adding support for our board in Energia and...after some searching, it's not at all clear if that's possible right now.  I will keep looking, but figured I should post here for now since someone probably knows the answer, "Is is possible to add new processor boards to Energia via text configuration files?"  ...or is it more complicated?

 

I got as far as writing a pins file before realizing this was not sufficient to totally describe the board.  The Storm Ninja is "hardware-compatible" with the FR5969 Launchpad (same processor & ezFet lite programmer), but the pin numbering is very different (different ports used, different pins for LED, more pins, etc.)

pins_energia.h

Storm Ninja Energia Pins.pdf

Share this post


Link to post
Share on other sites

We've been playing with the prototypes for a few weeks now and wanted to start adding support for our board in Energia and...after some searching, it's not at all clear if that's possible right now.  I will keep looking, but figured I should post here for now since someone probably knows the answer, "Is is possible to add new processor boards to Energia via text configuration files?"  ...or is it more complicated?

While it has fewer users and targets a different audience than Energia, I'd meant to ask if you'd like your board supported by BSP430. I also use a couple mapping text file per platform and a couple cloned headers, so it's pretty easy. I'd do it in trade for a couple ready-to-use boards. Send me a direct message if you're interested.

Share this post


Link to post
Share on other sites

@@pabigot - We definitely would like to get some demos in the hands of people that can put them to use, but we don't have many prototypes yet.  I think there's probably something we can work out though.  BSP430 also looks really cool - we'd love to have the Storm Ninja supported there too.

 

Regarding Energia - I was still hoping to figure it out myself so I knew where everything was located.  If someone could either list the files or point me towards the documentation that would be awesome.  I don't mind doing the work - I'm just a little lost.  As I mentioned - I think I have the pins file figured out, but I don't know what other files tells Energia about the targets.

 

Thanks

Share this post


Link to post
Share on other sites

Hey guys,  just wanted to say we got it figured out today.  Storm Ninja prototypes program just fine with energia and the pins I tested so far seem to work.

 

Here are my notes for getting a bare Energia 13 installation working with Storm Ninja (and with the 5969 for that matter which doesn't work without a dll update)

 

boards.txt contains high level processor speed protocol etc. under hardware/msp430
an entry duplicateing the lpmsp430fr5969 entry is required to add a new variant.
then the prefix should be changed from lpmsp430fr5969 to stormninja
additionally the line xxx.build.variant should be changed to a folder name for the new variant in our case storm_ninja_p2
under hardware/msp430/variants create a new folder named as above
place the 5969 board.mk file and the new custom pins_energia.h file in this folder
when you next start energia it will have the entry for the new board option.
---- boards.txt exerpt
...
 
##############################################################
lpmsp430fr5969.name=LaunchPad w/ msp430fr5969
lpmsp430fr5969.upload.protocol=tilib
lpmsp430fr5969.upload.maximum_size=65536
lpmsp430fr5969.build.mcu=msp430fr5969
#lpmsp430fr5969.build.f_cpu=16000000L
lpmsp430fr5969.build.f_cpu=8000000L
lpmsp430fr5969.build.core=msp430
lpmsp430fr5969.build.variant=launchpad_fr5969
lpmsp430fr5969.upload.maximum_ram_size=1024
 
##############################################################
stormninja.name=Storm Ninja p2
stormninja.upload.protocol=tilib
stormninja.upload.maximum_size=65536
stormninja.build.mcu=msp430fr5969
#stormninja.build.f_cpu=16000000L
stormninja.build.f_cpu=8000000L
stormninja.build.core=msp430
stormninja.build.variant=storm_ninja_p2
stormninja.upload.maximum_ram_size=1024
 
##############################################################
-----
 
variants/pin definition files is required.
 
---
 
 
"Once you have downloaded and installed it, you need to open two folders. One is the MSP430Flasher install directory (click the pictures to the right for a larger size), the other is the mspdebug directory inside the Energia install directory. The pictures to the right show the paths on my computer.
 
 
Once you find the two directories you want to copy HIL.dll and MSP430.dll from MSP430Flasher into Energia's mspdebug directory. Backing up Energia's copies of those two files isn't a bad idea, I created a directory called "OEM" and moved the originals into it, then copied the new HIL and MSP430 dlls.
 
 
Once you have copied those two files, re-open Energia (if you didn't close it before, close it and re-open it) and run Update Programmer again. Instead of throwing errors it should happily update the remaining piece of firmware. If you feel like being sure, run it again and make sure it's happy that time too."

Share this post


Link to post
Share on other sites

FYI - We've also forked the Energia github and have pushed these changes already.  Hopefully we can resolve the driver issues in the future, but for now it's functioning separately.

https://github.com/ApparentlyConnected/Energia

 

We've also started adding libraries for our Shurikens (daughter boards) like the Sharp 128x128px LS013B7DH03 Memory LCD.  On deck are the bluetooth (Microchip RN4020) and WiFi (Microchip RN171) modules.

post-38251-0-26774300-1418794236_thumb.jpg

 

Unfortunately the existing libraries like SPI aren't abstracted enough to be cross compatible (we're using different UARTs, pins, etc) so some more work will need to be done to either make them universal or port for the FR5969 LP and other MSP430's, but it shouldn't take much to make them useful for anyone who wants to use these peripherals with Energia.

bluehash likes this

Share this post


Link to post
Share on other sites

FYI - made some more progress on the Energia graphics library and have added a bitmap interpreter for the TI Image Reformer tool in the MSP430 graphics library package.  Adding any custom image to a project just got a lot easier. (edit) And I am loving this screen - the contrast is awesome.

bluehash and pine like this

Share this post


Link to post
Share on other sites

@@bluehash Thanks - we're already having fun playing with it and really impressed with the Sharp LS013B7DH03.  The mirrory finish on the 96px one from the BoosterPack is sort of a novelty, but the contrast on the 128px H03 is much nicer on the eyes overall.

 

Next I'm working on a Bluetooth LE shuriken and Android app and @@Patrick is working on a WiFi expansion and internet upload.  Weeeee!

bluehash likes this

Share this post


Link to post
Share on other sites

Hi guys.  It's been awhile since we've posted on this project, but progress has been steadily moving on.  We're working with the Rev 3 prototypes at this point and I think we're pretty close to a final product.  Patrick is going to be out at the Bay Area Maker Faire next week showing them off.

 

We're also trying to upload stuff as it's stable to github - a few demo projects and an Android app for bluetooth:

https://github.com/ApparentlyConnected

 

Shurikens (daughterboards) have expanded now to include a sensor board (RGB, accel & temp), a relay board, an AC rectifier board for use with a current clamp in addition to newer revisions of the LCD, Wifi, and BTLE shurikens.

 

What kind of demo projects do you guys think would be best to show off the FRAM and low power capabilities of the MSP430FR5969?  Or what demos would you just like to show how it works?

 

/Nathan

post-38251-0-32787900-1430883027_thumb.png

post-38251-0-86432100-1430883028_thumb.png

post-38251-0-70048400-1430883029_thumb.png

post-38251-0-58083600-1430883030_thumb.png

post-38251-0-44771100-1430883031_thumb.png

post-38251-0-09652500-1430883032_thumb.png

post-38251-0-91301200-1430883032_thumb.png

post-38251-0-75046800-1430883033_thumb.png

Share this post


Link to post
Share on other sites

Nice project. I've heard a msp430g2553 has problems to get a SD card working (to e.g. log data). So this would work with your project then? Any work done for raw LCD support so it/or a certain type kind of works out of the box?

nathancrum likes this

Share this post


Link to post
Share on other sites

Hi guys.  It's been awhile since we've posted on this project, but progress has been steadily moving on.  We're working with the Rev 3 prototypes at this point and I think we're pretty close to a final product.  Patrick is going to be out at the Bay Area Maker Faire next week showing them off.

 

We're also trying to upload stuff as it's stable to github - a few demo projects and an Android app for bluetooth:

https://github.com/ApparentlyConnected

 

Shurikens (daughterboards) have expanded now to include a sensor board (RGB, accel & temp), a relay board, an AC rectifier board for use with a current clamp in addition to newer revisions of the LCD, Wifi, and BTLE shurikens.

 

What kind of demo projects do you guys think would be best to show off the FRAM and low power capabilities of the MSP430FR5969?  Or what demos would you just like to show how it works?

 

/Nathan

Nice! Was browsing through your website yesterday.

nathancrum likes this

Share this post


Link to post
Share on other sites

@@DeepBlueSky - I've had success getting an MSP430F5529 to write to an SD card, but it's running on two AA's.  SD cards can take anywhere from 30 to 100mA to drive so yea - not very practical on a limited power budget.  I doubt you could even get it to operate with the internal resistance of a coin cell.

 

I'm actually using external FRAM for that reason on a project at work.  Cypress makes a range of chips from 256kb? up to 2Mbit.  It's expensive compared to SD cards or even flash, but far superior to both for power efficiency and it's also a LOT faster than flash so you can write your data and go back to sleep fast.

 

The internal 64kB of FRAM on the FR5969 can hold a fair bit of data if you're clever about packing it in efficiently, but it's possible we'll offer external flash or FRAM add-on's in the future too.  For now most of the ideas revolve around buffering a certain amount of data internally and then either passing that on over WiFi or BTLE at regular intervals.

 

Regarding the LCD - it is a Sharp LS013B7DH03 128x128 graphic "Memory LCD".  It is part of the same family as the 96x96 display TI sells as a booster pack, but that panel is being discontinued.  The 128x128 display is also MUCH better contrast and as the pixel count would imply - provides more detail.  It already has a working library we've uploaded to our Storm Ninja branch of Energia - it uses most of the guts of the previous 96x96 library, but I've rewritten it to be more power efficient and added some more capabilities like supporting images from TI's image reformer utility (part of their grlib library).

 

We chose these specific LCD's over others because they're such insanely low power.  Try any regular LCD and you'll see it draw anywhere from several hundred uA to a few mA.  We tried using e-ink at first, but compared to the Memory LCD's it's actually a moot point.  I literally cannot measure the current draw of this screen using a 6.5 digit Rigol DM3068 DMM.  It's active spec is 50uA, but when it's idle it must consume almost nothing because it doesn't even register in the nA.  That insane power performance is what we wanted for this platform - you can leave the screen on basically indefinitely and the coin cell would last years.

DeepBlueSky likes this

Share this post


Link to post
Share on other sites

Thanks for suggesting an SD alternative. If the alternative has a much lower power consumption (or should I say the SD has too much) and doesn't have the same problems SDs have, and offers other superiorities, then I'm ok with a higher price.

Something external to which the chip writes/logs data to, which later can be transferred to PC, would be very nice (logging data so something which can be later put on PC for further processing is kind of essential).

 

The reason I thought about raw LCDs first is that they can have big digits, are relatively power efficient and have relatively good contrast. But if you say that the contrast of the Memory LCDs is comparable (or better?), and of course the impressive low power consumption you mentioned (I would have guessed 10x that much consumption), then a bigger version of the Memory LCD would be an alternative. The higher resolution not to forget.

 

When will this be available :)

Share this post


Link to post
Share on other sites

When will this be available :)

Good question.  We do not have a specific launch date in mind, but I think we are aiming at having parts ready to ship this fall.  We will most likely launch a Kickstarter campaign sometime in the next 30-60 days.  Deliveries would probably start 90-120 days after the campaign ends.  At least that's my best guess for now.

 

Regarding the LCD - there are a few example images posted above.  The contrast on the 128x128 screen is really excellent - it is a joy to look at:

post-38251-0-42686400-1419824693_thumb.jpg post-38251-0-99908700-1419824693_thumb.jpg post-38251-0-89377100-1419824692_thumb.jpg

 

Regarding external Cypress FRAM - 2Mbit is about $20, 1Mbit is about $12.

http://www.digikey.com/product-detail/en/FM25V10-G/428-3323-ND/3788992

 

It's just a memory chip - you can format it so it can be read like a disk drive or you can read/write to it like a giant array and stream it over UART to get it to a computer - it's up to you.  It does lack the convenience of just unplugging it and plugging it into a computer I'll admit, but the speed and efficiency gains are worth it.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now