PSoC™ 4 Forum Discussions
I'm trying to use the emulated eprom (version 1.10) in PSoC 4 to save some data. My flash is almost full, I have about 4k bytes left.
This code came from PSoC 5, where the eeprom exists, and I may wish to take it back again, so some things are left in place.
The problem is the write call happens, and does not complain. However, the data is never written to the flash variable "settings." It always retains its old value. If I don't initialize it, it remains a value of "0" after the write. Data sheet recommends initializing.
Has anyone gotten this to work for the PSoC 4? It works well in EEPROM for PSoC 5.
wade
Code:
typedef struct eeprom_data_struct {
union {
float f;
uint8 b[sizeof(float)];
} offset;
union {
float f;
uint8 b[sizeof(float)];
} slope;
} EEPROM_DATA;
EEPROM_DATA ramSettings;
const static EEPROM_DATA settings = {{1.094},{3.072}};
//-----------------------------------------------------------
//-----------------------------------------------------------
void read_eeprom() {
EEPROM_Start();
offset = settings.offset.f;
slope = settings.slope.f;
ramSettings = settings; // copy into ram
EEPROM_Stop();// power down the EEPROM
}
//-----------------------------------------------------------
//-----------------------------------------------------------
void saveSettings() {
EEPROM_Start();
ramSettings.slope.f = slope;
ramSettings.offset.f= offset;
EEPROM_Write((const uint8*)&ramSettings,(const uint8*)&settings,sizeof(ramSettings)); // write first 16 bytes in one fell swoop
EEPROM_Stop(); // power down the EEPROM
}
hello
i was using PSoC 4 ( 4200M - CY8CKIT - 044 ) for almost 2 months now. It was working fine. i was able to program it. But in between , when i tried to debug and program .. my pioneer board was not getting recognized. so i tried to press reset button for 15 seconds, and this solved the problem , this was a month ago.
today morning i was working on new project and when i tried to program it , the same problem occurreed. Pressing reset button for 15 seconds didnot help me this time.
please help me
A million thanks in advance
Show Less
Have one PSoC 4 BLE Pioneer kit as Central/Client receiving notifications from a second PSoC 4 BLE as Peripheral/Server in close proximity (~1 meter) . When the latter is mounted in a second Pioneer Kit operation is robust and stable however when the Peripheral/Server module is stand alone powered by a battery (2- AA batteries with about 6 inches of wire) the operation is not stable or robust. The link will disconnect frequently and the re-connect sequence can be quite lengthy.
The modules are identical CY8CKIT-143A PSoC 4 BLE 256KB and the Pioneer Kit is a CY8CKIT-042-A. A CySmart/CY5677 dongle about half a meter away reads -85 dBm RSSI from both versions, the the Pioneer Kit module as well as the stand alone module. The modules have inner layer ground and power planes and appear to have adequate decoupling capacitors. Adding an additional 47 uf ceramic cap to the stand alone module's VDDD/GND made no discernible difference.
Can these modules be used stand alone? If so how can the hardware and software be optimized for robust stand alone operation?
(A pic of the Central and each version of the Peripheral is attached)
Show LessI'm having issues with reading the slider over BLE on the CY8CKIT-042-BLE (with the CY8C4247LQI-BL483 module). I've tried the PSoC_4_BLE_CapSense_Slider_LED project and the PSoC 4 BLE 101:4 lesson project and they both seem to have the same issue. In the CySmart app, the slider seems to jump between values as you move your finger, rather than scrolling smoothly. If I look at the characteristic value directly in the GATT DB section, it jumps from 00 -> 0c ->25 -> 3e -> 57 -> 64. I've tried CySmart on both Android and iOS and they both show the same thing, so it seems like there is an issue with the PSoC examples. Any ideas?
Show LessHI : when i was build my project occured an error:
The application 'cyelftool.exe' could not be started. Error: 'The specified executable is not a valid application
can you help me ? Thanks!
Show LessHello,
I am using Project 052_BLE_Mesh_Directed from : 100 project 100 days PSoC-4-BLE/100_Projects_in_100_Days at master · cypresssemiconductorco/PSoC-4-BLE · GitHub
It is working fine. But I want to change the central timeout to as small asd possible. I tried to change from the BLE module setting but did not work. I checked in code , Is there any delay of around 4.5 second. But could not able to find it.
For my use I want that after switching role to central the PSOC immediately send the next value rather than wait for 4.5 seconds.
It is mentioned in the app note odf the project that central timeout is 4.5 seconds (How can it be reduced?)
Thank you
Show LessHello everyone,
I use Cyble 022001 module server. My phone client with CySmart app. Send data and receive data It works nicely with Android version 5.0-5.0.2.
It is not working properly with Android version 6.0.
What are your suggestions for solving this problem?
Show LessHi,
The customer says that PSoC4S can't communicate with UART during CapSense scanning and processing.
Is it right?
And, Can PSoC4S communicate with I2C during Capsense scanning and processing?
Best Regards,
Inoue
Show LessHello, During factory testing (on board level - where we have several unconnected ports) we'd like to detect soldering issues on GPIOs. One neat way to do this is to iterate over all the unconnected GPIOs, set one of them to output (digital high), and read in the rest (they should all be 0). However, in order to do this we need to be able to dynamically reconfigure the port direction and drive strength. Is this possible during runtime? We need to be able to turn an input pin to an output pin, and vice versa. Thanks, Jacob
Show Less