Announcements

Equip yourself to optimize PSoc4 MCUs for Evs at the EV Webinar. Click here to register.

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

PSoC™ 4 Forum Discussions

dabo_4430311
Level 2
Level 2
10 replies posted 10 questions asked 10 sign-ins

Is it possible to program through bluetooth a psoc 4 ble, for example for tuning the capsense parameters without using the SWD connections but instead bluetooth?

0 Likes
1 Solution
BragadeeshV
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hi dabo_4430311​,

It is possible to update the device firmware using BLE OTA bootloaders. Please refer to the application note PSoC® 4 BLE and PRoC™ BLE - Over-The-Air (OTA) Device Firmware Upgrade (DFU) Guide. The document explains how to update the device's firmware using BLE component without the use of SWD or another other wired protocols.

Cypress provides three kinds of BLE bootloaders that you can add to any BLE project to enable OTA upgrades. Please refer to the app note to choose the best BLE bootloader architecture for your application.

If you wish to tune/ view the CapSense debug parameters using BLE, you can use the reference project shared in the thread capsense tuner through bluetooth with psoc 4 vb

When you give To Device, it only loads the new set of tuning parameters in RAM. Upon reset, the tuning parameters are lost. In case you wish to load the Tuning parameters to the Flash, you need to give To Project and reprogram the device.

Do you want to reprogram the new parameters using BLE?

This can be done using a BLE OTA. After you give To Project in Tuner, open your CapSense component, merge all changes and rebuild the project  to create a new cyacd file. You can now use this cyacd file to reprogram the device using BLE OTA from CySmart App.  Please refer to the code examples attached with the app note to perform this.

The app note explains how to make a normal project to support OTA updates. Please go through the app note and let us know if you face any difficulties.

Please let us know if this answers your question.

Regards,

Bragadeesh

Regards,
Bragadeesh

View solution in original post

3 Replies
BragadeeshV
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hi dabo_4430311​,

It is possible to update the device firmware using BLE OTA bootloaders. Please refer to the application note PSoC® 4 BLE and PRoC™ BLE - Over-The-Air (OTA) Device Firmware Upgrade (DFU) Guide. The document explains how to update the device's firmware using BLE component without the use of SWD or another other wired protocols.

Cypress provides three kinds of BLE bootloaders that you can add to any BLE project to enable OTA upgrades. Please refer to the app note to choose the best BLE bootloader architecture for your application.

If you wish to tune/ view the CapSense debug parameters using BLE, you can use the reference project shared in the thread capsense tuner through bluetooth with psoc 4 vb

When you give To Device, it only loads the new set of tuning parameters in RAM. Upon reset, the tuning parameters are lost. In case you wish to load the Tuning parameters to the Flash, you need to give To Project and reprogram the device.

Do you want to reprogram the new parameters using BLE?

This can be done using a BLE OTA. After you give To Project in Tuner, open your CapSense component, merge all changes and rebuild the project  to create a new cyacd file. You can now use this cyacd file to reprogram the device using BLE OTA from CySmart App.  Please refer to the code examples attached with the app note to perform this.

The app note explains how to make a normal project to support OTA updates. Please go through the app note and let us know if you face any difficulties.

Please let us know if this answers your question.

Regards,

Bragadeesh

Regards,
Bragadeesh

Thank you for the quick reply, I'm currently trying to do that

0 Likes

Hi dabo_4430311​,

To check if the idea works, I tried to add OTA support to the CapSense tuning over BLE server project and it works as expected.

OTA architecture used : External memory bootloader.

You can use the attached project for reference.

Regards,

Bragadeesh

Regards,
Bragadeesh