Quantcast
Channel: Cypress Semiconductor - PSoC 4 BLE
Viewing all 726 articles
Browse latest View live

ProximityGesturesWithBLE - Unsuccessful - Requesting Help

$
0
0
Forums: 

Hello,

First off, I'm completely new to the PSoC and the world of CapSense so please speak slowly and clearly. ;)

I have a Pioneer development kit with the PSoC 4 module (red board) installed (CY8CKIT-042-BLE).

I also have the 'Shield' (CY8CKIT-024 CAPSENSE PROXIMITY SHIELD) for gesture sensing installed along with the jumper as prescribed in, pp 1-2:

https://github.com/cypresssemiconductorco/PSoC-4-BLE/blob/master/100_Pro...

I grabbed the project from github here:

https://github.com/cypresssemiconductorco/PSoC-4-BLE/tree/master/100_Pro...

When I opened up the Workspace, there were several components that were not up to date (PSoC Creator 4.0 couldn't find them).  So I updated all the components expecting that using the most up-to-date components would be the best route.  A list of components and their original and updated versions is attached.

The program builds and loads into the PSoC just fine. 

I can power the Pioneer board and I can pair and 'connect' the evaluation board with BLE to a PC running Windows 10 Pro. 

I can not, however, get any gestures to do anything when looking at a gallery of photos..

I am also not observing the LED illumination on the Shield as described in both the literature and shown in the video.

I suspect that there is an issue reading the Shield, but I have made several attempts to 'debug' so I can see what the code is doing, but have not been successful.

The information in the Output pane reads as follows:

Device 'PSoC 4200 BLE CY8C4247LQ*-BL483' was successfully programmed at 11/15/2016 11:22:15.
Continuing target program
=thread-group-exited,id="i1"
Error: dbg.M0015: Debugger exited unexpectedly during run.  Encountered error (Target disconnected See output window for more information.)

 

PSoC Creator is running on W7 Pro 64-bit.

The Pioneer board is powered from the W7 PC via USB.

 

A) Has anyone out there had recent (2016) success with the Proximity Gesture Code in the PSoC 4 on the Pioneer board using PSoC Creator 4.0?  If so, what did you do to make the project function?

B) Any pointers on how to get into a debug session?

Thank you in advance for your time,

 


Problem with connection to PC

$
0
0
Forums: 

Hi everyone,

Recently I am having a problem with a PSoC 4 BLE that I have, my computer cannot find it. When I connect to my computer, it reads it like its a USB (681 Kb memory) and Creator does not program it.

Also LED2 STATUS is rising and falling intensity.

