Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
March 28, 2024, 02:09:18 14:09


Login with username, password and session length


Pages: [1]
Print
Author Topic: little hint: simulate-elf Atollic on proteus  (Read 3450 times)
0 Members and 1 Guest are viewing this topic.
TucoRamirez
Senior Member
****
Offline Offline

Posts: 307

Thank You
-Given: 257
-Receive: 115


Tuco ... dead or Alive


« on: February 28, 2019, 01:50:14 13:50 »

hi

as maybe you have already tried, the latest proteus versions allow you to simulate some stm32F cores, most of the time with the gcc compiler and folders internally generated ...

So i was wondering if some code on stmcube would be simulated in order to verify some i2c stuff i've already tried on pic mcu...

The problem is that the default compiler config doesnt generate the correct elf file.

Code:
So, go to your project properties.
Select the C/C++ build item
Go to settings
In the "Tool Settings" part, set no debug and add at the end of the "Command" line:   -gdwarf-2

After compiling, you will be able to simulate step by step on proteus.



Best regards and sorry if this is not new to you Smiley  
« Last Edit: February 28, 2019, 04:30:33 16:30 by TucoRamirez » Logged

Whoever double crosses me and leaves me alive... he understands nothing about Tuco.
TucoRamirez
Senior Member
****
Offline Offline

Posts: 307

Thank You
-Given: 257
-Receive: 115


Tuco ... dead or Alive


« Reply #1 on: March 05, 2019, 08:42:49 08:42 »

PS: i2c simulation not working properly (in real world working as a charm on bluepill), otherwise uart ok, timers ok...

Best Regards
Logged

Whoever double crosses me and leaves me alive... he understands nothing about Tuco.
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