The Godfather talking
You can run, but you can't hide.
Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 22, 2019, 09:54:15 21:54


Login with username, password and session length


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

Posts: 289

Thank You
-Given: 227
-Receive: 106


Tuco ... dead or Alive


« on: February 28, 2019, 07:50:14 07: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, 10:30:33 10:30 by TucoRamirez » Logged

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

Posts: 289

Thank You
-Given: 227
-Receive: 106


Tuco ... dead or Alive


« Reply #1 on: March 05, 2019, 02:42:49 02: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