Tracing BLE events

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.
RoKe_2291266
Level 1
Level 1
First like received

In trying to figure out what is happening in my PSoC4 BLE app, I found that it would be really useful to see what events were being passed to my event handler. Printing event numbers then leads to a tedious process of look up. So I wrote a Powershell script which will generate a c file which allows printing the event codes as strings. I figure other might find it useful, so it is attached. I am not a Powershell guru, so it is pretty simple. It does not understand #ifdefs, so you will generally need to edit the result.

The Powershell script is attached as ParseEnum.ps1. A sample output (with 3 entries removed by hand) is attached as debugEvent.c.

0 Likes
1 Reply
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked

Thanks for your valuable contribution !

Best Regards,

VSRS

0 Likes