This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Custom BSL for 'F2330

Other Parts Discussed in Thread: MSP430F2330

I need to use the Bootstrap Loader (BSL) functionality to field-program the MSP430F2330, however I need to use the standard UART port (on P3.4/P3.5) for the serial interface, not the factory BSL P1.1 and P2.2.

  1. Can the 'F2330 factory BSL be replaced with a custom BSL? 
  2. If it can be replaced, is there a sample project for an 'F2330 BSL that uses the standard UART peripheral (CCS version preferred)? 
  3. I need to enter the BSL via a jump/call from my own application code. 
  4. If the factory BSL cannot be replaced, can I just merge a custom version of the BSL code with my own application code? 
  5. If so, I would just call the custom BSL code and ignore the factory BSL 
  6. Again, is there a sample project for an 'F2330 BSL that uses the standard UART peripheral (CCS version preferred)?

Thanks,
Ron

  • Ron Knollman49648 said:
    Can the 'F2330 factory BSL be replaced with a custom BSL? 

    No. Many 5x fmaily devices have a writable bootloader. However, the BSL uses a timer-based sofware uart and not the UART hardware (for better tolerance on uncalibrated clock). It must use the port pins that have timer capture/compare functionality. Unless you write your completely own BSL, replacing just the GPIO pin address wouldn't work at all.

    But you can simply connect the two BSL pins with the UART pins on your PCB. After power-on, the UART pins are high-impedance and won't hinder the BSL pins, and when your applicaiton runs, the BSL pins are high-impedance and won't disturb the UART. Unless, of course, you need the timer signals for your application.

    Ron Knollman49648 said:
    I need to enter the BSL via a jump/call from my own application code. 

    That's possible. AFAIK, the appnote about the BSL, SLAU319.PDF, contains details. Also, there have been one or two threads in this forum about this.

    Ron Knollman49648 said:
    If the factory BSL cannot be replaced, can I just merge a custom version of the BSL code with my own application code? 

    Sure. It is, however, a bit tricky, as you need to keep your BSL functionality intact while downloading the new code and replacing your old application.
    There have ben several threads dicussing this, inlcuding detailed desriptions of different approaches.
    The best one requires the new applicaiton to be downloaded completely before the original one is replaced, so it will limit the available flash for the application to 50% of the total. You'll go for the next higher MSP (2350) for 8k application or 2370 for 16k.

    Ron Knollman49648 said:
    is there a sample project for an 'F2330 BSL that uses the standard UART peripheral (CCS version preferred)?

    Since it's in ROM on the 2230, no code for own modifications of the BSL was ever released, nor did anyone try to write his own.

**Attention** This is a public forum