- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Has anyone seen this error before:
"sdb.M0033:An error occured when binding instance "ScBoostClk" of symbol "cy_clock_v1_60": (The given key was not present in the dictionary.)
File: PGA_v1_70.cysch
I find it weird that my project does not include a PGA in it (however my workspace does) yet I'm still getting this error when I build. It seems to come and go randomly, meaning I can build it perfectly sometimes, and other times it throws this error. Currently I changed a digital output pin to a digital output and input pin so that I can write a value to it and also have it drive the clock of my counter. In doing so it brought about the above error.
- Labels:
-
PSoC 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There are other components which seem to refer / use the PGA: Mixer, Sample&Hold and TIA. Do you use one of them?
When I read correctly what I can found (using the scBoostClock reference as search string) in this component, it seems to be activated when Vdda is below 2.7V. Did you change that configuration in your project? (I think this may also happen when a higher voltage is set and the extended temperature range is used)
Maybe you can upload your project here, so we can have a look into it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The project has changed some since I posted, and I no longer receive that error but I have not used any of those functions you listed. I have not changed the configuration and Vdda should still be 5V.
If you wouldn't mind, I also get a lot of warnings about multiple call to function and I'm unsure as to why.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I coudn't reproduce the error. How oftern do u see this? Everytime you build?
Thanks,
srim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
After a clean and re-compile I got the warnings as well.
You are awakening all your devices in the interrupt-routine of the sleep-timer. This is not as suggested:
After sending the chip asleep the cpu stalls, no further instructions are executed. When the chip is woken up again (from an interrupt for instance) then, when returned from the interrupt the next instruction after the send-to-sleep will be executed.
So I would suggest just to set a flag in your interrupt-routine which you may thest when woken up again and then re-enable all of your devices.
This particular warnings you've got will not disturb your program flow. because one reference is in the startup-code of the chip which is usually executed only once, but I would try to avoid any warnings.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Bob that makes sense I didn't really think about that.
I changed my interrupt to:
CY_ISR(Wakeup_ISR)
{
wakeup_Flag = 1;
}
Then in my main loop:
while(1)
{
sleep();
CyPmReadStatus(CY_PM_CTW_INT);
if(wakeup_Flag == 1)
{
wakeup_Flag = 0;
wakeup_Count += 1;
}
switch(wakeup_Count)
{
//case 0:{}
case 1:{}
//case 2:{}
//case 3:{}
case 4:{
wakeupCount = 0;
CyPmRestoreClocks();
LCD_Wakeup();
LCD_Position(1,0);
LCD_PrintNumber(status);
CyDelay(100);
break;
}
default:break;
}
}
So this should put it to sleep, upon wake up from the sleep timer it will set the flag, then call CyPmReadStatus()
It will increment my counter, step through the case statement and then go back to sleep correct?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not exactly: after wakeup immediately restore all clocks. There are some results of a query, look here https://secure.cypress.com/?app=search&searchType=keyword&keyword=psoc3+sleep&submit-part.x=0&submit...
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Imperfectseven,
we are investing the cause for the error in post#1. Could you please let us know what version of PSoC Creator are using? Version 1.0/2.0/ 2.1(EA) ?
Thanks,
srim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using creator 2.0
The error still shows up every now and then as I make changes, I will update on its next occurance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is it possible to move the sleep() outside the main while loop so that at startup the device goes into sleep then during the wake up interrupts from the sleep timer I increment that counter.
At certain values of that timer I turn on certain components using a function call (componentWake())
That section will then operate as normal and after it creates it own interrupt it will go back to sleep by calling sleep() in that interrupt
To me it sounds like that is possible but as soon as I move the sleep function outside of the main loop and run it it seems as though the device never wakes up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I then changed the Wake_Write() line to:
Wake_Write(1);
CyDelay(4);
Wake_Write(0);
After a couple more compiles the error goes away
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Has anyone figured out an explanation for this error? It has shown back up in a different project I am working on, except this time I get the error twice.
I am expecting it to have something to do with the IPGA, PGA, S/H as mentioned earlier, but what is it that is actually causing it and how can I get it to go away?
My project is attached.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I opened your project(s) and did a "Clean and Build" which instantly compiled without any errors but with 3 warnings.
I observed that many of your components are availlable in a newer version, so I suggest you try to update to Creator 2.1.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oh, ok I'll try that. I was not aware there was a 2.1 thank you Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi SpiderKenny,
Were you able to reproduce with PC v2_1? Please provide steps to re-produce .I couldn't reproduce at my end with the above steps on both PC v2_0 and PC v2_1. Your response will help us to figure out the root cause.
Thanks,
srim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No, I have not been able to reproduce the error in creator 2.1 however as Bob hs mentioned it usually goes away after I clean the project.