Did I spoil it? :(

Can't add a question about C behavior

$
0
0
Forums: 

I tried to add a question about weird behavior I'm seeing from my C code, but the "spam filter" blocked the post.

I guess it didn't like the code snippet in the body of the post. How can I ask my question?

Edit: Maybe I can edit the post enough to ask my question without including code...?

This is for a project that interfaces with an 8-bit CPU by emulating RAM/ROM.

It works, under some circumstances. There is an if statement for the ROM emulation area (based on what range is being addressed), and the other branch is for the read/write buffer area. Handling the ROM area first is to make it fast enough to execute machine language from, directly. That works, too, sort-of.

The catches are:

1. There is a Status Read() that already assures that the range addessed will be either ROM or buffer; the ROM part is if the page number is below 12. The second branch should work with just an else, and SHOULD be faster that way, but it actually causes the ROM part to fail if I don't use an else if in the buffer part.

2.  I have a function that has a switch statement to do other processing based on a command passed to the last address of the buffer. Right now there is one command in there. If I add a second case to the switch statement, with some calls in that block, that will cause the "ROM" reads to become unreliable - some bytes are read correctly, and some are not.

Why should the main loop care how many sections are in the function when I'm not passing any commands or even addressing the section that might cause the function to be called? Why is an else if, with an already known area in the if, faster than a plain else?

Please help. This is really making me crazy!

Thanks,
​Paul
 

Convert ".hex" / ".elf" / ".cyacd" file for bootloader use

$
0
0
Forums: 

Hey guys,

our current project is based on a CYBLE-012011-00 BLE module and is similar to the "BLE to UART bridge" example project. Now I try to implement a rudimentary bootloader function via UART. This bootloader works fine, if I use the "Bootloader Host" program which is integrated in PSoC Creator. Now I would like to outsource the bootloader function to another (not Cypress) MCU. In this case I need the data which I have to send via UART (similar to the "Bootloader Host" program). How am I able to calculate this data string from the ".hex" and ".elf" file? Is there a PC software available?

Thanks in advance!

Pascal

Writing Device Address to SFLASH

$
0
0
Forums: 

Hi,

I have successfully written code to write the Device ID to row 0 of SFLASH.  Questions:

Is row0 the designated spot for the Device ID?  Just the first six bytes?

Is the SFLASH preserved during programming?  We would want to be able to update firmware while preserving the Device ID.

Right now I program the Device ID before BLE initialization, we will normally program it after.  What is the proper way to get the device in the state for SFLASH programming?  It does not work after our initialization (Including BLE init).

cybl10563-56lqxi  (PRoC)

Thanks

 

Rich

Detecting Lost Connection

$
0
0
Forums: 

I have developed an Android app to interface to my Cypress BLE device.  

I would like to detect a lost connection and have the app return to the "device scanning" page.  Is there a proper way to detect a lost connection?

 

Thanks

 

Rich

 

BLE 4.0 USB dongle does not discover BLE 4.1 peripheral (CYBLE-022001-00)

$
0
0
Forums: 

This problem does not involve any Cypress Kits or the programming/configuration of the BLE 4.1 device.  I have scoured the forums but found nothing that might answer this.

I have a sealed third-party BLE device which apparently uses the EZ BLE part number CYBLE-022001-00 which is supposed to be BLE 4.1 compliant, yet when it is advertizing I am unable to discover it under Windows 7 with several different BLE 4.0 USB dongles (eg. CSR 8510).  Also it is not discovered by and Android 4.3 phone (Galaxy S3). However it can be discovered by a Toshiba Satellite laptop (integral BLE 4.0) and most newish Android phones and iPhone 5.  I know the BLE 4.0 USB dongles on the Win7 PC are working because they can discover the Android 4.3 phone and the Toshiba Satellite laptop BLE.

I was under the impression that BLE 4.0 (Smart ready) and BLE 4.1 are compatible, so should be able to discover each other when made discoverable.  Why can't a BLE 4.0 USB dongle discover the CYBLE-022001-00 BLE 4.1 device?

adding device to whitelist while scanning

$
0
0
Forums: 

Can anyone please suggest me or send me a sample code on how to add devices to whitelist while scannin. im looking to receive an address from the user via UART and add that to whitelist during scanning.please send a sample code if possible.

Thankyou,

Vaisakh Haridas
email-vaisakh.hari21@gmail.com
mob-+91 8879009971


undefined reference to main

$
0
0
Forums: 

I'm currently working on a BLE project with PSoC 4. Since today everything worked fine. But now I'm facing the error "undefined reference to main" every time I compile my project. Didn't change anything on the project or code since the last successful compilation.

Hope you can help me.

 

BLE advertsing

$
0
0
Forums: 

i have a code which has three services and can send data simulataneously to the app with different time intervals.initially when i connect the device  gets connected  properly and the device gets disconnected after some time and re-connects back as i have auto connectivity implemented in my android application.After a certain number of reconnections it gets status 129 and status 133 and the device stops advertising..

how can i make the device advertise without resetting the device

Debug fails to start

$
0
0
Forums: 

I have been using PsocOC 4 creator on my Windows 7 machine for the past 6 months and everything has been fine. I installed PsOC Creator 4 and now I can't step into debugger. I'm using CY8CKIT-042. It programs fine and there nothing wrong with the SWD pin setup. I get the message 

Error: dbg.M0006: The start request failed.  Encountered error (SetTarget timeout)

but no one seems to know what the message means or how to find out what wrong.

Can anyone help?

How to limit BLE component to 4.0 only ?

$
0
0
Forums: 

I found that some of devices that have Bluetooth 4.0 can`t discover or can`t connect to my device but new devices can.

How to limit BLE component to 4.0 only ? 

UART COM port using MiniProg3

$
0
0
Forums: 

Using the kit, I do a lot of printf serial debugging via COM port and Putty.  Is there a way I can do the same with the MiniProg?  The reason being that I'm testing 2 devices, Central and Peripheral, and only have one kit and one MiniProg.  If there's any past discussion, please feel free to point me in the right direction.  I can't seem to find much specifically addressing it.  

Broken Annotation note "AN68272"

$
0
0
Forums: 

Hi,

I have to write an own GUI Based Bootloader software for a PSOC BLE module. To save time, I would like to adapt the new software to the already prepared Visual Studio example project from Cypress. This software is included in "AN68272 (PSoC Creator 3.1 CP1).zip"If I debug this project and try to bootload a file, I always get an exception "System.BadImageFormatException". I use Visual Studio 2015 and tested the debug function with 3 different .cyacd files (generated by Cypress). So I think there must be an error in the published source code... Can anyone retrace this error?

Thanks in advance!

Pascal

PSOC 4 inline assembly ARM or Thumb?

$
0
0
Forums: 

Hi folks,

I'm trying to embed some inline assembly in my project to work around areas where I can't get the compiler and optimizer to do what I want.

I pulled the lst file for the main loop, and I can see a couple of places that I want to tweak, to save a few precious clock cycles. What has me confused is that the lst formatting looks like ARM assembly, but AN89610 (Code Optimization document for PSOC 4) says that PSOC 4 uses Thumb 2.

Is there a way to choose ARM or Thumb?

I modified the main loop portion of the lst code, and swapped it in within asm(" .... "); The result is a "Cannot represent THUMB_OFFSET relocation in this object file" error during build. There's a referenced .s file and line number, but I can't find the actual file. I'm guessing it's just temporary during the build process....? 

At this point, I'm getting almost the performance I need from my solution in C, but I have tried many variants, and only been able to find options that don't work. I do think I need the extra savings I can get from using assembly in the critical sections.

Thanks for the help,

Edit: I think I see the cause of the error: I missed that an array I'm using is represented as a label within the assembly block. I'll need to fix the assembly to correct address the array. I'm still rather confused about the ARM vs. Thumb stuff, though.

 

Paul


Using HCI mode over KitProg USB-UART

$
0
0
Forums: 

I'm using the Pioneer 042 BLE board with a long range module (224110). I'd like to use the HCI mode and then connect the UART to the Kitprog so I can communicate over the com port provided over USB.

The problem is that the BLE module enables flow control by default but nowhere to connect those pins from what I can tell.

How do I either:

1. Support flow control over the Kitprog UART and how to connect those pins 

2. Disable flow control in the project for HCI mode.

 

Thanks in advance.

Frank

PID Controller

$
0
0
Forums: 

Hi everyone,

I'd like to make a PID controller but I don't have any idea how to put it in program. Does anyone has any code example so I can guide myself? Actually I know the concepts off continuous process (laplace state) and I can discretize the function. But I don't know to put into codes.

Thanks in advance.

 

GUI for Embedded App

$
0
0
Forums: 

Does PSOC Creator have the functionality to add a GUI to applications?

I.e., if I wanted to make a clock that could be plugged into a computer to change it's settings (e.g., reset the time)?

Problem Accessing BLE Server Characteristic Values when acting as BLE Client

$
0
0
Forums: 

Hello,

I am attempting to utilize two PSoC-4 BLE modules (CY8C4247LQI-BL483) for wireless communication. I have successfully programmed the Server and can read and write data to it using CySmart for Android. I am now having trouble with Client side. I can find and connect to Server unit without issue, and I receive a response when discovering all services and characteristics, however I am not sure how to read and utilize my responses so that I can use these two pieces of info to actually read a characteristic value. (I think I'm confused by the structs which make up the BLE control, and could use some help understanding them and how to use them.

Attached are my two projects. Thank you in advance.

Internet Protocol Support Profile(IPSP) Cannot read data on Node

$
0
0
Forums: 

Hello all,

I have two problem about IPSP.

I am using CYBLE-222014-01 Chip, PSoC Creator 3.3 and BLE Component v3.10.

1. 

I want to send and receive data over IPv6. I created new project based on Cypress IPSP example, i can send data using CyBle_L2capChannelDataWritefunction without error on Router and  i get CYBLE_EVT_L2CAP_CBFC_DATA_WRITE_IND event after sending. But i am not able receive this data from Node side. After sending data, system does not generate READ event on Node side. 

GAP and L2cap connection happens succesfully. Is this BLE Stack bug or am i doing something wrong?

 

2. Whenever i try to send a second message, i get memory allocation failed error return of CyBle_L2capChannelDataWritefunction. I try to increase heap size 0x200 to 0x400 and stack size 0x800 to 0x2000 but nothing change.

 

Thanks in advance.

Regards,

Hakan

Viewing all 726 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>