Fixed Stack OTA update problem (AN97060)

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

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

I have followed the AN97060 PWMExample instructions for building a fixed-stack OTA sample application. There appeared to be two fixes required - (1) main.c: missing underscore in "OTA_Optional.h" (2) ota_optional.c: missing definition of mainTimer. After making these fixes the project built successfully.

   

I am installing on a standalone CY8CKIT-142, without a CY8CKIT-042BLE baseboard. I am using CySmart 1.2 and a CY5670 dongle to test.

   

CySmart successfully scans the device and allows me to start an OTA upgrade. The upgrade fails on the last step (transfer firmware image).

   

The serial debug output is:

   

<code>

   


> BLE OTA Fixed Stack Bootloader     Application Started
> Version: 1.40
> Compile Date and Time : Aug  1 2017 10:36:57

   

 

   


> BLE OTA Fixed Stack Bootloadable   Application Started
> Based on BLE HID Keyboard Example Project
> Version: 1.30
> Compile Date and Time : Aug  1 2017 10:45:30

   


Bluetooth On, StartAdvertisement with addr: 00a050000508
EVT_ADVERTISING, state: 3
EVT_GATT_CONNECT_IND: 0, 4
EVT_GAP_DEVICE_CONNECTED
CYBLE_EVT_GATTS_XCNHG_MTU_REQ, final mtu= 23
OTHER event: 33
EVT_AUTH_REQ: security=1, bonding=0, ekeySize=10, err=0
EVT_GAP_ENCRYPT_CHANGE: 1
EVT_GAP_KEYINFO_EXCHNGE_CMPLT
AUTH_COMPLETE: security:1, bonding:0, ekeySize:10, authErr 0
OTHER event: 57
EVT_GATT_DISCONNECT_IND
EVT_GAP_DEVICE_DISCONNECTED
EVT_ADVERTISING, state: 3

   


</code>

   

Workspace archive attached.

0 Likes
1 Solution
himam_31
Employee
Employee
50 likes received 25 likes received 10 likes received

Can you try out the PSoC Creator example. I have tested this and it is working fine.

   

Thanks,

   

Hima

View solution in original post

0 Likes
2 Replies
Anonymous
Not applicable

Has anybody successfully built the AN97060 PWMExample fixed-stack OTA project using the current toolset (Creator 4.1)? Unlike most Cypress sample projects, there are A LOT of "moving parts" on this one - manually configuring components, adjusting build settings, copying files from one project to another, etc. It's likely I slipped up somewhere, but I haven't been able to find the goof.

   

If someone has a working version of this project, please post an archive of it...Thanks!!

0 Likes
himam_31
Employee
Employee
50 likes received 25 likes received 10 likes received

Can you try out the PSoC Creator example. I have tested this and it is working fine.

   

Thanks,

   

Hima

0 Likes