PSoC™ 4 Forum Discussions
Now I am developing two models with CapSense feature. These two models share same source code. But the CapSense sensitivity is different. So I want to define different thresholds according to macro definition. I find the thresholds are const type.
const uint16 CapSense_fingerThreshold[] = {
40u, 40u, 30u, 60u, 800u,
};
So I modify the source code like this. So I can redefine the threshold.
const uint16 __attribute__((weak)) CapSense_fingerThreshold[] = {
40u, 40u, 30u, 60u, 800u,
};
So I can redefine the threshold.
#ifndef MYLAR_COVER
const uint16 CapSense_fingerThreshold[] = {
60u, 60u, 60u, 90u, 800u,
};
#endif
So I suggest Cypress to improve the PSoC creator. So that it could generate the source code with weak attribute.
Show LessHi:
Well, I am a little bit new with my PSoC 4 BLE Kit (CY8CKIT-042-BLE), and the other day I saw that I have in my kit a F-RAM with a memory capacity of 128 KB, and I can access to this memory through I2C lines in the P5[0] and P5[1] of the PSoC 4 Module. This is a very interesting resource and I am willing to use it. I am currently planning to use this module to store great amounts of data bytes using the max velocity of transmision, and in this way I can save the SRAM of the PSoC 4.
I already read the I2C component datasheet, and I have an idea of how I can store the data on the F-RAM, I think that is needed to use the following API's :
- SCB_I2CMasterWriteBuf()
- SCB_I2CMasterReadBuf()
However, I don't understand because this API send a pointer to the slave address, in this case 0x50, and the number of elements of the buffer (the number of elements of the byte array that I am sending, I think); however, I don't have a clear of which is the best Transfer Mode. Furthermore, in the read buffer part I don't understand in which pointer de F-RAM save the data I have written, Would it be the same pointer name of the array that I sent from the PSoC?
Again, I would thank all your help and advice that you can bring me.
Martin
Show LessHi,
I am having an issue with a PSOC 4 product that has a terminal block for power and communication on a custom board. When I hot swap the terminal block, it kills the microcontroller, I cannot even program it again. When I power cycle using the power button on a power supply, it does not affect it. The power input is 12V, which goes to a MIC2920 5V LDO, then to the controller. There is not much more to the circuit besides a reverse voltage protection diode.
Any ideas?
Thank you,
Tom
Hi,
I am working on talking to the dongle through a COM port, but got nothing back from the dongle through serial port as of yet.
Based on CySmt_ProcessCommands() function in CySmt_protocol.c of BLE_Dongle_CySmart example project, an invalid operation response should be send with
CySmt_SendCommandStatus(currentCmd->opcode, CYBLE_ERROR_INVALID_OPERATION);
Then, why couldn't I get anything?
It would be much easier to get hex codes from the dongle however nothing has been received.
Could anyone help me get something back from the dongle through serial port?
Thank you!
Show LessHi All
I am working in a direction to measure negative voltage through SAR ADC of PSoC4. Is it possible to do this? If yes, then how?
Thanks and Regards
Shaunak
Show LessHi, i just need a simple communication for my modules. I just want my module to wake up with am external interrupt then send its device id to another module. I searched defined profiles but they are all specified at some application. What do you suggest me to do that? It must just send its device id, is there any defined profile which simply does that job?
Show LessHi everyone,
I'm pretty new to the whole Bluetooth topic and even to programming any ARM processor, so please excuse if the following questions sound a bit "simple" :-). I searched through the forums and wasn't able to solve the following problem:
I simply want to read out an attribute, that I've created in the BLE component in PSoC Creator (it's called BTCommand and has length 12).
So here's my code:
CYBLE_GATT_HANDLE_VALUE_PAIR_T val_handle;
CYBLE_GATT_DB_ATTR_HANDLE_T data_handle;
CYBLE_GATT_ERR_CODE_T error;
data_handle = BTCommand_HANDLE;
uint8 data_length = 12;
uint8 val[data_length];
val_handle.attrHandle = data_handle;
val_handle.value.val = val;
val_handle.value.len = data_length;
error = CyBle_GattsReadAttributeValue(&val_handle, &cyBle_connHandle, CYBLE_GATT_DB_LOCALLY_INITIATED);
So, the first time i execute the code, it seems to work and in the variable called val, i can afterwards see the content of the attribute (that i've created). So I guess it basically works.
The problem is that right after the execution, the processor get's into a unknown state (or something similar) and actually ends up in the "CySysSleep" routing (and never get's out again). I seems strange to me, since i don't send the module into sleep mode...
The "error" value is "CYBLE_GATT_ERR_NONE" after first execution, so this seems to be correct.
Maybe someone knows how exactly to read out a simple attribute and knows what i'm doing wrong. Would appreciate the help...
Gregor
Show LessIm using PSoC 4 pioneer kit (4200 family). Im new to verilog programing. Can I process an image file in this board? Can someone guide me?
Thanks!!
Show LessI'm working on PSoc 4 BLE. I need to transmit custom data using bluetooth.
So I decided to make a custom profile such as SPP in Bluetooth Classic.
I could make a peripheral(GATT server) device with my custom profile, but I could not make a central device.
There is any example, document about central device with custom profile in Cypress'Web site.
How can I make a central device with my custom profile? Is there any material available for me?
Show LessI am now using CY8CMBR3116 , 12 raw counts is needed.
Get it from DEBUG_RAW_COUNT0 one by one is too slow ,about 500ms delay
and DIFFERENCE_COUNT_SENSORx is only one byte, not enough.
Any suggest or any improve,raw counts is really useful for developer
Thanks!
Show Less