You are here

CYBLE-022001-00 | troubles with some pins | questions about BLE | Cypress Semiconductor

CYBLE-022001-00 | troubles with some pins | questions about BLE

Summary: 1 Reply, Latest post by bobgoar on 17 Feb 2016 01:15 PM PST
Verified Answers: 0
Last post
Log in to post new comments.
doedelhoch4_1549746's picture
22 posts

Hey guys!

Me again. So I got nearly everything working. Two things:

When I try to set pin 3 or 4 on my CYBLE-022001-00 high, it just doesn't go high. This doesn't apply for any other pin. There is no short to GND. Do I have to configure something differently for those pins? Or might I have damaged something whilst soldering? It does look pretty ok to me. But I can't look under the BGA chip.

Second question: I managed to get BLE working very easyily. Sadly, when I write a value, the WRITE callback handler will get executed which is very nice. I in there can change my values which works awesome too. BUT it does not update the GATT DB and I always read the same value over BLE I set initially. Do I have to write that value back in some special way. Or do I even have to update the GATT DB manually? I tried the latter one and it didn't change a thing ... When I write a value, it gets through properly but the field in the CySmart reverts to the old value.

Then: when I want to READ something, I have no callback handler somehow. Is there a way to do that? Because for my BLE to SPI bridge I now have to WRITE the address, cache the retireved values into the GATT DB and then do a READ call over BLE which then gets the value read from SPI and updated into the GATT DB with the WRITE call before. Is there a way to do that better? The examples I found all just care about writing OR the handle read calls by returning the value with a notification.

Any help is very appreciated :)

Peace Noah

user_242978793's picture
961 posts

Noah I am sending you a set of programs for how to use GPIO pins and also a PDF that explains how they work. It appears that your Cy_setpins is incorrect. Look at example 5 it shows the correct way to do it. The SPI read is working correctly.

Log in to post new comments.