warning at compile

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

siwo278
Posts: 39
Joined: Tue Feb 12, 2013 9:07 am
Has thanked: 4 times
Been thanked: 5 times
Contact:

warning at compile

Postby siwo278 » Mon Jan 11, 2016 3:56 pm

Hello

Dear Colleagues have a problem with compiling the program. There is a mistake but rather a warning of the possibility of error " Building CASM file
Serious Warning : Possible s stack corruption , function ' __mul_16u_16u__16 ' called by more than one asynchronous thread ( main / Task , interrupt , interrupt Low )
"
Which results in a warning . The program in emulation mode works correctly , as expected. This program is a simple timer , long time intervals up to 4 hours . It also has the ability to control via RS232 .


ostrzeżenie w trybie kompilacji
Witam

Szanowni koledzy mam problem z kompilacją programu. Występuje bład, a raczej ostrzeżenie o możliwości wystąpienia błedu: " Building CASM file
Serious Warning: Possible sw stack corruption, function '__mul_16u_16u__16' called by more than one asynchronous thread (main/Task, interrupt, interrupt low)
"
Czego wynikiem jest to ostrzeżenie. Program w trybie emulacji działa poprawnie, zgodnie z oczekiwaniem. Program ten jest bardzo prostym przekaźnikiem czasowym, z długimi interwałami czasowymi do 4h. Posiada też możliwość sterowania przez RS232.
Attachments
Flowcode1.fcf
5.5
(77.79 KiB) Downloaded 304 times

User avatar
Benj
Matrix Staff
Posts: 14151
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4330 times
Been thanked: 4079 times
Contact:

Re: warning at compile

Postby Benj » Tue Jan 12, 2016 4:14 pm

Hello,

The warning is stating that a function (16-bit multiply) is used in both the main code and the interrupt routine. If your inside the function in the main when the interrupt fires then you will likely get some stack and RAM corruption.

If you can try and simplify your interrupt routine and this should fix the issue.

siwo278
Posts: 39
Joined: Tue Feb 12, 2013 9:07 am
Has thanked: 4 times
Been thanked: 5 times
Contact:

Re: warning at compile

Postby siwo278 » Tue Jan 12, 2016 7:16 pm

Hello!

Thank you for the quick reply. That's what I thought , with the result of the use of variable Uint the interruption . But I was not sure .

Natalia