Other B4R v4.00 is available for download

Erel

B4X founder
Staff member
Licensed User
Longtime User
I'm happy to release a new version of B4R. This update adds support for the latest version of Arduino IDE.
It is also the first 64 bit version of B4R.

Download link: https://www.b4x.com/b4r.html

Installation instructions:
  1. Install latest version of Arduino IDE: https://www.arduino.cc/en/software
  2. Install Arduino CLI (command line interface): https://downloads.arduino.cc/arduino-cli/arduino-cli_latest_Windows_64bit.msi
  3. B4R - Tools - Configure Paths: configure the path to arduino-cli.exe and javac. Java 8+ is supported.
  4. Open the board manager and select the board.
 

candide

Active Member
Licensed User
Javac.exe ? i saw a panel request for Arduino-cli, libraries directory and modules directory, but i didn't see where Javac.exe have to be provided...

for information, i came back to arduino 1.8.19 + B4R 3.90 and now everything is OK !

i will stay in this configuration until a solution for installation of B4R 4.00
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
installation of B4R 4.00
... is fully OK. It looks like you cannot follow the instructions fully.
But it's good that you found a solution yourself.

@Erel, it looks like that IDE paths setup dialog must require to fill 2 first fields, if they are empty. Else the forum will be flooded by the same question...
 
Upvote 0

candide

Active Member
Licensed User
i can restart an installation B4R 4.00 but at installation i didn't see a panel to request for a link to arduino-cli.exe and Javac.exe

only after installation, in menu "tools" , "Configure Paths" i can add a link to "arduino-cli" , "libraries directory" , and "modules directory" but nothing more

if i miss something, please to indicate me what i have to do

thanks for your help
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
Configure Paths
Is it really that your B4R v4 is not like this one "mine" ?
1697717069485.png
 
Upvote 0

candide

Active Member
Licensed User
you are right, i didn't look at javac access during installation because this line was not empty and i supposed this line good but there were nothing at this address.
After a correct access to javac, Log is now working

Thanks Peacemaker for your patience, with your help B4.00 is fully OK now
 
Upvote 0

max123

Well-Known Member
Licensed User
Longtime User
I have version 3.90 with Arduino IDE 1.8.x and it works.

Is this 4.00 compatible with the old Arduino IDE 1.8.x or only with the new Arduino IDE 2.0.x ?
If yes, I have to download CLI or will work without it ?

Thanks
 
Last edited:
Upvote 0

max123

Well-Known Member
Licensed User
Longtime User
I update my question,
I have version 3.90 with Arduino IDE 1.8.x and it works.
Is this 4.00 compatible with the old Arduino IDE 1.8.x or only with the new Arduino IDE 2.0.x ?
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
not tested. Test yourself, or... if all you need works OK - why to update ? :)
 
Upvote 0

Core28

Member
I update my question,
I have version 3.90 with Arduino IDE 1.8.x and it works.
Is this 4.00 compatible with the old Arduino IDE 1.8.x or only with the new Arduino IDE 2.0.x ?
No. Arduino IDE 2.x.y doesn't work with B4R. It has a totally different architecture. Stick to IDE 1.xy.
 
Upvote 0

max123

Well-Known Member
Licensed User
Longtime User
No. Arduino IDE 2.x.y doesn't work with B4R. It has a totally different architecture. Stick to IDE 1.xy.
This is not true....

@Erel said:
I'm happy to release a new version of B4R. This update adds support for the latest version of Arduino IDE.
It is also the first 64 bit version of B4R
 
Upvote 0

max123

Well-Known Member
Licensed User
Longtime User
not tested. Test yourself, or... if all you need works OK - why to update ? :)
I ask because I'm happy with B4R, but my big problem is that it is really slow when compile, even a small 30 lines project. I've set compilation time to 500 seconds and sometime I had to increment it. Maybe the 64 bit version compile a bit faster.
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
really slow when compile
Latest B4R4 + Arduino 2.x compilation is slow only for the very first time (while Process_Globals declarations or inline-C++ codes are not changed), after the first time most of compiled files are used from the cache, compilation much more fast.
 
Upvote 0

max123

Well-Known Member
Licensed User
Longtime User
Latest B4R4 + Arduino 2.x compilation is slow only for the very first time (while Process_Globals declarations or inline-C++ codes are not changed), after the first time most of compiled files are used from the cache, compilation much more fast.
Files are cashed even with old Arduino 1.8.x IDE, but it is slow, more slow compared to direct compilation on Arduino IDE using C++.
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
No idea how to compare and why. B4R is at least 3rd layer above the Arduino IDE C++ libs\native chipset C++ SDK. And actually 4th if to count the MCU assembler.
 
Upvote 0

max123

Well-Known Member
Licensed User
Longtime User
I have idea, I use Arduino IDE (1.8.x,) all the time, 8-10 hours every day, I compile 100 and more times tons of sketch every day, it is slow to compile the first time, after that cashed data are used unless l change something in ESP configuration. B4R is 3-4 times slower to compile the same simple blink led project. Even with more complex projects this not change. I've B4R installed, I like it a lot, but because this problem I don't use it, and this is not good because apart this I like it. 😉
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
B4R is 3-4 times slower to compile
Then, it may be improved, but it's not so popular product - and i'm sure this task is of low priority.
I know C++ almost zero, so B4R is OK for me.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
1. B4R works with latest version of Arduino IDE.
2. Compilation is done with Arduino CLI tool.
3. The generated objects are reused. As written above, following compilations are faster.
Other than that I don't think that there is anything that can be done to change the compilation speed as it isn't controlled by B4R. I didn't see large speed differences between B4R and Arduino IDE.
 
Upvote 0

max123

Well-Known Member
Licensed User
Longtime User
Thanks @Erel for clarifications,

I see speed differences in compilation time, may something is wrong on my system.
May I can try to uninstall and reinstall it from zero. I always had this problem.

My question is, can B4R 4.00 be used with old Arduino IDE version 1.8.x or only works with new 2.0.x (latest version) ?

Thanks
 
Upvote 0
Top