PSoC™ Creator & Designer Forum Discussions
Hi,
I have what will most likely be a very easy question for some to answer. But, not being a very good bit twiddler I need to ask this:
How do I manage variables of type float in relationship to storing and accessing them in EEPROM? I have byte level access working properly so the basics have been covered.
Code snippet:
//Storing the float (wpm is a float) Store it in the Third Row
error = EEPROM_Write((uint8 *)(volatile float CYXDATA *)&wpm,2u);
How do I read the float back from EEPROM?
RegPointer = (reg8 *) (CYDEV_EE_BASE + (CYDEV_EEPROM_ROW_SIZE * 2));
index = 0;
f_wpm = RegPointer[index];
//OR THIS
memcpy(&f_wpm,&RegPointer,(sizeof(float)));
I'm ashamed to ask, but I can't get it to work. I have been able to get the application to work using Emulated EEPROM but I would rather be able to use the EEPROM to store the data that needs to persist over reboots of the device. The version of the PSOC 3 chip I am using has 256K of EEPROM so I know I have more that enough space to do what I need to.
Regards,
Ron
Show LessHi,
After creating custom component in the project, I decided to delete it from current project, but to keep its files on the disk. The reason for such action I don't recall. On left pane of Creator (in component section) I hit "delete component" -> "delete from project but keep on disk".
Now I want to restore component in the project, but don't know how to. I see remaining component folders in the project (schematic, API, etc.), but can't figure out how to import component back, as there is no project file to import from. Any suggestions ho to restore component back?
odissey1
Show LessHi to all,
Greetings for the day.
I'm trying to implement the code for the #11 Buttons, while doing this I'm getting the following errors:-
!E E:\amit\myPRO\MY_CHK~1\MY_CHK~1\main.c(72): insufficient number of arguments to `Capsense_DisplayButtonState'
!E E:\amit\myPRO\MY_CHK~1\MY_CHK~1\main.c(73): insufficient number of arguments to `Capsense_DisplayButtonState'
make: *** [obj/main.o] Error 1
the display function is defined for the 2 BYTEs(#1BYTE-->#1-#8 Buttons, #2BYTE-->#9-#11Buttons)
//display button state
Capsense_DisplayButtonState(CSA_EMC_baSnsOnMask[0]);
Capsense_DisplayButtonState(CSA_EMC_baSnsOnMask[1]);
Thanks & Regards-
Amit
Show LessRecently I have been scouring the web looking for examples on a particular project (C based).
Hi to all, I'm trying to use the bridge control panel for my board. I have connected the BCP to my PC & board as I2C slave.
While doing it I do not know the commands to work through. I know I ought to fiddle on it, in that condition please help me with right path to it. Say the boosts BCP will give me understanding & monitoring the operations on board with I2C.
Put anything that describes the procedure, putting commands & retrieving there outcomes. Monitoring all the parameters like Raw counts, Finger threshold, Baseline etc.
Waiting...........
Thanks & Regards-
Amit
Show LessHi,
I'm pretty new to Cypress PSoC and to Creator. I'm learning how to use it and have done some of the examples.
I have a project that someone else worked on and I'm trying to change the target device so that I can run it on a 5LP development kit. I was able to change the device and clean up a couple errors from the clock module. I'm still getting an error when I build the project regarding the bootloader.
The error is "pft.M0076: The selected device for the Bootloader and Boatloadable projects must match, but don't. Bootloader is targeting 'CY8C5888FNI-LP210' and bootloadable is targeting 'CY8C5868AXI-LP035'."
I've hunted around a lot for a place where I can change the target for the Bootloader but have not been able to find it.
To be clear I'm trying to change the target device from CY8C5888FNI-LP210 to CY8C5868AXI-LP035.
Thanks in advance.
Mike
Show LessDo any of you guys use GitHub for your PSoC Creator 3 workspace projects? What do you guys use in your .gitignore file? What files are neccissary and what are not? Not sure if I should ignore the /Generated_Source folder.
I'm currently considering using the below for my .gitignore:
Show Less.DS_Store*.cywrk.**.cyprj.**.cycdx*.cyfit*.rpt*.uvopt*.uvproj*_timing.html*.cydsn/codegentemp*.cydsn/DP8051*.cydsn/Generated_Source