PSoC™ 4 Forum Discussions
Hi,
See the attached image. When I am debugging the project, the processor gets inside an if statement that it absolutely should not be able to. I must be missing something very simple, but this is baffling...
Thank you,
Tom
I'm using the MiniProg3 to program my PSoC4200. In the application the PSoC is powered by 5,21V. The program process fails. Acquiring the PSoC device fails.
In the GUI PSoCProgrammer 3.23. the voltage is displayed to be 5000mV. Because the voltage seemed to be a bit high, I lowered the voltage until it is 4,5V. Programming the PSoC at this voltage works. With higher supply voltage the PSoC device can not be acquired.
Settings: Protocol: SWD; Voltage: 5.0V; Connector: 5p and 10p is tested; Programming Mode: Reset
Next step I tried to use 3,3V supply voltage. The settings in PSoCProgrammer is changed to 3,3V. Flashing the device is working without any problems.
The MiniProg is directly connected via 5cm wires to SWDIO, SWCLK and XRES. Voltages are stable (+/-20mV ripple).
Any idea why the PSoC can not be flashed while running with 5V?
Show LessHello ! I am in trouble on programming cy8c4247 in a customer board. I have installed latest psoc3.2, psoc programmer and mini prog3 driver, but when i push the "program" button in psoc3.2, there are warning tips "Warning: dbg.M0044: There was an error applying settings to the device. The device may be in use by another application." and "Warning: dbg.M0039: There was an error running port acquire: Device can be acquired in SWD/JTAG mode only." I come here for help, how can i fix this problem?
Show LessHi,
According to the documentation for the block, the CYBLE_EVT_GAPP_ADVERTISEMENT_START_STOP event should be called when advertisement starts or stops. But if I run my code with the debugger on my CY8CKIT-042-BLE board, a breakpoint in the event is triggered over and over, with almost no time in between. Can anyone please tell me why this is happening ?
I'm using the attached code on a PRoC BLE module. At this point, there isn't much of my code left. The only thing on my TopDesign schematic is the BLE block (v2.00).
Show LessI've been studying the API documentation and the 100 projects as well as trying some experiments with my own custom service. I'm puzzled by the typical code for handling write events when a custom characteristic supports both read and write. Typically in the 100 projects it is something like:
case CYBLE_EVT_GATTS_WRITE_REQ:
case CYBLE_EVT_GATTS_WRITE_CMD_REQ:
wrReqParam = (CYBLE_GATTS_WRITE_REQ_PARAM_T *) eventParam;
if(wrReqParam->handleValPair.attrHandle == MY_HANDLE)
{
CYBLE_GATT_HANDLE_VALUE_PAIR_T hvp;
uint8 theValue[2];
theValue[0] = wrReqParam->handleValPair.value.val[0];
theValue[1] = wrReqParam->handleValPair.value.val[1];
hvp.attrHandle = MY_HANDLE;
hvp.value.val = theValue;
hvp.value.len = 2;
/* Report data to BLE component for sending data when read by Central device */
CyBle_GattsWriteAttributeValue(&hvp, 0, &cyBle_connHandle, CYBLE_GATT_DB_LOCALLY_INITIATED);
}
Three things puzzle me about this:
- Why is it necessary for application code to write the received value to the database? The API description (and common sense) implies that the stack should do this automatically subject to permission settings.
- Why is it necessary to copy the handleValPair? Why not just specify '&(wrReqParam->handleValPair)' as the first parameter to ..WriteAttributeValue?
- Why is the last parameter to ..WriteAttributeValue ..LOCALLY_INITIATED rather than ..PEER_INITIATED when we are responding to a peer write? As far as I can gather from the documentation this will bypass server permission settings.
Anyone have any insight into this as it is really baffling me!
Show LessIn the example project SCB_SpiCommMaster there are two SPI components, the SPIM (master) in SCB mode and the SPIS (slave) in UDB mode. My question is:
How did the internal pin of SPIM \SPIM:miso_m\ get connected to the external pin P0[1]?
Is there any help file or video clip explaining this step of configuring/routing the SPIM to SPIS?
Show LessHow can can I get a 100ns-increment counter in PSoC 4 BLE for the purpose of time-stamping data samples?
Using a UDB counter, the system complains about clocks and such.
Accelerometer data is acquired via I2C with an interval of about 3.8 ms between data sets. (this is now working)
The "time" is to be read out of the counter and applied to the current data set as it begins to come in.
The data sets are to be shipped to a cell phone via BLE. (this is not working yet)
A data collection run will be a few (maybe 10 or so) minutes long, during which the time stamp generator needs to run without glitches.
How can I make the 100ns counter? It is mainly a question about sources for "count" (10 MHz) and "clock" inputs.
I've used this time stamping plan on other micro controllers, including PSoC 5 (FirstTouch in 2011). Creator 3.2 messes up the TopDesign picture, so I can't view the design info there due to missing obsolete components.
Thanks.
Show LessHello Cypress Community!
I am working with a PSoC 4200 BLE kit and trying to use 2 SCB blocks to configure 2 different UART connections. I want to have one be TX+RX and the other simply be TX.
I am having quite a bit of difficulty getting them to work.
Is it possible to have 2 UART connections?
Thanks
Show Less