Amazon aws_demo application how to use OTA to download application to external flash(SMIF)

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

cross mob
WaLo_3890256
Level 2
Level 2
5 replies posted 10 questions asked 5 questions asked

Hello,

We are using CY8CKIT-062-WIFI-BT running amazon freeRTOS aws_demo application. The IDE is modustoolbox2.0.

We have already implemented ota function and could download a downloadable file from aws cloud. What we have done is use attached code file for allocate a temporary buffer and copy received buffer there.

If we need to download the downloadable file to external flash such as DFU host tool, is it possible? If we can do that just like DFU, which function or API need to implement on aws_ota? Thanks for your help.

BR,

Wayne

0 Likes
1 Solution
RavikiranH_01
Employee
Employee
10 sign-ins 25 replies posted 10 replies posted

Hi WaLo,

To access the external memory, you will have to map the address ranges using  "sflash_toc_2".
Please refer your linker script for the sflash_toc_2 definition.

Though this example is not entirely what you are looking for, it might help you get started with the  external memory access. 

Hope it helps.

Thank you

View solution in original post

0 Likes
3 Replies
RavikiranH_01
Employee
Employee
10 sign-ins 25 replies posted 10 replies posted

Hi WaLo,

To access the external memory, you will have to map the address ranges using  "sflash_toc_2".
Please refer your linker script for the sflash_toc_2 definition.

Though this example is not entirely what you are looking for, it might help you get started with the  external memory access. 

Hope it helps.

Thank you

0 Likes

Hi,

I missed to highlight the another example, that you might want to have a look.
https://www.cypress.com/documentation/code-examples/ce220959-psoc-6-mcu-ble-bootloader-external-memo...

This is not a FreeRTOS example. But, certainly useful in SMIF configuration, FYR.

Thanks

0 Likes

Hello Rave,

I have already accessed the external memory successfully by take reference on those two sample code.

Thanks so much.

By the way, we put the cyacd2 file onto amazon cloud, how could we parse the cyacd2 file format?

The cyacd2 size is quite large and include the header each row. How could we only catch the data not include the header?

Thanks.

BR,

Wayne

0 Likes