cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 6 MCU

michalzoldak
New Contributor II

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
VenkataD_41
Moderator
Moderator

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
VenkataD_41
Moderator
Moderator

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
michalzoldak
New Contributor II

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
New Contributor II

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
Top labels