PSoC™ 5, 3 & 1 Forum Discussions
Hello all.
I have N nodes on CANbus. There is no any master node! I need to make a roll call between blocks, so that each block always knows the total number of blocks on the bus. I need some help with algorithm how to do it.
Thanks!
Show LessHello,
I am using a counter to measure the on and off time of the led input given to a GPIO pin. There is a LED On ISR and LED Off ISR. I read the counter value at the start of each ISR and set a flag. This flag is polled in the infinite FOR loop in the main.
When my code runs, it sometimes enters LED On ISR twice consecutively and gives weird on time values. I have logic for resetting the counter in my ISR using the control register.
<OFF>260580
<ON>260782
<ON>1003
<OFF>260842
<ON>258372
<OFF>260700
What could be the reason?
Show Less
Hello,
I have a device with PSoC 5LP interfaced with a microSD Card and a Bluetooth module. I am using a Class10 microSD Card and Microchip RN4871 Bluetooth (BLE) module. The UART Communication baud rate between the Bluetooth module and PSoC is set to 230,400 bps.
I am trying to send a relatively big file from this device to other devices like for instance, my phone, over Bluetooth. But on receiving, I find that a lot of data is lost.
The file is a binary data file of around 60kBytes. I tried to replace it with a similar-sized text file and found similar results of data being missed. I have also tried to give a delay of 2ms to 10ms between every 100 bytes of data, but no improvements.
But when I send 200bytes hardcoded data, I don't see it being lost. To view the data being received on my phone, I've been using this app - Serial Bluetooth Terminal
Any suggestions to fix this? Let me know if you need any other information.
Show LessI'm trying to do some manipulation of Bootloadable hex file for a custom application and I'm struggling to understand a couple of things.
I have a very simple Bootloader/Bootloadable application - it starts in bootloader, pauses, runs the main app for two seconds then switches back to boot loader. So far so good.
I want to be able to extract only the bootloadable region for insertion into another application. I need the meta data as well. I'm examinging the hex file and I can see the bootloader at the beginning then a region of bootloadable starting at row 0x1000 (as set in the bootloadable component so that makes sense).
Then I get a region of of bootloadable application. So far so good.
Then for some reason, at address 0x27000, I get another region of non zero data - Any idea what that might be about??
My main question though is about the meta data. As far as I can tell from the datasheet, the last 64 bytes of the last row should be meta data, so I'd expect a final line of 64 bytes in my hex file.
However, the end of my hex file looks like this. That last line contains only 12 bytes, which isn't enough to be even the info fields of the meta data without the reserved regions..
Also, what are those random bunches of 5, 5 and 2 bytes at 0x90000000, 0x90000010 and 0x90000030 respectively.
I've attached the hex file. Any insights very gratefully received. Happy to post more info/project files if needed.
Thanks in advance
Dan
Show LessDear Sirs and Madams,
Please tell us some of the behaviors of the emFile component we are considering.
1.
This component does not have a Start and Stop API.
So is it correct to recognize that it is automatically booted within the boot process?
2.
Does the emFile component access the SD card after it launches automatically?
And does the operation change when the SD card is inserted and when it is not inserted?
3.
We are using Hibernate mode with PSoC5LP.
Call the emFile pin to goes 'L' and emFile_Sleep as shown below.
emFile_Sleep();
CyDelay(10); //This API is absolutely necessary
SD_PIN_DETECT_Write(0);
emFile_SPI0_CS_Write(0);
emFile_mosi0_Write(0);
emFile_sclk0_Write(0);
Calling CyDelay (10) or CyDelay (5) will successfully enter Hibernate mode.
However, if you set this CyDelay to 1ms, you will not be able to enter Hibernate mode.
Do you know some reasonable processing time to stop emfile?
We think that the time between 'emFile_Sleep();' and 'SD_PIN_DETECT_Write(0);' is very important.
Alternatively, the SPI UDB data of SD card is backed up in the emFile_Sleep API.
Is it not desirable to change the SD card IO with the Pin_Write API?
Regards,
Show LessHi there,
we have implemented a USB Bootloader starting from the excellent AN https://www.cypress.com/documentation/application-notes/an73503-psoc-usb-hid-bootloader
when we create the release mode version of the attached AN (we made some changes).
we found out that it works only on the machine that has PSoC creator installed (and it doesn't work for our customer).
please see the error message: (can't find the Bootloader_Utils.dll.) The confusing part is that when we browsed inside the installed directory,the dll is there! so I'm very confused...
do you have any suggestions?
Thanks!
Francesco
Show LessSituation: A Low-Power application using the CY8KIT-059 was found to be LIGHT-SENSITIVE! In normal ambient light the application draws 0.25mA, shining a bright light on the onboard LED increases the current to >0.80mA. Port 2.1 (drives the on-board LED) was set to 'Open drain, drives high'.
Our solution: Experimenting with the Port 2.1 dive mode, we found that either 'Strong drive' or 'Resistive pull down' modes solved the problem. The application current draw went down to below 5uA and it was no longer light-sensitive.
We do not pretend to have any idea why this is, but this tip might be useful to other users.
Show LessHello.
Currently I'm working on a robot which accepts command from MATLAB and performs actions corresponding to the command. Commands are basically the speed and positions of the robot. When I try to send speed for example 127 from MATLAB to psoc, psoc just accepts first digit of 127 i.e 1. I confirmed it by using UART_PutChar command and displayed the output in MATLAB/PUTTY. I need to send the complete value from matlab to psoc. I'm new to psoc, so it'd be great if someone helped me regarding this.
I'm using PSoC 5lp and UART_GetByte to recieve the data.
Thankyou.
Show LessI am trying to make a measurement unit for Resistor and Capacitor value. How to measure the value using PSOC3? And display the measurement value in LCD.
Show LessHello.
I have configured the WDT in a PsoC3 as CYWDT_128_TICKS / * WATCHDOG: 256 ... 384msg * /
And in "some" equipment the reset is generated from 212msg-225msg. Very low value respect configuration.
What is the real precision of the WDT?
Could the chip be damaged by an ESD or similar that produces this phenomenon?.Could be affected in solder process?
Is this normal behavior?
Thanks.
Show Less