Dec 12, 2018
06:40 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 12, 2018
06:40 PM
We are trying to design a custom system using the CYW43907 which will have a different (maybe non-Cypress) SPI Flash on it.
- Where do you define what serial flash you are using? Hard to imagine the bootloader & SDK can handle any SPI Flash.
- Where do you define the memory allocated to the different images?
- I see the addresses defined in ./platform/xxx/normal_image_defines, is this a comprehensive list
- "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
Solved! Go to Solution.
Labels
- Labels:
-
DCT
-
Memory
-
Wireless MCU
1 Solution
Dec 12, 2018
09:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 12, 2018
09:31 PM
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.
- In 43xxx_Wi-Fi/platforms/CYW943907AEVAL1F/CYW943907AEVAL1F.mk, add a line GLOBAL_DEFINES += SFLASH_SUPPORT_<SFLASH-COMPANY-NAME>_PARTS
- 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.
- 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.
- 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.
4 Replies