santook
Member
I found a problem,When we try to assign a numeric type to a string type,Just like the code snippet below.We will find that MCU will continue to repeat the reset.Because Stack Buffer is constantly occupied.
Is there an available Stack Buffer release method?
Is there an available Stack Buffer release method?
B4X:
#Region Project Attributes
#AutoFlushLogs: True
#CheckArrayBounds: True
#StackBufferSize: 300
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'Public variables can be accessed from all modules.
Public Serial1 As Serial
Public i As ULong
End Sub
Private Sub AppStart
Dim s As String
Serial1.Initialize(115200)
Log("AppStart")
i=0
Do While(True)
i=i+1
s=i
Log("Temp:",s)
Log("MEM:",AvailableRAM,"Stack Buf:",StackBufferUsage)
Delay(50)
Loop
End Sub