Page 1 of 1

Questions!

Posted: Mon May 14, 2012 3:45 am
by nnnnff
I'm using the "CAN", discovered a problem, as long as "CAN Init" later, the simulation is possible. But after downloaded to the chip can't normal operation! Even reset also can't run. For example a flash。Please help me!

Re: Questions!

Posted: Mon May 14, 2012 9:10 am
by nuwan5213
hi nnnff,
try to increase the delay time more than 100ms.

i mean 500ms may be 1s.
in real world i think you cant see 100ms .because your eye is not response.
can int is not the problem.
regards.
nuwan..

Re: Questions!

Posted: Mon May 14, 2012 10:02 am
by DavidA
Hi,

This is working as intended, the CAN Init function has a while loop in it that waits for a valid CAN return message before it moves out of the initialiser icon, so, in other words, dont use CAN Init unless you are in a valid CAN network :)

Re: Questions!

Posted: Mon May 14, 2012 10:50 am
by nnnnff
DavidA wrote:Hi,

This is working as intended, the CAN Init function has a while loop in it that waits for a valid CAN return message before it moves out of the initialiser icon, so, in other words, dont use CAN Init unless you are in a valid CAN network :)
Thank you very much! :D