PSoC™ 4 Forum Discussions
I am working on a project which requires encrypting data sent and received on UART - atleast AES128, though AES256 is preferred. Is there any open source library to support encryption on the PSoC4?
The BLE component in the PSoC Creater has CyBle_AesCcmEncrypt and CyBle_AesCcmDecrypt. But these seem to have limitation for max size of data and, the decryption doesn't seem to work for the data encrypted on the PC using OpenSSL AES-CCM 128. Is there any example project that I can use as a reference?
Message was edited by: Luis Montoya
Show LessI found the discussion "
PSoC4 and PSoC4 BLE IMO accuracy With API-called calibration
" but it is locked.
It pointed to http://www.cypress.com/documentation/code-examples/ce97601-improving-accuracy-psoc-4-internal-main-oscillator
but that documentation says it is obsolete.
Is there a way to calibrate the IMO to get better than +/-2% precision
or
is there a way to know the exact frequency of the IMO even if it is within the +/-2% range so that FW can compensate for it by changing counter values?
Thanks,
Ofer
Show LessI've been told by a Cypress application engineer that the PSOC 4700 can be used to measure the DC current flowing through a wire. I have read all available information about inductive sensing with the PSOC 4700 but nowhere does it explain how to do current sensing. Can someone explain to me how I can use the psoc4700 to measure a current through a wire and/or send me an application note explaining how to do it? Thank you.
Show LessIt gives the wrong result. Using PSoC 4, one of the EVM units. Anyone else see it?
Hello, I am trying to use P6.0/P6.1/P6.2/P6.4 as a SPI slave. But I find I can't select the scb[3].spi_select in Creator.
Can anyone help to check this? Thanks a lot.
Show Less
I tried to write a custom hex file (on flash memory of MCU) using the PSoC programmer, but it failed with error:
Hex File parsing failure. Unknown record type.
My hex file was created with arm gcc and objcopy.
Does Cypress not support custom hex files(without PSoC Creator) at all?
Show LessI have been trying to pick the best BLE module for my project. I have read quite a few datasheets, app notes and I bought the cyc8ckit-042-ble-a, which I have tested for a few days. But I'm still quite confused!
I was planing to use cyble-022001 module, but I'm not so sure anymore. I already designed a PCB with it, but haven't ordered that yet.
The first thing I don't quite understand is the I2C specs. I need two I2C buses at 400 kHz and the module would be the only master in both. The datasheet of the chip (but NOT cyble-022001 datasheet!) used in cyble-022001 says "Not recommended for new desings", which sound alarming. There it is said that SBC1 is fully compliant at 400 kHZ I2C at pins P5.0 and P5.1. And SBC0 is only compliant at 100 kHz. AFAIK you can't use deep sleep while sending or receiving data as I2C master. So its quite important, if the time needed for communication takes 275 us or 1100 us per sensors. The sensors are read before every BLE connection interval and the device will be powered from CR2430 280 mAh cell.
So no luck with two 400 kHz buses or even one with swapping SDA to another pin while needing the other bus? Using 100 kHz would make the needed wake up time too long while communicating with sensors, which have the same slave address, thus need separate buses.
The BLE board that came with the kit seems to be PSoC while cyble-022001 seems to be PRoC (although its datasheet says "PSoC 4 BLE chip" and there is a non-working link to its datasheet http://www.cypress.com/documentation/datasheets/psocr-4-psoc-4xx7ble-family-datasheet-programmable-system-chip-psocr ).
So is cyble-022001 PSoC or PRoC and what does that mean regarding usage of I2C?
In PSoC Creator 4.2 I tried to put two I2C at 400 kHz. First with PSoC 4200 BLE CY8C4248LQ*-BL583 in the kit. It seems to be OK, but 381 kHz instead of 400 kHz for both (not tested with actual I2C usage). I used the pins P5.0, P5.1, P0.4 and P0.5, which are dedicated for SDA/SCL in the datasheet. Then I selected cyble-022001 as the device. No warnings and still 381 kHz for both. So does it work? What does the 100 kHz in the datasheet mean?
I can even put a third I2C bus at 400 kHz. But cyble-022001 datasheet says just 2 SCB. Are these software I2C implementations? Any difference in usage regarding CPU time and sleep options? Can two buses be used at the same time?
Does some other module have better properties for this project? I don't need anything else than these two I2C buses and battery level measurement. The module will be 99% advertising at minimum current consumption (probably 10 s interval) and the operate for a few hours at 250 ms interval connection. It will not be possible to replace the battery nor have any switches. So I need to minimize current especially at advertising stage, but also while measuring. The target is ~5 uA and ~100 uA. Sensors will take ~0.4 uA and ~20 uA (for two).
I don't need more features or memory.
Show LessHi there,
I understand that this is a generic question and not specific to BLE/PSoC4, but I'm stuck from weeks now and I need help from Cypress.
I have asked a question, shared my project, but I had no answer.
Is any way to get tech support ? It looks like I can't even create a case anymore...
Thank you in advance.
Francesco Poderico
Show LessHello
taking as reference the example project for Running Speed and Cadence with PSoC 4 BLE, how would be in real scenario implemented in the hardware,
would the BLE mcu read voltage from a magnet sensor?
regards
Show Less