MSPM0L1304: Programming issue on Uniflash

Part Number: MSPM0L1304
Other Parts Discussed in Thread: UNIFLASH

Hi Champ,

I am asking for my customer.

They have specifially assigned flash address for specific data storage with __attribute__((section(".xxx"))) __attribute__((retain)) in project.

And the customized cmd is shown.

image.png

image.png

With CCS 20.3.1, the image could be programmed to device properly and run the code nicely. Checking on the specific data that we assigned, it was properly programmed to specific flash address. 

However, through Uniflash (confirming version, likely v9.3.0), after loading the same image, the console showed as below. Can't read memory thru memory browser on Uniflash.

image.png

After that, customer did the reprogram on CCS again, the device was no longer able to program again and having below error message.

image.png

To reprogram the same device, the device could only be rescued by doing the factory reset.

(1). It seems some data alignment error pop out on Uniflash console. Does the expert see any problem with the memory allocation? I have asked customer to allocate the output section to other place, the error was still the same.

(2). Why we get two different results from CCS and Uniflash? Is there something wrong with our Uniflash?

Thanks for the support.

Regards,

Johnny

  • Hi Johnny,

    What kind of loard firmware used for UNIFLASH? For .out file, it automatically manage the 8-byte alignment. For hex or other format, user should add alignment on the generation. It is described in the quick start guide of SDK tools.

    Below is an example: (CCS V20 is similar)

      

    Secondly, When user align the data to FLASH address directly, it is his responsibility to make sure the data is 8-byte alignment.

    For example below:

    __attribute__((used, persistent, location(0x2008))) unsigned int dataFlash_1 = 1;

    __attribute__((used, persistent, location(0x200C))) unsigned int dataFlash_2 = 2;

    If user align the data into a section, I think there will auto do alignment. Please double check.

    B.R.

    Sal