Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 24, 2019, 11:03:55 23:03


Login with username, password and session length


Pages: [1]
Print
Author Topic: How to display 32-bit integers in Proteus when debugging?  (Read 689 times)
0 Members and 1 Guest are viewing this topic.
alichan
Junior Member
**
Offline Offline

Posts: 92

Thank You
-Given: 24
-Receive: 80


« on: February 10, 2019, 06:08:35 18:08 »

Hello.

It looks Proteus, any version as far as I know, is not able to show correctly the 32-bit integers when debugging (C language). It always shows one word (16-bits). I haven't been able to find a way to show them correctly; in the variable window you can specify the format of the variable as double word... but most of the times it reports the type does not support that format or something so.

Do you know how to show them properly? If possible...

PS: I also noticed similar bhaviour with structs, sometimes not showing the members with the usual mesage "format not supported" (or something so), but others showing them correctly. But if you create a pointer in your code (scope doesn't matter), and reference the struct via that pointer then the struct (and members) are correctly displayed in the debug window.


Logged
sadman
Senior Member
****
Offline Offline

Posts: 377

Thank You
-Given: 1093
-Receive: 1225



« Reply #1 on: February 11, 2019, 02:32:31 02:32 »

checkout this example

https://github.com/ahmed-Nasr-Eldin/64-bit-Calculator-8051
Logged
alichan
Junior Member
**
Offline Offline

Posts: 92

Thank You
-Given: 24
-Receive: 80


« Reply #2 on: February 28, 2019, 11:57:21 11:57 »

Thanks, but it's not useful. It doesn't have debugging symbols so I cannot see the variables when debugging (step-by-step) that is the annoying thing.



Logged
sam_des
Active Member
***
Offline Offline

Posts: 225

Thank You
-Given: 74
-Receive: 113


« Reply #3 on: March 01, 2019, 11:14:59 23:14 »

I guess that depends on your compiler as well as Proteus.
See attached file, its for AVR generated by gcc. Preotus is v8.1 SP1.

sam_des
Logged

Never be afraid to do something new. Remember Amateurs built the Ark, Professionals built the Titanic !
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC