AM2612-Q1: AM261 SBL working sequence and flash_open issue

Part Number: AM2612-Q1
Other Parts Discussed in Thread: SYSCONFIG

Hi experts,

 

Good day! I am asking for customer.

My customer is developing AM261-Q1.

  1. They checked the SBL code logic, it first load and run on core 1, then core 0.
    The customer wants to know if it is possible to run core0 loads first and then core 1 loads and runs.

2. My customer is facing flash_open issue on their board with their application code. 

a. When OSPI and port is configured with Sysconfig, then when they debug ospi_flash_io_am261 demo, they can operate flash successfully. ButWhen OSPI and port is configured with MCAL, they it fails on flash operation.

b. When OSPI and port is configured with sysconfig, then it successes on flash operation. In this successful sysconfig configuration OSPI input frequency is 166MHz.

If they change OSPI input frequency to 133MHz in sysconfig, then it will occur same issue.

But they are using ZSZ package, in theory, 133 Mhz was reasonable, but now it has failed. 


c. When OSPI(except port) is configured with sysconfig, port is configured with mcal, then it also fails.

Customer has tried skip_hw_init in their application code, but the issue is not solved. flash can't be operated, other peripherals are normal. 

 

 

Could you help to check ASAP?

Thanks!

Best Regards

Kita

  • Hi,

    Any update on this question?

  • Hi Kita,

    1. They checked the SBL code logic, it first load and run on core 1, then core 0.
      The customer wants to know if it is possible to run core0 loads first and then core 1 loads and runs.

    The SBL runs on core 0. So if Core 0 is loaded and run, then from SBL we cannot load and run core 1 as SBL is no more running on Core 0.

    When OSPI and port is configured with Sysconfig, then when they debug ospi_flash_io_am261 demo, they can operate flash successfully. ButWhen OSPI and port is configured with MCAL, they it fails on flash operation.

    Can you please check if there are any differences in flash configuration between SDK and MCAL ? Can you please try to run the Fls App example from MCAL with flash confogurations changed for the QSPI flash ?

    . When OSPI and port is configured with sysconfig, then it successes on flash operation. In this successful sysconfig configuration OSPI input frequency is 166MHz.

    Let me check this on my side. Is the issue observed regarding flash driver open ?

    Regards,

    Aswin

  • Hi Kita,

    Are you using the latest AM261 SDK. The ospi if configured at 133MHz by default.

    The latest one is 11.0 SDK.

    Regards,

    Aswin

  • Hi Aswin,

    I want to clarify the question from customer:

    My customer is facing flash_open issue on their board with their application code. 

    Customer is now based on MCAL generated code and then adds .syscfg into his code and configure some modules through sysconfig.
    a. When he configures OSPI and fls through the sysconfig tool, the generated code can be debugged online and programmed in flash.
    b. When he copies the code generated by OSPI and fls in sysconfig  into his project, and removes the OSPI and fls modules from sysconfig, the code can be debugged online, but not programmed in flash.

    The reason that customer needs to use sysconfig because:

    1. In MCAL FLS module, it doesn't have interface to configure fls parameters. They are using their chose flash so they need to configure fls parameter.

    2. In EB FLS module, it can't link to OSPI module.

    Customer wants to know how to solve the issue under situation b.

    Thanks!

    Best Regards

    Kita

  • Hi Kita,

    We can discuss this in the call.

    Regards,

    Aswin