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

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

warning at compile

Post by siwo278 »

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 563 times

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

Re: warning at compile

Post by Benj »

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

Post by siwo278 »

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

Post Reply