PSoC™ 4 Forum Discussions
Is it possible to use PWM whilst the processor is in deep sleep? i.e setting up PWM whilst the processor is active and then leaving it running?
Show LessHello
what is use of two API
RTC_SetAlarmMask()
RTC_GetAlarmMask()
actually I am trying to compare current time and alarm time. If alarm time and current time match ,alarm occur. If both time does not match , no alarm occur. I am not sure but I think I have to use RTC_GetAlarmMask(). so that we can compare both time
Show LessHey guys,
following situation: I have a blood pressure device that I want to read out. Currently my firmware connects to the device and I am able to read out some device information using the UUIDs given in the SIG and CyBle_GattcReadUsingCharacteristicUuid API. I'm not able to sniff through the device using CySmart. Therefore I don't know any handles. Is there a way to receive them using the PSoC Creator?
Currently I'm working with the PRoC.
Thanks for your help.
kind regards
Lars
Show LessHi, i am trying to debug with PSOC4200 BLEkit PIONER BASEBOARD, but i have some problems,it seem that PSOC creator doesn't run the program, i press halt key and doesn't do anything. I place breakpoints and doesn't occur anything.
I have been thinking, about the program doesn't work properly with big BLE codes....
Some experiences whit that?
Thanks for all
Carlos
Show LessHi,
I come from the Alt*ra world (FPGAs with soft Nios processor), so this is my first look at using something different..
Aside from a few quirks, like the 'Find All Active References' not finding all the active references, I think the PSoc Creator is a very good tool... the design flow is intuitive and user-friendly. I still haven't played with it enough to know if I I'll be able to implement custom logic in Verilog, but I like what I see so far.
My biggest concern at the moment however, is (2) issues with the Arm debugging for the Motor Kit. ( I'm using the Pioneer Kit with the Sensorless BLDC example, C:\Program Files (x86)\Cypress\CY8CKIT-037 Motor Control EVK\1.0\Firmware\Example Projects\Sensorless BLDC Motor Control).
#1 Once 'CyGlobalIntEnable' is executed. I can no longer single step in/over any code. Instead stepping always puts me in the 'CY_ISR(PWM_Drive_ISR)' . To get around this, I use breakpoint with 'run' resume only (no stepping). Other times, the program will execute (Led D9 will blink), but no breakpoint (including the one in CY_ISR) ever hits.. instead when I pause it, the code is in 'CyDelayCycles'.
#2 The reason I'm debugging is because the motor fails to run, presumably because the state machine in the code never changes from STOPPED to NORMALRUN. What's strange however, is that the watch window shows all the correct variable values needed for it to execute BLDC_Start(), i.e. No Error, runFlag==TRUE, and restartFlag==TRUE. See attached animated gif.
<CODE>
if((BLDC_Control.errorCode == NO_ERROR) && (BLDC_Control.runFlag == TRUE) && (restartFlag == TRUE))
{
BLDC_Start();
}
</CODE>
Any suggestions what I could be doing wrong to cause this? I'm using the Creator 3.2 on the Pioneer Kit, running the example with no changes.
Show LessHi, i am new here, i have PSOC4200 BLE, and i am developing a firm with i need to send some data and read other data. Send data over sensors, and receive data about diferent mode of operation.
I have an android APP, to manage this information. My board asume the role of GATT Server Peripheral. Send data over Custom Service, and the APP receive this information and show it.
The UUID of the services, on the APP are:
-------------------------------------------------------------------------------------------------------------------------------------------------
public class SampleGattAttributes {
private static HashMap<String, String> attributes = new HashMap();
public static String VALORES_REGISTRO = "0000fff0-0000-1000-8000-00805f9b34fb";
public static String CLIENT_CHARACTERISTIC_CONFIG = "00002902-0000-1000-8000-00805f9b34fb";
public static String VALORES_SERVICIO_POSICION = "0000fff0-0000-1000-8000-00805f9b34fb";
public static String VALORES_CARACTERISTICA_FRONTAL = "0000fff1-0000-1000-8000-00805f9b34fb";
public static String VALORES_CARACTERISTICA_TRASERO = "0000fff2-0000-1000-8000-00805f9b34fb";
public static String VALORES_SERVICIO_MOTOR = "0000fff0-0000-1000-8000-00805f9b34fb";
public static String VALORES_CARACTERISTICA_MOTOR = "0000fff3-0000-1000-8000-00805f9b34fb";
public static String VALORES_SERVICIO_ALARMA = "0000fff0-0000-1000-8000-00805f9b34fb";
public static String VALORES_CARACTERISTICA_ALARMA_FRONTAL = "0000fff6-0000-1000-8000-00805f9b34fb";
public static String VALORES_SERVICIO_MODO = "0000fff0-0000-1000-8000-00805f9b34fb";
public static String VALORES_CARACTERISTICA_MODO = "0000fff7-0000-1000-8000-00805f9b34fb";
public static String VALORES_CARACTERISTICA_NOTIFICACION = "0000fff4-0000-1000-8000-00805f9b34fb";
static {
// Sample Characteristics.
attributes.put(VALORES_REGISTRO, "Device Data");
attributes.put("0000fff3-0000-1000-8000-00805f9b34fb", "Valor Guardado");
}
-------------------------------------------------------------------------------------------------------------------------------------------------
Trying to capture alternate edges and measure time difference (for MPH calc). For now, just using a delay as a hypothetical; however, the time difference is all over the place.
Attached project was created for the PSoC4 - BLE Pioneer Kit and generates UART output. Any help on what I'm doing wrong would be greatly appreciated.
Thanks!
Show LessHi,
I am having major problems with the CySmart Android app disconnecting from the BLE kit, and only reconnecting on cycling the power on the BLE kit. If I take the phone out of range, and come back into range, it can never re-find the kit, I have to restart the kit. I can see this being an issue in a product...
Anyone else have this issue? If so, any ideas on how to fix it? I have a case, but it is going slower than molasses.
My phone is a Moto X with Android 4.4.4, Kernel 3.4.42.
Project attached - though the problem seems to be for all projects.
Regards,
Tom
Show Less