I am working with the CYBLE-416045-02 chip (with CY8CPROTO-063-BLE KIT) but i am declaring a function in my .h file as the following:
uint8_t WriteCommandPacket(uint16_t cmd);
and the user can send differents commands:
#define CMD_WATER (0x3608)
#define CMD_ALCOHOL (0x3615)
#define CMD_STOP_MEASUREMENT (0x3FF9)
#define CMD_SOFT_RESET (0x0006)
#define CMD_READ_I (0x367C)
#define CMD_READ_II (0xE102)
it is why i am using the uint16_t type to send this command. But the PSoC Creattor 4.4 is telling me the following error:
masterI2C.h:68:9: error: conflicting types for 'WriteCommandPacket'
uint8_t WriteCommandPacket(uint16_t cmd);
The strage thing that i can use this type inside of the functions
Can someone help me out?
Bluetooth connection to the Raspberry Pi
I am using a CY8CKIT-062-WiFi-BT with ModusToolbox and would like to transfer measurement data to the Raspberry pi.
The possibility from one KIT to another would not be bad either.
I can't find any suitable examples.
AnyCloud BLE Environmental Sending Service is very comprehensive and you cannot see how CySmart accepts the data. 2 bytes are transferred and then?
Must WICED modules still be used in the programs. I would like to use only "ModusToolbox" and its components.
Can one show me examples for the transfer of floating point values via BLE.
I am getting frequent failures where Cy_BLE_GATTS_SendIndication() returns CY_BLE_ERROR_INVALID_OPERATION .
I'm fairly certain it's not caused by the BLE stack being busy because I check the stack before call the indication function:
( cy_ble_busyStatus[cy_ble_connHandle.attId] != CY_BLE_STACK_STATE_FREE )
I also set a breakpoint in my genericEventHandler() at case CY_BLE_EVT_STACK_BUSY_STATUS, but that event is never received.
I've stepped through the code as far as the call to Cy_BLE_GATTS_Indication(¶m), but I can't find any source code for this function and the disassembly is not very enlightening. Does anyone know where this source code is?
After I receive CY_BLE_ERROR_INVALID_OPERATION , I can't recover and keep getting that error until I restart the MCU. I am trying to reset BLE as shown below. No errors returned, but it doesn't help.
cy_ble_initVar = 0u; // needed to let Cy_BLE_Start do initialization
I am using PDL 3.5.1. BLE is configured in Peripheral role and Dual-Core mode (controller on CM0).
Any ideas are appreciated.
We are designing a board using the MCU CY8C6247FTI-D52T.
1 x UART = SCB7, TX - P1, RX - P1
2 x I2C = SCB5, SCL - P5, SDA - P5
SCB8, SCL - P6, SDA - P6
16 x GPIO
3 x Analog Read = P10, P10, P10
1 x Analog Write = P10
SWD is the debugging interface. -
SWDIO - P6
SWCLK - P6
SWO - P6
32KHz RTC OScillator - P0, P0
High-speed oscillator - P12, P12
The schematic is attached herewith.
Please let me know if there are any mistakes.
I am trying to include mbedtls library for my project in MTB. I am facing the below error when I build the project.
Replacing true to 1 or making the declaration const is leading to more number of unrelated errors. I am not sure how to fix this problem. Is mbedtls not a supported library for this project or board?
If yes then how do I go about solving this issue?
I have attached the error log of the console.
Device used: CY8CKIT-064S0S2-4343W
Project: AnyCloud_BLE_CTS_Server - First release version (GitHub - Infineon/mtb-example-anycloud-ble-cts-server: This code example demonstrates the implementation of a simple BLE GAP Central - GATT Server with Current Time Service using the Cypress Combo (Wi-Fi+BT) SoCs.)
Any sort of help will be greatly appreciated 🙂
Thanks and Regards,
Aditi PrakashShow Less
I am using the CY8CPROTO-062-4343W and am attempting to design a module that takes BLE data from several devices and then passes that data along via MQTT. I am trying to use the M0 core for BLE as this is battery powered and I understand this saves quite a bit of power. The issue I am having is that despite starting with any example (BLE or WiFi or dual core) when I try to pull in the libs from the other projects I end up with many includes or build errors. I am using ModusToolbox 2.4
Is it possible to get a shell of a project with these libs that will build?
I have tried copying every file over in the workspace and updating the Makefile to include anything from one Example program to the next but I still get many of these errors even when I run the Lib manager 1.4 to update.
./libs/psoc6hal/include/cyhal_hwmgr.h:61:10: fatal error: cyhal_hw_types.h: No such file or directory
/mtw/Empty_PSoC6_App/build/CY8CKIT-062-BLE/Debug/CM4/Source_Files/linkedList.o] Error 1
make: *** [libs/psoc6make/make/core/main.mk:414: secondstage_build] Error 2
Using the PSoC 63 series bluetooth le phy/stacks, are there any ways to distribute a somewhat precise clock between 3+ devices?
Something like a light-weight 'over the air' precision time protocol. Preferably connectionless.Show Less
1. Where can we find the BT SIG Declarations / QDID for the latest stack?
2. Also wonder how the bless / api layer corresponds to the listing itself?
3. Where can I find the release-number and change-notes for the latest BT stack?
We are using the PSOC 6 - CY8C63x7 Architecture.
We found on it's technical reference manual an possible option to switch on and off the JTAG(DAP) connection.
It can be found on page 136 -
"The second bit, CPUSS_AP_CTL.xxx_ENABLE, is a regular
read/write bit. This bit also resets to zero and is set to ‘1’ by
either the ROM boot code or the flash boot code depending
on the life-cycle stage. This feature can be used to block
debug access during normal operation, but re-enable some
debug access after a successful authentication"
1. Is this feature really possible?
2. Is it enabled/disabled only from the bootloader?
3. Is there an option to enable/disable JTAG connection from the user application space?
Appreciate your help!
I'm trying to create a secure BLE application. I see the following comment in the docs for Cy_BLE_GAP_GenerateSetLocalP256Keys, "If this function is not called before pairing process starts, the BLE Stack will use a debug public-private key pair defined in Bluetooth Core specification.".
Having a well known private key does seem like a security problem.
I don't see any sample code that calls this function. I can imagine the following implementation might be correct, but with security code like this its hard to know whether it is secure and not if it just works. I'd much prefer a known good sample.
case CY_BLE_EVT_STACK_ON: Cy_BLE_GAP_GenerateSetLocalP256Keys(); delayAdvertStart = true; // don't StartAdvertisment until keys set break; case CY_BLE_EVT_GAP_GEN_SET_LOCAL_P256_KEYS_COMPLETE: Cy_BLE_GAP_SetLocalP256Keys((cy_stc_ble_gap_smp_local_p256_keys_t *)eventParam); if (delayAdvertStart) Cy_BLE_GAPP_StartAdvertisement(CY_BLE_ADVERTISING_FAST, 0u); delayAdvertStart = false; break; case CY_BLE_EVT_GAP_DEVICE_CONNECTED: // For robust security Cypress recommends every pairing (successful or failed) attempt to update public-private key pair Cy_BLE_GAP_GenerateSetLocalP256Keys(); ... break; case CY_BLE_EVT_GAP_DEVICE_DISCONNECTED: // For robust security Cypress recommends every pairing (successful or failed) attempt to update public-private key pair Cy_BLE_GAP_GenerateSetLocalP256Keys(); ... break;
Here is a system sample program hello_world. The sram usage rate of the program after the default compilation is too high, I now want to reduce the sram usage volume. I have tried to delete some unused libraries in the library manager, but it seems to have no effect. May I ask this How to solve it