HI all,
I am trying to implement the OTA update for CSR534x chip. I am trying with CSR Dev board.
Is there any example application source code from CSR which shows how the CSRb534x module will receive the new binary file. Source code which makes use of "StreamPartitionOverwriteSink()", "PartitionSetMessageDigest()", "PsStoreFsTab()" APIs.
I am referrring the SQIF-Partitioning guide and OTA example application guide (CS-326127-AN1 and CS-323516-AN2) from CSR. Is there any other documentation explaining the OTA of CSRB534x?
Thanks in advance.
Those are the correct documents to look at. Qualcomm currently does not have plans to release example source code as Qualcomm does not want to limit the number of ways a customer could get the upgrade data to the CSRB534x, e.g. SPP, wired, etc.
You can add a header to the upgrade file so your application can differentiate between an upgrade file and regular SPP data. This is one way to go about it if you do not want user interaction. Can you provide a snapshot of your code that is using StreamPartitionOverwriteSink() so I can see if I can spot anything wrong. What may also be useful to see is the partition file you are using. You want to use RS for the partition type. It is possible to upgrade over a wired input, e.g. USB or UART. However, the same process used for BC04/05 cannot be used. You will need to develop an application that takes data from USB or UART and copies it to SQIF.
Thanks for the reply.
Menatime I came across a document "CS-227835-AN-4-Using external FLASH on ADK.pdf" under CSR8670 docuemntation. I found this document useful for implementing the code for OTA of CSRB534x but this document is not mentioned anywhere in CSRB534x SDK or related documentation to refer for the OTA implementation.
With the help of above document, I succeeded to write the partition with image-file received from remote device over BT connection.
To create a binary output file, you can use python and do something similar to: f_out = io.open(sys.argv[x], "wb") - where x is the argument number passed in to the python script.
Thanks for inputs.
I will try this and update you..
Regards,
sujata