How to look at floating-point number calculation result with EWARM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-11-09 1:11 AM
Thank you for your patronage. I'm using STM32F3348-Discoverywhich has FPU and EWARM.
I made calculations like the picture below.
I'd like to check if floating point arithmetic is calculated correctly. So,I added z to EWARM live watch. Butz indicated an error.In case of integer operation, it is correctly displayed.How can I do it?
Best Regards,
Ken Inoue
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-11-09 1:39 AM
Having paid the considerable licence fee for EWARM, don't you think you should be asking them about difficulties with their product ... ?!
https://www.iar.com/support/technical-support/
But, anyhow, what is the text following 'Error(...' in your screenshot?
General points - not specific to IAR:
- Is z in-scope at the point you are trying to observe it?
- Is the value of z ever used for anything non-trivial?If not, the compiler may well have optimised it away...
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-11-09 1:39 AM
Having paid the considerable licence fee for EWARM, don't you think you should be asking them about difficulties with their product ... ?!
https://www.iar.com/support/technical-support/
But, anyhow, what is the text following 'Error(...' in your screenshot?
General points - not specific to IAR:
- Is z in-scope at the point you are trying to observe it?
- Is the value of z ever used for anything non-trivial?If not, the compiler may well have optimised it away...
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-11-09 4:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-11-09 4:10 AM
Do you understand the concept of scope in the 'C' programming language?
A variable is not visible outside its scope - not even to a debugger ...
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-11-09 4:37 AM
I will study that.
Thanks.
Best Regards,
Ken Inoue
