PSoC™ 4 Forum Discussions
I am programming a CYBLE-022001-00 and I am getting a curious issue: the software crashes and when I pause the debugger, the Program Counter is at 0xFFFFFFFE, which according to the Cortex-M memory map is a vendor specific area.
For the complete call stack information and the core registers, please refer to the attached screenshot.
Any idea what could have caused this issue?
Kind regards, Enpa
Show LessI am running a simple code to just print the address of nearby peripheral devices. But, while trying so I figured out that for the same peripheral device the SCAN_PROGRESS_RESULT event was being called twice and hence the routine inside it was being executed twice. Is there any way I can stop this from happening?
I have made a simple project which just prints a character once the event is executed to verify my observation. That character was printed twice on the terminal.[Project file is attached below.]
Kindly provide solution/suggestion on how can I solve this problem.
PS:The advertising peripheral device is PRoC dongle running a Find Me profile.
In the future I wish to use the Service Data in the advertising packet.
Show LessHello all,
I've gotten my peripheral/server to correctly bond and store bonding information with the cysmart usb dongle, but upon reconnecting it seems as though the cysmart dongle is no longer in an encrypted connection. (It gives errors on trying to access characteristics that require encryption to be read).
I was under the impression that the cysmart dongle should automatically setup encryption on reconnecting to a previously bonded unit, is this an invalid assumption? Or should I be requesting an encryption on the "client" side of the connection every time I connect before reading data that requires encryption?
Show LessI've attached my project for perhaps a bit more ease of communication here. The application of the PROC CYBLE222014-01 chip I am using it for measuring audio samples from a microphone on the chip.
If you take a look, you will see that I am using 2 blocks: an I2S Master, and two DMA blocks. All pins are connected to the appropriate hardware terminals in the .cydwr file.
Now, my trouble lies in processing the data read from the DMAs. I have only one channel mono left configuration and I wish to store the incoming data in two buffers,i2sBuffer and i2sBufferCopy. For each sample i2sBuffer receives the data directly from I2S and transfers in into the second buffer i2SBufferCopy, where all samples (in total 1000) are collected. However, when I debug (I am using the MiniProg3), and view the buffers in my 'Watch' window, the data that comes through is not as expected; the input to my tuner is a function generator producing a sine wave of 1250 Hz, and the data coming through in the end does not seemingly refer to those a sine wave. Is there something missing in my code or should I also configure other parameters? The following specs are probably relevant:
Data bits: 32.
Word select period: 64
Source Clock 6.144MHz
Audio sampling frequency: 48 kHz ( = 6.144MHz / 64 / 2)
Bit Resolution: static
Number of Channels: mono left interleaved
DMA Request: enabled
Another problem is the order, on which the bytes are copied from the first to the second. As example the first DMA transfers the following sample: 0xFAF7C000 and saves it in i2sBuffer.
Then the copied sample appears in i2sBufferCopy in inverted order: 0x00C0F7FA. Is there a possibility to enable swapping between DMAs? The I2S has "Byte Swap" functionality, but it is disabled in case of considering 32-bit samples.
I am hoping that someone can help me identify what mistakes I am making in my configuration functions;
Thank you in advance for the invested time. Hope to hear from you soon!
Nuno Alves
Show LessI've dug through the datasheets quite a bit and I apologize if this has been published somewhere, but I haven't seen it.
What sort of shock rating (i.e. # of g's) can the ez-ble modules handle and:
1) simply survive without damage?
2) and continue to operate without issue?
Thanks for any insight.
-Keith
Show LessDoes the Scan Request generate any events, either on the Central (TX) or the Peripheral (RX) modules?
Could anyone point me in the direction of more information on the format of the Scan Request - I've been having little luck on finding any more information other than "it exists".
Hey guys,
for development I use the CYBLE-012011-00 module with Project#20 UART to BLE bridge (100 project in 100 days). This project stack is BLE 4.1 compliant.
Now, I try to use the CLBLE-202007-01 module with same source code. My problem is, that I can sometimes find and connect to the module and sometimes I can't find / or connect to the device. Do I have to change anything in the software STACK? All BLE settings are the same, aside from the external amplifier options.
Thanks in advance!
Pascal
Show LessHow many Current Consumption of PSoC4 4200 BLE chip?(I think using CY8C4248FNI-BL553)
By data sheet, I know active mode current is 1.7mA(3MHz),
but I want know current @ M0 Core running Max Frequency 48MHz.
I want total (max) current consumption(BT + M0 + Programmable block), and I can't find 'M0' current.
->where should I read?
->Any one measure real device? Please teach me the reference value?
Thank you.
Show Less
Hi,
i'm trying to implement OTA on our custom PCB.
We are using the S25FL116K non-volatile flash over the SPI.
I've modified the example project "external memory bootloader and bootloadable" by re-implementing the following functions:
EMI_Start()
EMI_writeData()
EMI_ReadData()
but i can't understand the purpose of the EMI_setPointer() function.
It appears that it is writing the dataAddr variable to a location where this data already resides.
Also the maximum page write for the flash is 256, but in the WriteData function, two bytes are appended to the start of the array which would push this above the maximum.
Some help would be appreciated on how this should be changed.
kind regards,
Damian
Hi Everyone,
When I'm trying to connect my device with Cysmart either in android or IOS, I'm getting disconnected frequently.
In android getting the msg Bluetooth Disconnected, whereas in IOS I'm getting "Connection Timed out unexpectedly".
How to achieve consistency in connectivity and what are the parameters which are affecting the connectivity.
Regards,
Jatin
Show Less