sagmill
Member
Hi guys,
I need your helps.
When I tried to compile my b4r program for generating hex file to using on micro8 I get this error:
Erorr:
But if I Delete the commands that contain MFRC522 lib , Hex file is generated correctly and program works properly.
Is the MFRC522 library has problem?
Or my programing or compiling is wrong?
Thanks.
I need your helps.
When I tried to compile my b4r program for generating hex file to using on micro8 I get this error:
B4X:
#Region Project Attributes
#AutoFlushLogs: True
#CheckArrayBounds: True
#StackBufferSize: 300
#End Region
Sub Process_Globals
Public Serial1 As Serial
Dim lcd As LiquidCrystal
Dim mif As MFRC522
Dim bc As ByteConverter
End Sub
Private Sub AppStart
Serial1.Initialize(9600)
lcd.Initialize(3,255,4, Array As Byte(5, 6, 7,8))
lcd.Begin(2,16)
lcd.Clear
lcd.Write("Start...")
Delay(2000)
lcd.Clear
lcd.Write("HELLO")
mif.Initialize(10,9,"mif_CardPresent") 'micro 8 pins for miso, mosi , ss ,sck: 12,11,10,13'
mif.LogVersion
End Sub
Sub mif_CardPresent (UID() As Byte, CardType As Byte)
If mif.IsMifare Then
Dim id As String
id=bc.HexFromBytes(UID)
lcd.clear
lcd.SetCursor(0,0)
lcd.Write(id)
End If
End Sub
Erorr:
resources released: true
DEBUG StatusLogger Appender Console stopped with status true
TRACE StatusLogger XmlConfiguration stopped 2 remaining Appenders.
TRACE StatusLogger XmlConfiguration cleaning Appenders from 2 LoggerConfigs.
DEBUG StatusLogger Stopped XmlConfiguration[location=jar:file:/C:/Program%20Files%20(x86)/Arduino/lib/pde.jar!/log4j2.xml] OK
DEBUG StatusLogger Stopped LoggerContext[name=af3868, org.apache.logging.log4j.core.LoggerContext@140477f] with status true
But if I Delete the commands that contain MFRC522 lib , Hex file is generated correctly and program works properly.
Is the MFRC522 library has problem?
Or my programing or compiling is wrong?
Thanks.