PSoC™ 4 Forum Discussions
text.format{('custom.tabs.no.results')}
Hello once again everybody!
Today I am trying to program a PSOC CY8KIT-049_42 using another identical device.
I am following the method shown here: Using the CY8CKIT-049 to Program Another PSoC® 4 - KBA93541
yet there is a major problem!
When I try to build the project a plethora of errors springs up! They mainly seem to be complaining about the connections of a component in a cysh file.
When I navigate to the error it is apparent that the component has resized / been moved or something and when I move the block down so that clk aligns with clk, sda with sda etc I am left with some interrupt blocks connected together which throw their own error. I've tried connecting the line to the nearby available pins and none of them work.
My next move was to try 'updating' components to the original versions and this did not seem to work.
Deleted everything and downloaded again, and now the project compiles (With a tonne of warnins about the clock being outside its acceptable tolerance).
HOWEVER when I try to bootload (from the arm GCC 541 folder, the 471 folder is empty) I get
03:29:53 PM - Selected device: USB Serial Device (COM9) - UART
Generic Serial Port
03:31:25 PM - program Started
03:31:25 PM - The flash row is not valid for the selected array.
03:31:25 PM - program failed in 50 ms.
Does anyone know what I need to do to get this project working or better still,
DOES ANYONE JUST HAVE THE DAMN HEX FILE?
Hello,
I change LED blink period by using OTA external memory, I perform it with CYBLE-212006 module on custom PCB.
After hardware upgrade is completed through CySmart, the device isn't reset automactically and both LED and Bootlading_LED turn off.
I run in debug mode and verify Bootloader Host sent the "BootloaderEmulator_COMMAND_EXIT" command.
The code I use is below,F-RAM on custom PCB is MB85RC1MT and I2C address is same as the example.
VIO1 is connecting to F-RAM's VDD, I turn on VIO1 after enable the bootloader service.
Please help me to solve this problem.
Thanks.
Show LessHi,
I need to publish my public address in the device name so that I can connect to my IOS app .
I'm currently able to publish the address as follows: "00:05054885?" and it able connect to the app
this the code i use:
cyBle_deviceAddress.bdAddr[0] = (uint8)bdAddrLoc;
cyBle_deviceAddress.bdAddr[1] = (uint8)(bdAddrLoc >> 8u);
cyBle_deviceAddress.bdAddr[2] = (uint8)(bdAddrLoc >> 16u);
char DeviceName[16] = "NM2 ";
// convert the values to ascii and store in the device name field.
DeviceName[4] = ((cyBle_deviceAddress.bdAddr[5] & 0xF0) >> 4) + 48 ;
DeviceName[5] = (cyBle_deviceAddress.bdAddr[5] & 0x0F) + 48 ;
DeviceName[6] = ((cyBle_deviceAddress.bdAddr[4] & 0xF0) >> 4) + 48 ;
DeviceName[7] = (cyBle_deviceAddress.bdAddr[4] & 0x0F) + 48 ;
DeviceName[8] = ((cyBle_deviceAddress.bdAddr[3] & 0xF0) >> 4) + 48 ;
DeviceName[9] = (cyBle_deviceAddress.bdAddr[3] & 0x0F) + 48 ;
DeviceName[10] = ((cyBle_deviceAddress.bdAddr[2] & 0xF0) >> 4) + 48 ;
DeviceName[11] = (cyBle_deviceAddress.bdAddr[2] & 0x0F) + 48 ;
DeviceName[12] = ((cyBle_deviceAddress.bdAddr[1] & 0xF0) >> 4) + 48 ;
DeviceName[13] = (cyBle_deviceAddress.bdAddr[1] & 0x0F) + 48 ;
DeviceName[14] = ((cyBle_deviceAddress.bdAddr[0] & 0xF0) >> 4) + 48 ;
DeviceName[15] = (cyBle_deviceAddress.bdAddr[0] & 0x0F) + 48 ;
CyBle_GapSetLocalName(DeviceName);
}
But I have to translate the symbols ( : , ? ) into letters, I used the following code to get the public address in the correct format and got this : "00A05054885F" but now it does not connect to the application
char inline ReadDataName(uint8_t num){
char ch = num + 48;
if(ch > 57){
ch += 7;
}
return ch;
}
---------------------------------------------------------------------------------------------------------------------------
cyBle_deviceAddress.bdAddr[0] = (uint8)bdAddrLoc;
cyBle_deviceAddress.bdAddr[1] = (uint8)(bdAddrLoc >> 8u);
cyBle_deviceAddress.bdAddr[2] = (uint8)(bdAddrLoc >> 16u);
char DeviceName[16] = "NM2 ";
// convert the values to ascii and store in the device name field.
DeviceName[4] = ReadDataName((cyBle_deviceAddress.bdAddr[5] & 0xF0) >> 4) ;
DeviceName[5] = ReadDataName(cyBle_deviceAddress.bdAddr[5] & 0x0F) ;
DeviceName[6] = ReadDataName((cyBle_deviceAddress.bdAddr[4] & 0xF0) >> 4) ;
DeviceName[7] = ReadDataName(cyBle_deviceAddress.bdAddr[4] & 0x0F) ;
DeviceName[8] = ReadDataName((cyBle_deviceAddress.bdAddr[3] & 0xF0) >> 4) ;
DeviceName[9] = ReadDataName(cyBle_deviceAddress.bdAddr[3] & 0x0F) ;
DeviceName[10] = ReadDataName((cyBle_deviceAddress.bdAddr[2] & 0xF0) >> 4) ;
DeviceName[11] = ReadDataName(cyBle_deviceAddress.bdAddr[2] & 0x0F) ;
DeviceName[12] = ReadDataName((cyBle_deviceAddress.bdAddr[1] & 0xF0) >> 4) ;
DeviceName[13] = ReadDataName(cyBle_deviceAddress.bdAddr[1] & 0x0F) ;
DeviceName[14] = ReadDataName((cyBle_deviceAddress.bdAddr[0] & 0xF0) >> 4) ;
DeviceName[15] = ReadDataName(cyBle_deviceAddress.bdAddr[0] & 0x0F) ;
CyBle_GapSetLocalName(DeviceName);
}
Does anyone have an idea what could be the source of the problem?
Thanks
Hello PSoC Community,
First off, thank you for any help the community is able to provide.
We're looking to create a basic wireless tilt sensor system. Essentially we have a detector unit and an indicator unit. The detector unit is composed of a CYBLE-012011-00, on/off tilt sensor, and coin cell battery. This unit detects a tilt on a GPIO sensor and transmits the position to the indicator. The indicator unit is composed of a CYBLE-202007, an LED, and a hardwired power supply. This unit receives tilt information from the detector and turns on an LED corresponding to the tilt position.
We've developed the core of the application, that is to say the units automatically boot, establish communication, and transmit/indicate position. However we are having trouble decreasing the power usage, in particular on the detector unit. I’ve based most of our application on the Cypress 100 Projects in 100 Days, specifically project #47. This project automatically connects two modules and passes basic data along while switching one of the modules into low power mode. We’ve stripped out the ADC portion and are just using a GPIO. The code for this project has the data transmission set at a very high speed, on the order of milliseconds.
I am having trouble however trying to save power and slow down the amount of data sent between the two devices. The code for our the detector uses the same power scheme as listed in the ‘accelerometer’ code from project #47. It looks like they have the power savings setup, but I can’t seem to figure out how to save more power. Based on the code I’ve found, the module should go to sleep and wake from the BLE_bless_isr, which is governed I think by the connection interval. I’m assuming if I can slow down the connection interval (or similar timing parameter) then I can have the module remain in sleep longer. I’ve tried requesting connection parameters from the tailgate using the code illustrated in the power savings documentation, however it seems the central/cab is going to ignore this. In all the examples I've found the central manages this connection interval but requires input from say the Cypress Dongle or the iPhone dictates the position
I was wondering if anyone would be able to provide some direction? Am I on the right track with the power savings? And if so, how can I slow down the connection interval? I can’t seem to find specific code or the right search terms to find this.
Thank you for your help,
Alex
Show LessHi,
I apologize for this absolute beginner topic, but in the last days of my research I get more and more confused 😉
I have to do a (little) project with the PSoC4-BLE. Up to now I am familiar with (some) of the PSoC-Creator examples (and a lot of helpful videos) and I am able to receive data via BLE within the CySmart emulation tool. For example I can change a value in the emulation tool by using the CapSense on the development board.
But how do I exchange data with any self-made windows program??? I just need a very simple GUI just to see if a capsens has been touched or to send a value for changing the onboard LED color…
I didn’t find any Python, C or even Java library to include so that I can use the windows API. Can I program such a GUI with the WICED SDK? Or do you know any useful IDE that provides the possibility to communicate with the CY5677 USB Dongle. (A LabView-VI would help as well, but I didn’t find that at all.)
It would be perfect if I could get some code to start learning how to create a windows based communication to PSoC 4 via BLE.
I just get stuck in my research about the possibilities of the PSoC BLE…
Thank you very much,
Jens
Show LessHello.
Has anyone looked at figure 12, of AN86233, where current measurements, in both Deep sleep and Active, are performed?
It would be nice to know the Y-axis and X-axis scaling factors, which are not illustrated, in figure 12. Considering that measuring a few micro-amps and thousands of micro-amps, using the same Y-axis scaling factor might lead to inconsistent results.
Please see comments below.
Kind regards,
Andrew Mugisha
Show Less
Hello,
I have cy8ckit-049-042xx. I want to use it to program another cy8c4245axi-483.
So, according to datasheet, I have removed the r6 resistor and placed the jumper.
Also, by using 5 jumpers, I have connected the programming pins to another circuit (which is a touch panel having cy8c4245axi-483 IC), so as to program that IC.
But instead, I end up programming the IC on the board itself rather than that on the touch panel.
I have attached the picture of the circuit arrangement.
Need your help.
Thanks.
Show LessHi All!
I am currently using CYBLE 214009-00 device and using it as a broadcaster. I am using the cycling sensor example project and have slightly modified it. I am using C# code written with the Cysmart API to receive packets. I am able to receive packets but to do so it requires that my CYBLE chip is on for at least ~600ms. I wanted to minimize this time, and I have set my minimum advertising interval to 20ms over 3 channels. Does anyone have any suggestions for minimizing this time?
Best,
Rohan
Show LessFor now the mono-core version of the Psoc6 is not yet available, also a Psoc4 may be a suitable low power solution.
When the energy efficiency is well documented for the two Cortex M cores integrated in the Psoc 6 I cannot find any number for the Psoc4.
What is the efficiency (µA/Mhz) of a low power PSOC4 (if a low power version exist)?
Show LessHi,
I'm brand new with the PSoC and even unsure how to use this community or where I could ask simple questions for beginners like the following one...:-(
I thought a capsense could be used like a simple switch with the PSoC4 MCU. Why do I only find capsense products with integrated controlers? Didn't the PSoC4 controle everything about the (hardware) capsens?
(And where can I buy the simple (capsense-) sensor to connect it to my CYCKit-042-BLE pioneer borad ?)
Thank you very much!
Show Less