PSoC™ 4 Forum Discussions
text.format{('custom.tabs.no.results')}
I'm trying to build a device which has a single device SPI plus I2C devices. I want to use the CYBLE-224116-01 module (BLE 4.2 + PA/LNA) -- but what I say below also applies to the BLE 4.1 version, CYBLE-224110-00. I'd like to have SWD available for programming and debugging.
But I don't see how to make it work. Because:
1. SCLK 0 is only available on p0.7, which is needed for SWD, or p1.7, which doesn't come out of the module.
2. And you can't use SPI on SCB1 at all, since SCB1 MOSI does not seem to come out of the module on ANY pin.
To get around this, I'd have to add jumpers for "programming mode" in order to program, and wouldn't be able to use the debugger while keeping SPI live. This seems like a serious oversight, and will both make production programming and development more annoying than necessary.
Could things really be this screwed up?
Show LessThe only way to program the module is the PSoc Creator? I need that a user can change the bluetooth name without use the PSoc Creator.
Is it possible? How can ask at bluetooth module to change the name?
Show LessHello,
Can some one explain to me how exactly can I create the following behavior?
I want that any client that wants to connect to a peripheral, server device to be asked a password provided in advance and only when the correct password is given to connect, see the profile,etc. Next I want that the client to be able to make a pair action to the device and every time the device is near to connect automatically to it. I know that some parts of this behavior should be accomplish by the client like the automatically connection to the device but I am aware that something should also be done in peripheral which is a PSOC 4.
I already go through the examples like privicy(017), oob pairing(032) and bonding (015) but somehow I cannot fully understand them to implement my scenario. Also it would be great if you can also explain the state(event) in which a particular action should take place. For example I used CyBle_GapFixAuthPassKey (1, 123456); in CYBLE_EVT_STACK_ON and I was able to pair in CYSmart with this code but I am not sure this is all. My Ble is set as Mode 1 security Authenticated pairing with encryption and I/O capabilities KeyBoard and Display(even if my device doesn't have such, I personally am not sure why are those used) and Bonding.
Thank you!
Show LessHi ,
I'm using PsoC 4.0 BLE and CY8C4247-LQI-483 ,I'm connectiong the sensor DS18B20 water proof sensor,I'm using the code and screenshots below.I'm getting the build succeeded and able to program,but not able to see the temperature output on UART.I have made the changes in UART (115200,57200) but still I can't find the output.
In the code the top design is for CY8C4245AXI-483 ,I have made the device selector to CY8C4247-LQI-483,can able to build and program the code.I'm getting the warning of Unable to locate and customize component 'PSoC_4_Pioneer_Kit' used in schematic.Can I know why I'm not able to get the data on UART.Can I know the wiring too?Thanks in advance.
Regards,
Radhika.
Show LessHi all,
I am programming Esp8266 with usb to ttl converter. For that my compiler is Arduino ide. Now I want to program Esp with psoc4. Firstly I think 4 dollar programmer project which is in this link http://www.cypress.com/knowledge-base-article/using-cy8ckit-049-program-another-psoc-4-kba93541. After that I tried to use bootlader component but I really confused.
Are there anyone who exprience this or have any idea ?
Thanks
Burak
Hi,
Is it possible to program the CY8CKIT-049-4245AXI development kit via bluetooth ?
The plan is to break of the programmer part, connect the RX and TXD pins P4.0 and P4.1 to the TXD and RXD pins of the bluetooth module HC-05. The programmer software on the PC connects to the COM port (enumerated) of the computers bluetooth.
Is the above plan workable ??
I just want to replace the programming wires to the kit with bluetooth.
The entire system works off 3.3 VDC.
I tried the above scheme but the programmer software timed out always.
Please help
thanks
a
Show LessWe are using a CYBLE-022001-00 module and I need 2 ADC SAR on the design. However, when I perform a build the error indicates 2 clocks are required and 1 is available.
Any way around this?
Show LessI am trying to port the library provided by Adafruit (https://github.com/adafruit/Adafruit-PWM-Servo-Driver-Library) to use it in my project.
This library is intended to be used with PCA9685 chip, which provides 16 pwm outputs by the use of the I2C protocol.
I already have a board from adafruit and tested with an arduino and their library, it works fine. I tried to do the same with psoc but I guess I don't ported it well because it is not working (nothing happens when I try to make a servo to work.
I attach you the project so you can check my code and give me some ideas. I am using the first address (6 different modules can be added. The first one is 0x60, it is wrong in my project but result is the same fixing it).
Show LessI am not sure about how this works. I have never tried to run a program with BLE before I think.
I have a program which I have to update. I modify some things (nothing related with ble behaviour). things like: now this sketch controls 5 motors and it has to control 10, not i has 2 force sensors and it has to control 3... This kind of stuff. BLE file is almost equal. I just add notifications for new variables.
I have a problem when I try to run the program in my pioneer development board (ble version). It hangs and gives an error:
"Debugger exited unexpectedly during run. Encountered error (Target disconnected See output window for more information.)"
Clicking over Show more details" gives:
"There was an unhandled error during the debug session. This has forced the debugger to shutdown. Try again."
I am testing it without anything connected. Just to see if it works. So maybe this is the problem and I need to connect everything to make it working.
As soon as main function starts, InitializeSystem is called:
void InitializeSystem(void)
{
CyGlobalIntEnable; //Activate mask of interrupts
CyBle_Start(CustomEventHandler); //Init BLE and set event handler function
ADC_IRQ_StartEx(ADC_ISR); //Interrupt for reading ADC
isr_button_StartEx(MyISR);
/*Set vector for WDT interrupt to desired function. This function will be in charge of updating values to be sent by BLE*/
CyIntSetVector(WATCHDOG_INT_VEC_NUM, &WDT_INT_Handler);
InitializeWatchdog();
OPA_Start(); //Start OPA
OPA_Enable();
ADC_Start(); //Start ADC
ADC_StartConvert();
//CyDelay(1000);
}
I have read on other post about in the latest version of BLE watchdog is not used. It is used something called BLESS??. Maybe this is the problem. The current version of my software was built with an older version of PSOC and components. And now I updated the whole project to the latest one.
My problem is that if I set watchdog as active (in Initialize function), that function never ends. And in case it does, something goes wrong and it crashes.
I would want the code to reach this line in main():
for(;;) {
CyBle_ProcessEvents();
...
I am developing a pcb to keep all my stuff there but unitl I have it printed, I have to test my code in this board.
Show Less1/ I am using the Using the CY8CKIT-042 BLE board, with the CYBLE 212019-00 microcontroller.
2/ I’ve created a workspace with :-
The following 2 projects :-
BleFindme01, BLE_OTA_upgradeableStckExample_Launcher01and BLE_OTA_upgradeableStckExample_Stack01.
3/ When I build the project using PSoc Creator 3.3 ( with service pack 2) on a laptop using windows 10, there is no problem. I can upgrade over the air with CySmart 1.2 etc.
4/ When I copy the workspace to my PC ( windows 7) & use PSCoc Creator 4.0, the software does advertise & when I connect the Green LED goes off, correctly.
5/ With the Green LED on, I press SW2, which turn the RED LED on. However, my mobile phone APP sees the over the air update ‘message’, but CyCSmart does not.
I then press the reset button, the blue led flashes momentarily, the red led comes on .
My mobile phone again sees the update message, but CY Smart does not..
The only way that I can get the microcontroller to advertise ( green LED on) is to reprogram the device through Psoc.
6/ The version of CYSmart is 1.2.0.122 on both PSs.
7/ Where is the problem ?
Show Less