Re: Is it worth to buy the Keil Compiler Package PK51

Bryan Armstrong <bryan.armstrong-6tN4nzCoH/[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <[email protected]>
Weber Florian wrote:
> Hallo TINI Forum,
> 
> since 8 months I've been working with the DS80C400. Everything is working fine! There is just a small problem I can't solve.
> I developed an application for a CAN/Ehternet bridge in Java. I can send and recieve CAN messages from a local PC very easy. But if the traffic on the CAN bus rises 10 ms per Msg (with 500 kbaud/s) my server starts to lose Msgs.
> Some analysis of the free memory size showed that the free ram decreases than the application is interrupted. In this moment the application loses CAN messages. Afterwards the free ram starts to increase. This ups and downs are reproduceable.

It looks like the GC marker is kicking off and slowing the system down. 
  Check your application for memory leaks.  Anything creating strings, 
println() are the worst offenders.  Also, if you are using UDP receive, 
memory will burn away on each packet reception.  See Chapter 11 of the 
TINI Specification for more info on optimization.
http://www.maxim-ic.com/products/tini/devguide.cfm

> So, here is my question. If I control the memory allocation by myself, like it is in "C" programming, will this solve my problem? Does anybody has experiences with memory allocation in C with Keil developing package PK51 (The package costs a lot!!! 2600.- !!!)?

Yes.  However, I'm not sure if Keil has libraries to support CAN.  We 
have one in progress, but it is in the inital planning stages.

-- 
--
Bryan Armstrong
bryan.armstrong-6tN4nzCoH/[email protected]


_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.