PSoC™ 4 Forum Discussions
text.format{('custom.tabs.no.results')}
Our company uses SVN system and everybody checks project out to different directory. I need to add relative path to Build Settings-> Compiler->General->Additional Include Directories in PSoC Creator. . What should its format be?. I m giving example of IAR Workbench.
"$PROJ_DIR$\..\..\folder name\foldername" this format is IAR relative path directory ,how can I do same thing for PSoC Creator.
When I run CE95401(I modified a little) code example in PSoC 4 Pioneer Kit in debugging mode. I put breakpoint to firstline of main. when the device recieves reset , it should return first line again but it doesn't and goes an unknown state . I also put breakpoint to isr_wdt interrupt service routine , it doesnt stop there after recieve wdt reset.
However if I just toggle LED in first line of main and program(not debug) kit works what it is supposed to work
I m asking why the reset doesn't work properly in debugging mode?
I attached my code and Call Stack photo of unknown state
I used PSoC Creator 3.1
Show LessAttached is an image of Table 5. Power Modes System Status from the CYBL10X6X Family Datasheet.
Do I take this to mean that I can not wake up from Deep Sleep every 25ms by the ISR of a timer driven by an LFCLK clock whose source is WCO clk because no code is running in deep sleep?
Here is my code attempt:
CY_ISR(Timer25ms){
Timer_25ms_ReadStatusRegister(); //clears interrupt, found this in component datasheet
if (flop % 128==0)RED_Write(!RED_Read());
godeepsleep=1;
flop++;
}
Main loop is:
while(1){
if (godeepsleep==1){
CySysClkEcoStop();
CySysPmDeepSleep();
CySysClkEcoStart(0);
godeepsleep=0;
}
}
The code executes and flashes LED fine in debug mode (probably can't go to deep sleep in debug or something) but the device goes to deep sleep and never wakes up on its own powered by battery (shows current of 1ua so I know it goes to deep sleep).
Dale
Show LessI had interfaced accelerometer to psoc 4 ble and reading data from it. Now I want to send data to Android app. I got the source code of CySmart app but its more complicated so I was thinking to create android application from scratch. Please suggest me a good starting point.
Thanks.
Show LessThis is probably a stupid question but how to I access my pins in an ISR? (some include file I guess)
I am using the BLE Pioneer Kit with the PSoC BLE Module and the connection example code from AN92584.
I am able to achieve similar connection current measurements as AN92584 but only at 30ms interval wjile connected to CySmart on my iPhone.
In the code I found this, which I believe is where connIntv is set:
#if CONNECTION_UPDATE
if(connected && connUpdate)
{
CYBLE_API_RESULT_T conResult;
static CYBLE_GAP_CONN_UPDATE_PARAM_T hrmConnectionParam =
{
800, /* Minimum connection interval of 1000 ms */
800, /* Maximum connection interval of 1000 ms */
0, /* Slave latency */
500 /* Supervision timeout of 5 seconds */
};
conResult = CyBle_L2capLeConnectionParamUpdateRequest(cyBle_connHandle.bdHandle, &hrmConnectionParam);
if(conResult != CYBLE_ERROR_OK)
{
connUpdate = 0;
}
}
#endif
No matter what values I put in for Min and Max interval, the project just connects at 30ms interval.
I know this because I have a scope across my ammeter on J15 and can see waveforms similar to AN92584 and always 30 ms apart.
What else must I do to set the connection interval?
I tried debugging but I am not real good at that process here yet.
Thanks,
Dale
Show LessLooking at the techinical specs on the Cypress web site of the CY4245, it suggests that it has 4kB of EEPROM memory.
http://www.cypress.com/part/cy8c4245axi-473
Does anyone know if this is real EEPROM or emulated ? If it is real, I can't find any reference to how to use it, only references on how to use emulated EEPROM.
Thanks in advance,
Paul H
Show LessThere is definitely fewer places I can find answers to issues I have here than if I were in the PIC world.
I tried Cypress Document Manager search, Cypress site search and Google search for the error code I get when I build my code (mpr.M0145) and got 0 results.
So I have to bother the good people here again.
First can someone tell me where I could have found the answer to this without a forum topic?
And, here is what I think is the easiest way to show my issue:
🙂 Well that did not work, can't insert jpg, so I attached it.
The .cydwr file shows a valid assigned pin but I am told I can not route to the pin.
1/2 hr on this was enough.
Thanks,
Dale
Show LessI am having a problem where I took a PSoC4 design and am porting it to PSoC4M. When I move the pins to the new location I get the following errors:
...
Analog Routing ...
Analog Code Generation ...
Digital Placement ...
Error: plm.M0046: E2809: Unable to find a valid placement for pins and fixed-function blocks. See the Digital Placement's Detailed placement messages section in the report file for details.
Error: plm.M0046: E2055: An error occurred during placement of the design.
Error: plm.M0046: "C:\Program Files (x86)\Cypress\PSoC Creator\3.2\PSoC Creator\bin/sjplacer.exe" failed (0x00000001)
Dependency Generation ...
Clean Temporary Files ...
Error: cdf.M0005: CyDsFit aborted due to errors, please address all errors and rerun CyDsFit. (App=cydsfit)
--------------- Rebuild Failed: 08/11/2015 14:11:57 ---------------
What report file, and where is it located?
Thanks,
Steve
Show LessI found the issue with Cypress web page security.
When it comes to entering credit card info, the web page stops secure connection.
Be carefull
Show Less