B4R Question [Solved] LGT8F328 Error: Must specify exactly one sketch file

derez

Expert
Licensed User
Longtime User
LGT8F328 is a new board which I'm playing with, managed to install it and make it work in Arduino IDE with this link:
I ran the blink program and it blinks...
1578392265528.png

The variants are these:
1578392341892.png


Checking with B4R, blink program, the code is
B4X:
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
    Private tmr As Timer
    Private pin13 As Pin
    Private state As Boolean = False
End Sub

Private Sub AppStart
    Serial1.Initialize(115200)
    Log("AppStart")
    tmr.Initialize("tmr_Tick",1000)
    pin13.Initialize(13,pin13.MODE_OUTPUT)
    tmr.Enabled = True
End Sub

Sub tmr_Tick
    state = Not(state)
    pin13.DigitalWrite(state)
    Log(state)
End Sub

I found the board but the models are not the same:

1578392402901.png

Running with any of them I get the same error:
Compiling & deploying Ino project (LGT8F328 - COM7) Error
Error: Must specify exactly one sketch file

Searching the forum I found one similar case without solution.

Advise please ?
 

MikeSW17

Active Member
Licensed User
Have you tried a full web search for "arduino Error: Must specify exactly one sketch file"? [DuckDuck Search]
There are several instances of this error, some with solutions. Without knowing much about your project and setup, I can't say if any might the fix you need though.
This does seem to be an Arduino environment issue rather than a specific B4R problem.
 
Upvote 0

derez

Expert
Licensed User
Longtime User
Have you tried a full web search for "arduino Error: Must specify exactly one sketch file"? [DuckDuck Search]
There are several instances of this error, some with solutions. Without knowing much about your project and setup, I can't say if any might the fix you need though.
This does seem to be an Arduino environment issue rather than a specific B4R problem.
Trust me that I had searched the web before posting, and that I found no relevant solution there, the fact that the variants are different from what I have in Arduino IDE is for sure relevant to B4R.
 
Upvote 0

miker2069

Active Member
Licensed User
Longtime User
Do you get errors when you compile just an empty B4R program and no additional libraries/modules selected?
 
Upvote 0

derez

Expert
Licensed User
Longtime User
It is still the same, I get the same error " Error: Must specify exactly one sketch file " on any of the variants.
1600707599106.png
 
Last edited:
Upvote 0
Top