B4R Question New to B4R - Log's problem

phil31

Member
Hello all,
i'm trying my first "hello world" with B4R )
i use an ESP32-WROOM-32U module.

i can't see any log output inside the B4R IDE.
i do a sample example wich blink a led and send some strings with the UART.
the LED is blinking right but don't see anything as LOG information

when i run an external Terminal app (like Docklight), it seem that the ESP32 board hang (the LED stop to blink !) ..

what i'm missing please ? the installation is fresh. did i install something else ?



thanks for any tips, regards
Phil
 

RJB

Active Member
Licensed User
Longtime User
You sometimes have to put a delay before the 'log("AppStart")', try 5 seconds to be sure. Then you should get the log for that at least.
But that doesn't explain the other missing logs. Try a log before the first ' PinState = ' to make sure nothing strange is going on there.
 
Upvote 0

miker2069

Active Member
Licensed User
Longtime User
A few things to check:

Do you have the correct board manager selected for your ESP32?
Do you have Arduino IDE running with the COM port outpout window open (sometimes this creates conflicts and you have to shutdown/reboot the machine entirely)
Can you perform a Serial.println in Arduino IDE with the same USB cable, COM Port, and buad rate?
Try slowing down the buad rate to 9600
Swapping out USB cables
Change to a different comm port

The biggest thing would be with the exact same board/com port/buad rate try it in Arduino IDE
 
Upvote 0

phil31

Member
hi

this a specific board with an ESP-WROOM.
so i don't know exactly which board i need to select in the board selector.
i selected the "ODROID ESP32" ( and try with some others too)

this board is perfectly working when i use another kind of compilers (i succesfull use the Nanoframework with Visual Studio)
i'm using the uart debug until 1Mbps withtout any trouble !

nothing else use the COM port. Arduino IDE is not running.


i simplmy fir test, without Timer.
same, LED blink as expected but nothing in the IDE logs windows. the LED of the RX UART/USB converter is blinking, so i think that the ESP send rightr something to the PC.

 
Upvote 0

phil31

Member
i switch off all IDE and the ESP32.

i switch ON the ESP32, i see the LED blinking and the LED RX on the USB/TTL converter.
as soon as i open the COM port on my terminal, the ESP32 freeze ! .. no more LED blink !

strange .. any ideas ?
thanks
 
Upvote 0

miker2069

Active Member
Licensed User
Longtime User
Silly question what error occurs when you press the connect button?

Could you try a USB 2.0 Port vs USB 3.0 port?
 
Upvote 0

Mark Read

Well-Known Member
Licensed User
Longtime User
I cannot see in the image you have posted but does the word "AppStart" appear in the log? If not, nothing else will work as the app does not seem to be running.
Also as Miker has just said, try pressing Connect, as in the image you are not connected.

Just another thought: I am not sure but I think the Do..Loop will not be executed as you have not said what should be true. Which means even if the app runs, there will be nothing to see apart from "AppStart"!
 
Upvote 0

phil31

Member
miker2069 : the board seem stop working - no more LED are blinking !

mark35at
does the word "AppStart" appear in the log? ==> NO, only "********** PROGRAMMING STARTING" in red
(but notice that my LED on the board is blinking .. then the fw run !)
click on "connect" FREEZE the board ! the onboard LED stop to blink.
before i click on "Connect", the LED is blinking and the LED on the USB/TTL converter blink each second too ..

something let me think that maybe some handshaking (where ? !) is required ?


"Do Loop true" will run indefinitly ! the condition is "true" !

again, all the hardware are working with others compilers on this PC !.
ESP32 is working, USB/TTL converter working, Terminal ..

anyone can send me the simplest firmware, for ESP32, which will activate some data on the UART ?

thanks
 
Last edited:
Upvote 0

phil31

Member
here it is..



but i think the problem may be hard.
what is the method used by B4R to flash the firmware ?
for the ESP, the boot mode need to be activate by switching IO pin during reset.
i don't remember exactly, but i'm using surely RTS/CTS lines of my USB/TTL converter, to do this switching.

is there any recommended schematic for B4R method ?

again, the actual hardware is working with the Nanoframwork / Visual studio IDE ! board flashing and debug outputs .. all work like a charm !

thanks
 
Upvote 0

phil31

Member
i dont want to activate the timer !
endless loop i just to validate the full programming/debugging !

so as i can flash the board with Arduino too, no hardware compatibility issue !

where may be the problem ?
thanks
 
Upvote 0

phil31

Member
Please, re read the threads.
the firmware seem running as expected , as i see the LEDs blinking !
the LED on the USB/TTL converter blink too.. so th ESP32 seem sending something via the UART.
the endless loop seem working as expected !

the problem is i can't read anything on the Logs windows of the IDE. "connect" do nothing

and if i open the COM port with an external terminal, then the ESP seem to hang.. no more LEDs blink !
 
Upvote 0

miker2069

Active Member
Licensed User
Longtime User
is this a physical computer or a VM? Do you have any other boards like a NodeMCU esp8266 based board to try?
What's the link to where you purchased the ESP32 board you're using?
 
Upvote 0

phil31

Member
physical PC.
it's a specific board which include an ESP32-WROOM-32U.

again .. all the stuff are working with Arduino IDE or VisualStudio / Nanoframework ..
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…