CYW43907 SPI Flash Parameters and partitioning

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
NaFi_2915566
Level 3
Level 3
First like received First like given

We are trying to design a custom system using the CYW43907 which will have a different (maybe non-Cypress) SPI Flash on it.

  1. Where do you define what serial flash you are using?  Hard to imagine the bootloader & SDK can handle any SPI Flash.
  2. Where do you define the memory allocated to the different images?
    1. I see the addresses defined in ./platform/xxx/normal_image_defines, is this a comprehensive list
    2. "NORMAL_IMAGE_FS_AREA_BASE" is marked obsolete, who do we define which part of the serial flash is dedicated to the file system?

thank you

0 Likes
1 Solution
RaktimR_11
Moderator
Moderator
Moderator
500 replies posted 250 replies posted 100 replies posted

I will try to provide a rough outline for a new sflash bringup in WICED SDK for 43907, which might need some further tuning for your chosen sflash to make it completely functional.

  1. In 43xxx_Wi-Fi/platforms/CYW943907AEVAL1F/CYW943907AEVAL1F.mk, add a line GLOBAL_DEFINES += SFLASH_SUPPORT_<SFLASH-COMPANY-NAME>_PARTS
  2. Add the SFLASH_ID_<MPN> of the flash you plan to add in 43xxx_Wi-Fi/WICED/platform/MCU/BCM4390x/peripherals/spi_flash/spi_flash.h and also check the flash datasheet for any additional command you might want to add in sflash_command_t structure.
  3. Now the source code for the new sflash needs to be added in 43xxx_Wi-Fi/WICED/platform/MCU/BCM4390x/peripherals/spi_flash/spi_flash.c. For every instance of the source code addition, we recommend to use #ifdef SFLASH_SUPPORT_<SFLASH-COMPANY-NAME>_PARTS as defined in step 1. You can check the existing source code for the already supported SFLASH in SDK and write the same for your new sflash.
  4. If you are adding an extra command in sflash_command_t structure as mentioned in step 2, you have to modify 43xxx_Wi-Fi/WICED/platform/MCU/BCM4390x/peripherals/platform_spi_flash.c in actioncode_purpose_list structure.

Hope it helps to bring up the flash of your choice!

For the second part of the question, the normal_image_defines.mk is the comprehensive list of the memory map. If you want to check the exact FS area in sflash, you can check the wiced_apps.mk file and building with VERBOSE=1 will also help in understanding that part.

View solution in original post

4 Replies