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?
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
There is an IoT device and it will be designed to connect to AWS (Amazon Web Service).
Under this condition, do I need to select a MCU (PSoC_6, CYS0644xx) with Amazon FreeRTOS support ?!
I feel a little confused about...
If I select a MCU (PSoC_6, CYB0644xx) with only FreeRTOS support, dose this mean this IOT device can't connect to AWS ?!
Thank you so much.
I want to use DMA to transfer chunks of data (32 bytes at a time) into a component that I'm implementing with verilog.
I plan to use the control register to transfer the DMA data into the component. One thing I don't understand is, within the veriolg code, does the component know when new data has arrived in the control register? Is there some sort of enable signal or handshake to indicate when a transfer is complete? I can't find this anywhere in the documentation.Show Less
I would like to know where can I find psoc 6 modustoolbox examples to use the analog microphone in the board CY8CKIT-028-sense.
I see from the the board documentation that it includes several microphones. two digital and one analog.
I'm interest in processing data from the analog microphone (Vesper VM1010) using a CY8CKIT-062S2-43012. Particularly in capturing sound signal level after the VM1010 has triggered the interrupt signal. Or is the VM1010 meant to be only as a sound trigger on the board to activate the digital to microphones capture the audio?
Apart from he machine learning example in the documentation, do you have any other modustoolbox example that uses this board ?