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.

MSP430 BSL Error while flashing_Code size exceeds FLASH memory

Other Parts Discussed in Thread: MSP430BT5190, MSP430F5438A

Hi,

Part NO: MSP430BT5190.

We are trying to flash the default released BSL image provided by TI into our device using FET-Pro430 tool, But we are getting the error as 'code size exceeds FLASH memory'. Please refer the attachment. Any help is appreciated.

This is the same image provided by TI with out any modifications.

 

  • Hi Thomas,

    1. Can you show where you got the BSL image from - was it from the SLAA450 download (link in www.ti.com/lit/pdf/slaa450 ) and which image in that download was used? Or was this obtained somewhere else? I just want to make sure I am on the same page.
    2. In addition in the FET-Pro430 software, can you please show the memory setup: go to Setup > Memory Options and take a screenshot of the options used there.

    Regards,

    Katie

  • Hi Katie,

    Thanks for the reply.

    Yes, the image was downloaded from same link and the images in below mentioned folder were tried (location is copied directly from the folder structure)

    SLAA450\5xx_6xx_Released_BSL_Images\MSP430F5438A_Family

    Please find the screenshot of memory setup below.

    Also let me add some history: We tried flashing the released images because we are failing to flash our custom BSL with both the IAR tool as well as the FET-Pro3 tool. We see same issue with the released images also, hence raised the query. 

  • Hi Thomas,

    I'm having trouble reproducing your problem.

    To program BSL area using Fet-Pro430, you need to change your memory setup. On the left side under Memory/Erase/Program/Verify you should select "Used by Code File" and then check all of the BSL Flash Segments to be enabled. This will give you access to program the BSL area of Flash.

    If that doesn't fix it, some more questions:

    1. Under About > About Software what version is this? I have 3.3-0
    2. In the SLAA450 download under Released BSL Images, what is the file name? I opened BSL.00.07.05.04.txt.
    3. In your first picture in your first post - I don't see any code file selected. If you do Open Code File and select the code do you see the same message still?
      1. When does the message appear - as soon as you open the code file, or only if you try to program or something?

    Regards,

    Katie

  • Hi Katie,

    Thanks for the reply.

    Changing memory setup as suggested by you helped. Now it does not show the error.

    As I mentioned in my previous reply, we face issue with IAR tool also and from current observation we hope it is because the proper memory settings for accessing BSL are not done in IAR also. Can you please let us know what are the settings to be done in IAR for the access of BSL FLASH? 

    Regards,

    Thomas

  • Hi Thomas,

    I'm glad that helped! The setting you are looking for in IAR is found in Project > Options > Debugger > FET Debugger then see the "Download" tab. Here you'll see memory options - you'll definitely want to check the box for Allow erase/write access to BSL flash memory. There are some other memory options here too that might be useful depending on what you are doing (like writing to protected info memory).

    Hopefully this gets you up and running.

    Regards,

    Katie

  • Hi Katie,

    Thanks for the reply.

    We will try the settings you suggested for IAR and update you on the result soon.

    Regards,

    Thomas CN

**Attention** This is a public forum