rbei-etas / busmaster

BUSMASTER is an Open Source Software tool to simulate, analyze and test data bus systems such as CAN. BUSMASTER was conceptualized, designed and implemented by Robert Bosch Engineering and Business Solutions (RBEI). Presently it is a joint project of RBEI and ETAS GmbH.
http://rbei-etas.github.com/busmaster/
GNU General Public License v3.0
913 stars 488 forks source link

#problem with busmaster compiling with MinGW #1140

Open Andreal80 opened 6 years ago

Andreal80 commented 6 years ago

I had a problem using node simulation. I actually installed tdm-gcc-4.8.1 following the help guide.

this is the output from the bulid log:

error_compiling

this is my current version of MinGW: mingw_version462

Many thanks.

GuillaumeHM commented 6 years ago

Busmaster is very sensible to desynchronization on multiple subjects :

  1. PATH variable to select the right mingw compiler if multiple installed.
  2. 32/64 bits version of windows/busmaster/mingw
  3. Database cache files at C:\ProgramData\BUSMASTER\General\DBCache. They are generated when you associate a dbf to your project. I remember that cache format was broken with a new version, can't remember which one exactly. So it must be regenerated if generated with a previous version.
  4. node.cpp and node.def

I think your problem is around the fourth point. Try to use the Busmaster code editor to (re)declare (meaning resynchronize) your functions/events using the left side panel and don't forget to save def file with cpp one. Other files are generated from those two.

With hope to help you.

ciarcode commented 5 years ago

But, how do I create the .def file? It is not generated automatically.

hugoquiroz commented 5 years ago

Thanks! I was having issue with no. 3, however I had to dissociate, and the re-generate the dbf as well

But, how do I create the .def file? It is not generated automatically.

I was able to generate when you open the .cpp in busmaster, save it, then compile again.