Jump to content


Application Monitor crashes without any coDev warning


  • You cannot reply to this topic
2 replies to this topic

#1 genaoueg

    Member

  • Members
  • PipPip
  • 3 posts

Posted 22 September 2009 - 05:20 AM

I am starting using ImpulseC with CoDeveloper and I must say I appreciate it, tought I am always having trouble with the same thing :

When I do one of those mistakes in my code (I sometimes do some) for example :
- missing one parameter of the co_process_function
- openning a register as a INT_TYPE instead of a UINT_TYPE
(and other mistakes that a developer sometimes does...), I am able to build the project without any single warning, but when I launch the simulation executable, everything crashes and I can't have any block diagram, any cosim_logwindow_fwrite output or anything to help me know where my error comes from...

Is there anything I can do to solve this kind of error faster?

Sorry for the english
thanks for any help


#2 Impulse Support

    Advanced Member

  • Impulse Staff
  • PipPipPip
  • 67 posts

Posted 29 September 2009 - 06:01 AM

Crashes in the C code execution during desktop simulation can occur for many reasons, as they can with any C application under development. The errors you describe with co_process parameters and data types can also cause confusion and result in hard-to-debug crashes.

One technique we use ourselves is to try compiling the application for hardware (the Generate Hardware function). The hardware generator is more picky than gcc about correct use of types, and correct use of parameters to co_process_create, etc. If you suspect you have mismatches in types when opening or reading/writing streams, for example, the hardware compiler will tell if that's the case.


--
-- Impulse Support (support@ImpulseC.com)
--

#3 genaoueg

    Member

  • Members
  • PipPip
  • 3 posts

Posted 29 September 2009 - 07:10 AM

ok, thanks, that's what I did.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users