View unanswered posts | View active topics It is currently Thu Sep 19, 2019 5:55 pm

Reply to topic  [ 2 posts ] 
Author Message

Joined: Thu Aug 30, 2012 8:56 pm
Posts: 3
I've been working for days trying to understand why one of my event handlers never finishes executing (I never saw the text that I sent to UART at the end of the handler).
It turns out that there is a new (I think it's new) feature that BlueGiga introduced:

It will stop your event handler after a certain time. You set it to a number between 0 to 65,535 ("BGScript steps"). 0 mean disable. The default is 1000 (which is very short [a simple while loop with ~80 iterations]). It's not clear why they set the default to 1000. In the documentation they recommend using it with BLED112. When I asked BlueGiga support they told me that "This is typically just a development time "watchdog" used to prevent deadlocks. The timeout will generate an event, which can be catched with BGScript and for example boot the device to DFU mode."

You set it in a configuration file called config.xml:
<?xml version="1.0" encoding="UTF-8" ?>
<connections value="1"/>
<script_timeout value="0" />

You have to add this line to project.xml:
<config in="config.xml" />

I hope that it will help you in avoiding spending time on this annoying issue.

Wed Oct 31, 2012 5:52 pm
Site Admin

Joined: Thu Aug 02, 2012 11:36 am
Posts: 166
Hi Uzi,
thanks for sharing this info with the other readers of the forum.


Wed Oct 31, 2012 10:56 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software for PTF.