Jump to content
43oh

Recommended Posts

Hello,

 

in my project I want to use the MSP430G2553 as a master which communicates with another device via USCI_A0 UART mode.
Is it possible to program the MSP430G2553 via the other modes, e.g. USCI_B0 SPI or USCI_B0 I2C respectively, without the use of a programmer?

Are there any tutorials regarding on how to write a bootloader for the MSP430?

 

Cheers,

 

Tim Torpedo

Link to post
Share on other sites

No, yes, maybe.

The msp430 controllers have either JTAG or SbW for programming. In addition to that, some have a UART bootloader that allows you to update it over a single specified UART, but only after using a specific startup sequence on the reset and test pins.

So in this case; no, you cannot flash the msp430 over SPI or I2C.

 

Since the msp430 uses a Von Neumann architecture, you can reprogram the flash memory from the application running inside the msp430 itself. So if you'd make an application that runs from RAM, you can reprogram the flash memory from inside your application. If you write an application that acts as an I2C or SPI slave, you could make it flash the msp430, but there is no default option to do so.

So in this case; yes, but you'll have to make it yourself.

Link to post
Share on other sites

The G2553 has a ROM based BSL. (Boot Strap Loader, essentially a bootloader). By default that's the only way to re-program the device without using an external programmer.

It should be noted that the BSL doesn't use USCI_A0 hardware, alas unfortunately does share a pin. P1.1 and P1.5 are used for TX and RX.

 

As @@roadrunner84 mentioned, you have the freedom to 'roll your own'. Since all the 'G' series enable the CPU to erase and program internal FLASH. You can find guide for writing bootloaders out there, unfortunately it's generally a very application specific and is tailored to your hardware/software setup.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...