PSoC™ 4 Forum Discussions
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 LessHello,
can me somebody help with uart - speed?
When I set up the speed of uart to 19200bd, all is ok.
When I set up the speed of uart to 115200, I have a problem with receiving the characters. When I send characters from PC, uart interrupt detects twice more character.
For example:
Send from PC: HELLO
Receive in processor: H, null,E,null,L,null,L, null, O, null. Between characters is received the character: 0 (dec). I use the interrupt:RX FIFO not empty.
But in 19200bd, processor does not receive the character 0(dec).
The uart actual speed is 115196bd (The CLK of processor is 48MHz).
I tried to change Oversampling, CLK of processor, Stop bits, but everything does not work.
Thank you for help:)
Show LessFile: CE202479
Download From:Cypress.com
-------------------------------------------------------------
When I rebuid it, err. produced.
Hlp,Pls!
Show LessHi
I want to configure LM35 pin on the CY8CKIT-042-BLE.How to configure and make that work on the board?
Can i have any similar code working with the Analog pins on the BLE kit.
Regards
Srujani
Show Less
I have been using CYBL10161-56LQXI where currently I am working over the BLE v4.2.
I have a question about the data that we store in CYBLE_EVT_GATTC_HANDLE_VALUE_NTF.
What I know till now is about CyBle_GattsNotification() that it is a non-blocking function and what it does.
I have save the data to be sent to the client over, CYBLE_GATTS_HANDLE_VALUE_NTF_T my_variable; // my declaration
and in some function this is what I use,
my_variable.value.val = MyData;
my_variable.value.actualLen = length;
my_variable.value.len = length;
my_variable.attrHandle = charAttrHandle;
So, my question is, do we need the memory that we are using to set up the descriptor(my_variable) to exist after my call returns? As right now I am saving it on the stack, which means at some point I am going to lose it.
Dharav
In single channel mode for the SAR_ADC, ( psoc 4m ), the max value appears to be 2047. This is a 11 bit value. It looks like the a/d is still acting like the a/d is running in differential mode, ie -2047 to 2047. Sometime the ground measurement returns -1, which seems to indicate that a differential mode measurement is returned.
Is there a way to have the A/D return 0 to 4095, which is a 12 bit a/d range.
Show Less