PSoC™ Creator & Designer Forum Discussions
Maybe the weather is a bit colder today and this explains it?
I am experiencing the compiler optimizing out most of my variables. I have made almost all of them volatile and still cannot prevent it happening. In the attached the array "Sensor[sensorLocation]" does not provide watch elements for the array and when I hover over "sensorLocation" the dialog announces it is "optimized out".
I have a variable called "NumSensors" in the header file of a header file. Several other modules access the variable (which is also made volatile).
The first module initializes the sensors and sets NumSensors ok. Then the first module calls another module (which does not use NumSensors at all), then when returned back to first module, NumSensors keeps setting back to 0. I had to move the declaration for NumSensors into the first module to prevent it loosing its value.
What could be causing this behavior? I never experienced this in Creatore 3.1, then started to get some of these issues with Creator 3.2 and now it appears much worse in 3.2 SP2. Is there some compiler directive or something 3.2 , SP2 is switching on that affects the variable values being held in memory?
Show LessI am new to psoc1. Thought there might be a way to do some custom logic in a digital block but it seems that you can only modify existing modules? I need a simple clock recovery circuit for synchronous data but looking around I do not see anything that does what I want. I have a circuit which uses 2 flip flops to clock a rising edge or falling edge and then triggers a counter (that resets at TC) giving me a clock. The incoming data is NRZ and an edge determines a 0 and no edge means 1. It has transparency (insert 0 after 5 consecutive 1's). I can bit bang this but it would be nice if I could get a clock. Be nicer if I could get the transparency as well.
Any help is greatly appreciated!
Keith
Show LessJust installed a fresh copy of Windows 10 on an unused computer. During the installation Adobe SVG won't install. Inside designer I can't create a new project. If you try to load an existing project, it will just never complete and you get loading in the status bar forever.
So for now windows 10 do not support PSOC designer 5.4 SP1 CP1
Is there any plan to support Windows 10 in a near futur?
Eric
Show LessI want t run 2 debug sessions on same computer.
Though I can run 2 instances of Creator, I can only connect to a single Mini-Prog 3 device.
Is there a way to make this wok on a single PC or do I need separate computers for each MiniProg?
Show LessI'm trying to take a uint16 characteristic and store it in a local variable. This is the code:
wrReqParam = (CYBLE_GATTS_WRITE_REQ_PARAM_T *) eventParam;
/* If the attribute handle of the characteristic written to
* is equal to that of the Delay_Info characteristic, then extract
* the Delay_Info data */
if (CYBLE_DELAY_SERVICE_DELAY_INFO_CHAR_HANDLE ==
wrReqParam->handleValPair.attrHandle)
{
TimeSignature[0] =
wrReqParam->handleValPair.value.val[0];
TimeSignature[1] =
wrReqParam->handleValPair.value.val[1];
Delay = wrReqParam->handleValPair.value.val;
}
wrReqParam works for the uint8 TimeSignature, but Delay is a uint16 and therefore gives me an error. Is there any way around this? Thanks in advance.
Show LessI have a production programmer that can serialize PSOC 5LP while being programmed. It appears I can allocate a physical location and a start value and it will put sequentially incrementing numbers into this location each device I program.
The serial number will be 2-byte value.
I am unsure how to set up the location in the PSOC device (how to select a physical address and what declaration to use, then how to read from the address at run time.
Thanks
Show LessHi,
I'm using MTK ver. 1.7.1 to test TMA460AS-33 touch device.
I want to modify the limits (Min/Max value) such as "Opens", "Raw data", "Global iDAC",... using MTK.
Please tell me how to do this.
Regards,
Tran.
Show LessI'm trying to view the contents of a few structs in the PSoC Creator watch window, but every time I add a struct, the struct's name changes to "public" with a value of "The name 'public' does not exist in the current context." The listed type for these structs is "Error", and all structs are declared globally. Any help on why I'm unable to view the contents of these structs is appreciated.
Show LessI am new to psoc and would like to use openocd v9 and a miniprog3 to debug a psoc 4 under eclipse.
My question is has anybody managed to get openocd to work using a miniprog3. I can see that psoc4 is supported but what I am unable to find is an interface file that support miniprog3.
Any advice or examples would be appreciated.
Show Less