PSoC™ 6 Forum Discussions
Hello,
I have another problem with getting the RTC running from a backup battery. I checked the current consumption of the backup supply and it seems like the Pins of port 0 are feeding a current into the attched electronics. Furthermore it seems like the output voltages of these pins are limited to my battery voltage, yet they are not supplied by the battery but by the switchover to VDDD. Is there any additional documentation on this?
best regards,
Christian
Show LessI am new bee, exploring PSOC on eclipse and VS code.
Struggling to find a proper document for learning freeRTOS. Some body could you please help me
Show Less我使用的芯片是CY8C624AAZI-S2D44 ,调用emusb-device 的USBD_Start() 提示错误如下,官方例程是运行好的,我自己新建工程按照emusb-device/release-v1.2.0/docs/html/index.html#section_emusb_device_quick_start,一步一步操作 就出现这个错误
Show Less
Hello,
I am developing a BLE peripheral device based on the code example. The firmware is running in FreeRTOS, and low-power approaches are implemented.
The firmware runs well. However, sometimes, the advertisement of BLE cannot be detected. I implemented a periodical call of Cy_BLE_GAPP_StartAdvertisement(), each 5 seconds. But it cannot make the device detectable. (There is no central device being connected with our BLE device). The firmware is running normally because our UART pin/port is properly responding.
One of my hypotheses is that BLE stack is stuck and cannot process any further API calls.
I want to know whether there is a standard method to periodically check the health status of the BLE stack, and recover the BLE stack if it gets stuck or abnormal. Then the firmware can be more reliable.
Any of your suggestions is highly appreciated.
Show Less
My projects develop with POSC62 MCU,as UDB module is the important part of requirement,so i selected psoc creator IDE for my project development. But now, because of the need for expansion,I have to use machine learning module.
您好 请教下 CY8CKIT-062S2-43012的开发板Modustoobox的程序如何修改sdio速率为1Mhz或者2Mhzh
Hello
I need to write 4 bits to port9 (pins P9.0 to P9.3) as one data of type uint8_t.
Is there a way to do this in one step, as the other ways I know is writing to each individual pin.
Thanks
Show LessI've trained a C code LeNet model (float) on the MNIST dataset. Then used the same code's test and evaluation function on test data taken from the test dataset.
I've not changed the original C code besides removing the training code, and adding arrays for weights and test images.
The code runs correctly on the PSoC 6 (CY8C624ABZI-S2D44 part) and ARM M4 processor at 100MHz and classifies the MNIST test images correctly.
However, when I time the cycles taken for the core evaluation function it is seemingly horrendous (~0.21 secs). I've experimented with the various compiler optimizations and chip settings possible. It is still dire for a CPU with a FPU and DSP extensions - its not a low-end M0 core, for instance.
I've also checked the assembly: it is using the FPU and DSP instructions. I also tried implementing key parts of the C code using the ARM CMSIS DSP libraries, which results in slightly worse performance (the compiler seems better at optimizing ironically). I found similar threads online about CMSIS.
And, further to compare I used some existing ML CIFAR code written to use the CMSIS NN library. While the model is more complex than LeNet the numbers for one evaluation of test data are of the same unexpected order (~0.29 secs (3 samples per sec)).
Given I was surprised by the numbers. I took the same LeNet code and compiled it with all optimisations on as before, to a MicroBlaze running at 100MHz with a FPU enabled (8Kb caches to match the PSoC-6 datasheet); and put it on a Spartan 6 FPGA. This CPU doesn't have the fancy DSP instructions or optimizations the M4 is supposed to have. It is a vanilla general purpose processor, indeed, supposedly quite average.
The result: the time to run the code to evaluate one MNIST sample was: ~0.055 sec - which is a 3-4x difference. 3-4 more samples can be processed per second. This is the sort of number I expected originally in my head from the PSoC-6.
So what exactly is the issue with the M4, it has a better instructions and so on. Any explanations for a 3-4x difference.. ARM selling us a pipe dream.. PSoC-6 design issues..
Show Less
Hi sir,
I am working on psoc6 . It is supporting i2c multi master. First I am configured in slave mode and master send to data to slave by using cyhal_i2c_master_write(). and I am trying read data from slave by using slave function cyhal_i2c_slave_read(). During debugging time I am getting timeout error. How to solve this issues ? how to configure properly?
Show LessDear Receiver,
In the following picture, we can see there is a question mark in each folder and files.
Do you know why?!
Because in other normal projects, there're no these question marks.
Could you please help me to check this issue ?! Thank you so much.
smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/PSoC-6/question-mark-in-the-MTB-project/td-p/710770
Show Less