MSP430F6636: Issue with BSL flashing when migrating from 12.2.0 to 20.3

Part Number: MSP430F6636
Other Parts Discussed in Thread: UNIFLASH

Tool/software:

Hello,

I am working with the MSP430F6636 and maintaining a custom BSL project. This project previously built and programmed successfully using CCS 12.2.0, where i add to specify the compiler version to "TI v4.1.9". 

After upgrading to the latest version of CCS, The project builds without issues but I keep getting the following error:

Trouble Writing Memory Block at 0x1064 on Page 0 of Length 0x714: Could not perform access, BSL memory segments are protected File Loader: Verification failed: Target failed to write 0x01064

I have tried to mingle with the "MSP430 Flash settings", and the different options, but it led to me blocking the chip and this error:

"Error connecting to the target: The Debug Interface to the device has been secured"

Do you know if something change with the new versions regarding the BSL allocated memory protection. 

Any guidance would be greatly appreciated, as this functionality is critical for our production process.

I am new to this so I may have missed basic informations. 

  • Hi,

    What is the compiler version on your latest version of CCS? I am going to move this thread to compiler team for more comments. 

    Best regards,

    Cash Hao

  • Hello,

    After upgrading to the latest version of CCS, The project builds without issues but I keep getting the following error:

    Instead of rebuilding in CCS 20.3, can you take the executable from CCS 12.2 and try to flash it with CCS 20.3 without rebuilding it? This will help us isolate where exactly the issue is caused.

    Thanks

    ki

  • Hello Ki, 

    I tried to take the .out files from CCS 12.2 and flash with Uniflash (version 9.2.0.5300) (to remove the complexity of CCS), and got the same error regarding some segment of the memory being protected. 

    So, I think the issue is with the default authorization of access to the BSL allocated memory and not with the executable itself. 

    Best regards, 

    Adrien 

  • Hi, 

    the compiler version is 21.6.1 LTS. 

    Best, 


    Adrien

  • I tried to take the .out files from CCS 12.2 and flash with Uniflash (version 9.2.0.5300) (to remove the complexity of CCS), and got the same error regarding some segment of the memory being protected. 

    Thanks. Since the out file from 12.2 (which flashes fine in 12.2) does not flash fine with UniFlash 9.2.0, it does not appear the issue is related to the updated compiler. I will defer to the MSP430 experts for further investigation.

**Attention** This is a public forum