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.

AM2634: Could you guide us use LOCATION to assign const to specified Flash address, do not use Flash API?

Part Number: AM2634

Hi Experts,

I am asking for my customer.

My customer have used C2000 to develop projects before, and Now they wants to know how to use keywords or ARM compilers to specify the content of Flash addresses.

For instance, the usage in C2000/F280039C, they assign the below const to 0x09AFF0.

C2000 Flash Address:

But how to achieve this operation on AM263x by external Flash Chip. They do not want to use Flash API to write this const? So could you help guide us? Thanks.

  • Hi Shaoxing Ke,

    This is a little tricky thing to do. Technically this is possible but it will be very difficult to do. You see, in an external flash device most of data store and reads are done from internal RAM to avoid flash delays.

    Let me go through this and then come back. But let me remind you it will not be a easy solution and may require bunch of workarounds.

    Best Regards,
    Aakash

  • Hello Shaoxing,

    The expert will be out-of-office until Thursday of next week.

  • Hi Aakash,

    Okay, Besides, How to secure RAM value will not initialization by SBL once AM263x WDRS reset again? Or we want to write fixed value while WD will reset AM263x but Power still always here. Thanks.  

  • Hi Shaoxing,

    However this is not recommended from safety perspective, it is technically possible. The SBL initializes the L2 Bank 2 and Bank 3 whereas ROM initializes L2 Bank 0 and Bank 1. Each bank is 512KB each.

    You can add a logic to bypass the L2 Bank 2 and Bank 3 initialization in case of warm-reset. This is done here in SBL -

    I hope this helps.

    On the first question, it may be supported, but in that case, we might require a flash image format which will be different from App Image. I have not experimented on the same but this is how it is feasible.

    Best Regards,
    Aakash

  • Hi Aakash,

    Any risk here? bypass the L2 Bank 2 and Bank 3 initialization in case of warm-reset when WDRS reset again.