This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

changing/removing ble services erase and flash?

So I'm basing this off of the ble_app_hrs that initially has heart rates service and battery service. I want to create my own custom service andcopied the project to use as my template.

The first thing I did was to remove hrs and make a bas only service for simplicityy. Then I replaced bas ble ouput with outputs I wanted to try, like my own counter, multiple bytes.

Next as my initial step for a custom service, I created a new c/h file by copying ble_bas and changing the name. I used nrfgo studio to get a new 128 bit base uuid and tried it out with that to output sensor byte data. That created a custom characteristic with the new 128 bit uuid and output data matched what I expected. So it was working up to here.

Problem is I temporarily stopped on that to work on something else and then came back and it doesn't work anymore.

I initially saw that my custom service was no longer the new 128 base uuid but the standard uuid that ends in 00805F9B34FB and it was giving me junk data. I went back to the original ble_app_hrs but it still had that wonky custom service I created instead of the heart rate and battery services.

I erased and flashed which got ble_app_hrs working properly again but when I went to the bas only and my custom service, it still had both hr service and battery service instead of just battery service or just custom service, albeit no data coming out from the services.

I don't know what I broke and why the bas only isn't working either. Anyone have an idea?

Parents Reply Children
No Data
Related