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.

AM263P4: SBL & LFS on the same SPI FLASH device

Part Number: AM263P4
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

Can I have the SBL and the an LFS partition on the same SPI FLASH?

I tried in Sysconfig and it when adding Bootloader sections the error "Same device cannot be selected" is shown.

sysconfig 1.25 / SDK11

Regards

Neil 

  • Hi Neil,

    May I know what does LFS indicate here ? Is this regarding File system. 

    Can you elaborate the issue with the steps followed and the screensnip of the same.

    Also could you please elaborate the issue that you are facing ?

    Regards,

    Aswin 

  • If I use the example project ospi_flash_file_io which has an LFS partition - Little File System - already defined in the syscfg file at an offset of 0x100000 and I then want to add a bootloader partition I get the error regarding not having both boot and LFS in the samd SPI FLASH. There is no reason why as far as I can tell, the LFS only operates after the system has booted. 

  • Hi Neil,

    Thanks for explaining the method. I understood the issue. Let me check this and get back to you.

    Regards,

    Aswin

  • Hi Neil,

    This seems to be a bug in  the SDK. I have filed a bug regarding this. Please see the jira link for internal tracking.

    jira.itg.ti.com/.../MCUSDK-14977

    As a workaround, I thought that taking the bootloader co configuration out of the sysconfig would be a solution. So what I checked was that,

    1. I checked which all files had the code related to bootloader. They are

    • ti_driver_config.c
    • ti_driver_config.h
    • ti_clocktree_pll_config.c
    • ti_clocktree_pll_config.h

    2. Took the code out of these files and added them in a newly created file

    To test this, I took the sbl_ospi_multicore_elf of the SDK v11. I have attached the project zip here

    sbl_ospi_multicore_elf_mod.zip 

    I flashed a hello world image with this bootloader and was able to obtain boot the app.

    Regards,

    Aswin