B4R Question unlucky with B4R !!

Status
Not open for further replies.

phil31

Member
well after my bad first test on ESP32 with B4R, i try it now with an Arduino MEGA2560 board.

the compilation seem unsuccessful !
i don't understand the messages .. some help please ? :



thanks !
 

barx

Well-Known Member
Licensed User
Longtime User
Try renaming your variable.
LED_BUILTIN in a predefined arduino constant. So that may be causing the conflict.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
You haven't applied the change correctly. All these DEBUG and TRACE messages will be removed after the change.

This is the error message:
new.cpp.o (symbol from plugin): In function `operator new(unsigned int)':
(.text+0x0): multiple definition of `operator new(unsigned int, void*)'

It happens when using the wrong version of Arduino IDE.
Carefully follow the installation instructions: https://www.b4x.com/b4r.html
 
Upvote 0

phil31

Member
hi,

yes i had applyed the modif on a wrong ini file ! now DEBUG trace are away

i'm using the Arduino 1.8.12 ! .. as explain

Loading configuration...
Initializing packages...
Preparing boards...
2020-05-24T10:11:14.770Z INFO c.a.u.n.HttpConnectionManager:148 [cc.arduino.packages.discoverers.serial.SerialDiscovery] Connect to https://builder.arduino.cc/builder/v1/boards/0x1A86/0x7523, method=GET, request id=4899075738EF4680
2020-05-24T10:11:15.353Z INFO c.a.u.n.HttpConnectionManager:152 [cc.arduino.packages.discoverers.serial.SerialDiscovery] Request complete URL="https://builder.arduino.cc/builder/v1/boards/0x1A86/0x7523", method=GET, response code=404, request id=4899075738EF4680, headers={null=[HTTP/1.1 404 Not Found], Cache-Control=[no-cache, no-store, must-revalidate], Server=[nginx], Connection=[keep-alive], Vary=[Origin], Pragma=[no-cache], Expires=[0], Content-Length=[0], Date=[Sun, 24 May 2020 10:17:09 GMT]}
2020-05-24T10:11:15.355Z WARN p.a.h.BoardCloudResolver:64 [cc.arduino.packages.discoverers.serial.SerialDiscovery] Fail to get the Vid Pid information from the builder response code=404
Verifying...
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\phil\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\phil\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries \\EKO_DS\homes\phil\Arduino\libraries -fqbn=arduino:avr:mega:cpu=atmega2560 -vid-pid=1A86_7523 -ide-version=10812 -build-path Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin -warnings=none -build-cache C:\Users\phil\AppData\Local\Temp\arduino_cache_312845 -prefs=build.path=Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino5.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\src\src.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\phil\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\phil\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries \\EKO_DS\homes\phil\Arduino\libraries -fqbn=arduino:avr:mega:cpu=atmega2560 -vid-pid=1A86_7523 -ide-version=10812 -build-path Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin -warnings=none -build-cache C:\Users\phil\AppData\Local\Temp\arduino_cache_312845 -prefs=build.path=Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino5.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\src\src.ino
Using board 'mega' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Using core 'arduino' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Detecting libraries used...
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10812 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\mega" "Q:\\DRKF75~P\\SPQJNN~I\\FKXKTQ~H\\Test_B4R\\Objects\\bin\\sketch\\src.ino.cpp" -o nul
Using cached library dependencies for file: Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin\sketch\B4RArduino.cpp
Using cached library dependencies for file: Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin\sketch\B4RCore.cpp
Using cached library dependencies for file: Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin\sketch\B4RStream.cpp
Using cached library dependencies for file: Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin\sketch\Scheduler.cpp
Using cached library dependencies for file: Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin\sketch\b4r_main.cpp
Generating function prototypes...
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10812 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\mega" "Q:\\DRKF75~P\\SPQJNN~I\\FKXKTQ~H\\Test_B4R\\Objects\\bin\\sketch\\src.ino.cpp" -o "Q:\\DRKF75~P\\SPQJNN~I\\FKXKTQ~H\\Test_B4R\\Objects\\bin\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Program Files (x86)\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "Q:\\DRKF75~P\\SPQJNN~I\\FKXKTQ~H\\Test_B4R\\Objects\\bin\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
Using previously compiled file: Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin\sketch\B4RCore.cpp.o
Using previously compiled file: Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin\sketch\B4RStream.cpp.o
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10812 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\mega" "Q:\\DRKF75~P\\SPQJNN~I\\FKXKTQ~H\\Test_B4R\\Objects\\bin\\sketch\\src.ino.cpp" -o "Q:\\DRKF75~P\\SPQJNN~I\\FKXKTQ~H\\Test_B4R\\Objects\\bin\\sketch\\src.ino.cpp.o"
Using previously compiled file: Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin\sketch\B4RArduino.cpp.o
Using previously compiled file: Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin\sketch\Scheduler.cpp.o
Using previously compiled file: Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin\sketch\b4r_main.cpp.o
Compiling libraries...
Compiling core...
Couldn't deeply cache core build: Rel:
Running normal build of the core...
Using previously compiled file: Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin\core\wiring_pulse.S.o
Using previously compiled file: Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin\core\WInterrupts.c.o
Using previously compiled file: Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin\core\hooks.c.o
Using previously compiled file: Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin\core\wiring_analog.c.o
Using previously compiled file: Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin\core\wiring.c.o
Using previously compiled file: Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin\core\wiring_pulse.c.o
Using previously compiled file: Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin\core\wiring_digital.c.o
Using previously compiled file: Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin\core\wiring_shift.c.o
Using previously compiled file: Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin\core\HardwareSerial1.cpp.o
Using previously compiled file: Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin\core\CDC.cpp.o
Using previously compiled file: Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin\core\HardwareSerial.cpp.o
Using previously compiled file: Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin\core\HardwareSerial0.cpp.o
Using previously compiled file: Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin\core\IPAddress.cpp.o
Using previously compiled file: Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin\core\PluggableUSB.cpp.o
Using previously compiled file: Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin\core\HardwareSerial3.cpp.o
Using previously compiled file: Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin\core\HardwareSerial2.cpp.o
Using previously compiled file: Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin\core\USBCore.cpp.o
Using previously compiled file: Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin\core\Tone.cpp.o
Using previously compiled file: Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin\core\Print.cpp.o
Using previously compiled file: Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin\core\Stream.cpp.o
Using previously compiled file: Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin\core\WMath.cpp.o
Using previously compiled file: Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin\core\abi.cpp.o
Using previously compiled file: Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin\core\main.cpp.o
Using previously compiled file: Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin\core\WString.cpp.o
Using previously compiled file: Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin\core\new.cpp.o
Using previously compiled file: Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin\core\core.a
Linking everything together...
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections,--relax -mmcu=atmega2560 -o "Q:\\DRKF75~P\\SPQJNN~I\\FKXKTQ~H\\Test_B4R\\Objects\\bin/src.ino.elf" "Q:\\DRKF75~P\\SPQJNN~I\\FKXKTQ~H\\Test_B4R\\Objects\\bin\\sketch\\B4RArduino.cpp.o" "Q:\\DRKF75~P\\SPQJNN~I\\FKXKTQ~H\\Test_B4R\\Objects\\bin\\sketch\\B4RCore.cpp.o" "Q:\\DRKF75~P\\SPQJNN~I\\FKXKTQ~H\\Test_B4R\\Objects\\bin\\sketch\\B4RStream.cpp.o" "Q:\\DRKF75~P\\SPQJNN~I\\FKXKTQ~H\\Test_B4R\\Objects\\bin\\sketch\\Scheduler.cpp.o" "Q:\\DRKF75~P\\SPQJNN~I\\FKXKTQ~H\\Test_B4R\\Objects\\bin\\sketch\\b4r_main.cpp.o" "Q:\\DRKF75~P\\SPQJNN~I\\FKXKTQ~H\\Test_B4R\\Objects\\bin\\sketch\\src.ino.cpp.o" "Q:\\DRKF75~P\\SPQJNN~I\\FKXKTQ~H\\Test_B4R\\Objects\\bin/core\\core.a" "-LQ:\\DRKF75~P\\SPQJNN~I\\FKXKTQ~H\\Test_B4R\\Objects\\bin" -lm
new.cpp.o (symbol from plugin): In function `operator new(unsigned int)':
(.text+0x0): multiple definition of `operator new(unsigned int, void*)'
Q:\DRKF75~P\SPQJNN~I\FKXKTQ~H\Test_B4R\Objects\bin\sketch\B4RCore.cpp.o (symbol from plugin).text+0x0): first defined here
c:/program files (x86)/arduino/hardware/tools/avr/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld.exe: Disabling relaxation: it will not work with multiple definitions
collect2.exe: error: ld returned 1 exit status
exit status 1

i dont understand the error !
 
Upvote 0

phil31

Member
B4R V3.00
Arduino 1.8.12 (no other version on this PC)

the path (Paths configuration windows) point right to the 1.8.12 arduino.exe
 
Upvote 0

phil31

Member
well update to 3.31.
now compilation work and seem running on the board. i see some LED activity.

but nothing appair in the IDE terminal !
even if i click on "Connect" .. nothing appear !

but if i open the COM port with an external terminal, now i see my debug messages )

i try again on the ESP32, and there is nothing better ... firmware seem working (LEDs activity) but as soon as i open an external terminal on the COM port, LEDs freeze !
and nothing on the IDE LOG windows
maybe a hardware problem with the lines that control RTS/CTS to put the ESP in boot mode ...
 
Last edited:
Upvote 0
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…