Save FIFO values from burst read

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

cross mob
michalzoldak
Level 1
Level 1
10 sign-ins 5 replies posted 5 sign-ins

Hello I am using PSOC 062 BLE with max30101 heart sensor,

I wanted to read data using burst read function defined as:

michalzoldak_0-1626444654109.png

Pseudo code for reading:

michalzoldak_3-1626444788238.png

 

example output i beleive everything I am doing is fine:

michalzoldak_1-1626444692386.png

michalzoldak_4-1626444826993.png

michalzoldak_2-1626444708464.png

However when I want to retrieve those values program doesn't save them in buffer:

michalzoldak_6-1626445010269.png

 

michalzoldak_5-1626444995678.png

For now I want to save 3 bytes of "LED1" mentioned in pseudo code.

I have tried different options but nothing have helped. Any one knows whats going on?
I would really appreciate any help ;), thanks in advance.

Michal,

 

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
VenkataD_41
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hi,

Can you please follow the code as used in the code example attached with this email. Please test the same code flow and let us know if it does not work. The code example also reads 3 bytes.

Thanks

Ganesh

View solution in original post

0 Likes
3 Replies
lock attach
Attachments are accessible only for community members.
VenkataD_41
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hi,

Can you please follow the code as used in the code example attached with this email. Please test the same code flow and let us know if it does not work. The code example also reads 3 bytes.

Thanks

Ganesh

0 Likes
michalzoldak
Level 1
Level 1
10 sign-ins 5 replies posted 5 sign-ins

Hello Ganesh,

The problem was with parameter to which MasterReadByte saved value. I have changed &value to databuf[i] in the for loop and everything works perfectly now 😉

0 Likes
michalzoldak
Level 1
Level 1
10 sign-ins 5 replies posted 5 sign-ins

Hello the problem was with parameter responsible for saving data to variable in MasterReadByte which is &value in my case. I have changed it to databuf[i] and everything works perfectly now. 

Thanks.

0 Likes