- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My application involves two separate status registry blocks one of them is working perfectly, I cant manage to make the other one work I keep getting the error:
undefined reference as if it was not declared at all.
I compared both Stat.Reg files and noticed the one that gives the error is greyed out after the if #if !defined( block
not sure what can be done about this
the build report says I still have one more status registry free to use.
the only command I am using is Read();
thanks for the help
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is a message right before the error. "Unused parts have been optimized out..." This is exactly what has happened: yout LUTb does not deliver different values, so it has been optimized out, leaving the status register without any input. So the status register "EndsReg" was optimized-out too. Fill some values into LUTb and all is well.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
All we could do is guessing. Can you please post your complete project or a shortened version that shows the error so that we all can have a look at all of your settings. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I downloaded your project and successfully compiled it with 78% usage of flash memory. Setting the build configuration from "Debug" to "Release" compiled using 56% flash.
I realized that some of your components are a bit old. I'm using Creator 4.0 SP1 and could update your components to latest version.
I am not sure what the error on your side might be.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
sorry I had erased the error line of code I was calling the endstop=endsReg_Read(); command inside the infinite for loop on the main block
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So can you upload again the non-working project?
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is a message right before the error. "Unused parts have been optimized out..." This is exactly what has happened: yout LUTb does not deliver different values, so it has been optimized out, leaving the status register without any input. So the status register "EndsReg" was optimized-out too. Fill some values into LUTb and all is well.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank You Bob,
I appreciate it