Other B4R v2.50 BETA has been released

Status
Not open for further replies.

Mostez

Active Member
I tried it but after uploading code it caused MEGA to reset and start over! I downgraded again to V2.2 and it worked OK!
 

Erel

Administrator
Staff member
Licensed User
Does it happen with all your projects? Need more information...
 

Mostez

Active Member
I tried V2.5 again with UNO and the program did not start. it worked OK with V2.2. I've Arduino IDE V1.8.1 installed.
 

Erel

Administrator
Staff member
Licensed User
What do you see in the logs? Does it happen with any program you try?
 

Erel

Administrator
Staff member
Licensed User
The logs look fine. Are you able to run a simple program with v2.5?
 

Mostez

Active Member
I uninstalled everything and reinstalled V2.5 it again, I ran simple counting program OK on UNO, but failed to run bigger programs on both UNO and MEGA

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 Counter As Int
    Private timer As Timer
    
End Sub

Private Sub AppStart
    Serial1.Initialize(115200)
    timer.Initialize("timer_Tick",1000)
    timer.Enabled =True
    Log("AppStart")
End Sub

private Sub timer_Tick()
    Counter = Counter + 1
    Log ("Counter now is: ",Counter)
    
End Sub
 

Erel

Administrator
Staff member
Licensed User
If you can please send me a program that fails to run and I'll check it. B4R v2.50 will soon be released...
 

Erel

Administrator
Staff member
Licensed User
OK, will send it tomorrow morning.
I'm missing: #include <HX711.h>

However I see that you set the baud rate to 9600. Have you also set it in the IDE? The default value in the IDE is 115200.
 

Peter Simpson

Expert
Licensed User
Thank you @Erel, great stuff as usual.
Sadly no OTA option, BUUUUUUUUUUUUUUUUUUUUUUUUUUUUUT as usual your efforts on this free for all development tool is greatly appreciated by myself and everybody that uses it.

My C/C++ has improved vastly over the past 12 months, but I still prefer using the B4X suite of tools ;)

Thank you...
 

Mostez

Active Member
Yes Erel, I set both to 9600, 9600 is a default value, user may change baud rate by sending BAUD.SET command. however the program runs and display the welcome message, but at final step it fails to run the 'looper' after line 119 nothing displayed on LCD and no response to pin change events.
B4X:
InitializeScale
...
....
AddLooper("ScaleTimer_Ticks")
The same thing also with MEGA with another much complicated code, every thing goes fine with displaying welcome message and loading settings from EEPROM, but it fails to run the timer that updates everything on LCD.
 

Erel

Administrator
Staff member
Licensed User
Please send me an email with the project and the HX711 library.
 
Status
Not open for further replies.
Top