Arduino IDE in Lubuntu and STM32 - text messed up in the log window

Development environment specific, Arduino, Eclipse, VS2013, Em::Blocks etc
Post Reply
User avatar
Pito
Posts: 94
Joined: Tue Dec 24, 2019 1:53 pm

Arduino IDE in Lubuntu and STM32 - text messed up in the log window

Post by Pito »

Hi, I've installed today the latest IDE and latest STM32 json and latest STM32CubeProgrammer and I get a mess in the output log text - see below.
Always after the "Linking.." line..
Any hint how to get rid of it, plz ?

PS: it prints out fine with Arduino Uno board selected..
Attachments
screen.jpg
screen.jpg (29.21 KiB) Viewed 4171 times
Last edited by Pito on Thu Feb 25, 2021 5:15 pm, edited 1 time in total.
Pukao Hats Cleaning Services Ltd.
User avatar
fpiSTM
Posts: 1738
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: Arduino IDE in Lubuntu and STM32 - text messed up in the log window

Post by fpiSTM »

Hi Pito,

unfortunately not.
I guess this is a bug in the Arduino IDE. You should open an issue on their GitHub.
ag123
Posts: 1655
Joined: Thu Dec 19, 2019 5:30 am
Answers: 24

Re: Arduino IDE in Lubuntu and STM32 - text messed up in the log window

Post by ag123 »

i'm not too sure as well as i've been seeing that every now and then
in ~/.arduino15/preferences.txt
i think there are several preference options

Code: Select all

console=true
console.auto_clear=true
console.error.file=stderr.txt
console.length=500
console.lines=4
console.output.file=stdout.txt
these don't seem to be accessible anywhere in the gui, but i'd guess you could try tweaking them to see if they help

another thing though is that I've updated my ide to 1.8.13 as i've been getting various java errors and it aborts before starting up.
https://www.arduino.cc/en/software

the jvm may matter as well i happened to be using adoptopenjdk 11
https://adoptopenjdk.net/
User avatar
Pito
Posts: 94
Joined: Tue Dec 24, 2019 1:53 pm

Re: Arduino IDE in Lubuntu and STM32 - text messed up in the log window

Post by Pito »

When I build for Arduino Uno the text after the "Linking.." is ok.
@ag123: I've done install of the latest Arduino IDE into the Lubuntu 20.04 (I've dusted off an older notebook) with no errors..
Pukao Hats Cleaning Services Ltd.
ag123
Posts: 1655
Joined: Thu Dec 19, 2019 5:30 am
Answers: 24

Re: Arduino IDE in Lubuntu and STM32 - text messed up in the log window

Post by ag123 »

well try the likes of eclipse, sloeber, VS code etc ;)
i used Arduino ide as a 'backup' primarily to verify that my codes compile as expected in Arduino ide.
in fact, i've transitioned to makefile builds, probably quite different from what everyone is dong. I'm happy to post my makefiles
there are mostly there in 'code snippets'
viewtopic.php?f=41&t=183
viewtopic.php?f=47&t=37
makefiles has made it possible for me to simply clone a project folder and make a new project, manually updating includes and defines in eclipse CDT is simply too tedious. but in eclipse CDT you can export / import the includes and defines.
another thing which i always wanted is the 'incremental build' i.e. that builds shouldn't use a temp folder as like that in arduino ide default
makefiles does that and builds is a lot faster where only few files are changed and a rebuild is required.

think i'd need to try arduino cli, it is probably the build environment in VS code and Arduino pro ide
https://www.arduino.cc/pro/arduino-pro-ide
User avatar
Pito
Posts: 94
Joined: Tue Dec 24, 2019 1:53 pm

Re: Arduino IDE in Lubuntu and STM32 - text messed up in the log window

Post by Pito »

@ag123: Well, my largest programs are still built in Sloeber and w/ Roger's core :)
I've tried (L)ubuntu and vanilla IDE+STM32 to see what is new there after some time of sleeping :) (ie. to see how difficult is the transition from Roger's core to the stm core, especially with my "code execution off the external ram")..
Pukao Hats Cleaning Services Ltd.
ag123
Posts: 1655
Joined: Thu Dec 19, 2019 5:30 am
Answers: 24

Re: Arduino IDE in Lubuntu and STM32 - text messed up in the log window

Post by ag123 »

i'd think a main diff between libmaple (roger's & steve) vs stm official core is stm core is based on hal (supports much more soc across the series) and has the cmsis libraries as part of it. but as a result a large amount of codes is evaluated each compile. in this case the more 'advanced' build chain with incremental build is a big win as most of the time the sketch and a small portion of 'libraries' (auxillary) codes are edited.
i think VS code, eclipse, sloeber, arduino cli, makefiles has it. i've yet to really dig into arduino cli to see if such 'incremental build' is supported
User avatar
Pito
Posts: 94
Joined: Tue Dec 24, 2019 1:53 pm

Re: Arduino IDE in Lubuntu and STM32 - text messed up in the log window

Post by Pito »

The garbage comes from a too long line to be printed out.
In case of the Fade example for stm32Discovery F407 board it is ~12300 chars long single line with hundreds of .o paths/files_names with switches etc..
Even if printed out properly it would cause a pretty :shock:
:(

PS: A solution seems to me to print out a simple message like "List of object files to be linked saved in the abcdefgh.log" in that line instead.
Pukao Hats Cleaning Services Ltd.
ag123
Posts: 1655
Joined: Thu Dec 19, 2019 5:30 am
Answers: 24

Re: Arduino IDE in Lubuntu and STM32 - text messed up in the log window

Post by ag123 »

i'd guess it can probably be fixed in the IDE codes, e.g. to trim long lines. But i'd guess short of compiling the gui from source.
it's probably simpler to use a different 'platform' and use arduino ide as a 'backup'
https://github.com/arduino/Arduino

i'm thinking about using the arduino cli
https://github.com/arduino/arduino-cli
https://arduino.github.io/arduino-cli/latest/
but has been dragging my feet. it is probably 'simpler' with its integration with VS code and Arduino pro ide
both VS code and Arduino pro ide are based on typescript/javascript. no longer java
and the builder i think is arduino cli
and i'd think that 'pro' one would give all the bells and whistles (reference jumps, incremental build, syntax highlights etc)
User avatar
Pito
Posts: 94
Joined: Tue Dec 24, 2019 1:53 pm

Re: Arduino IDE in Lubuntu and STM32 - text messed up in the log window

Post by Pito »

Printing ie. the 12300 chars long line is something you do not need in the log window, imho.
It should be written into a file (see above my comment on it).
I do not know yet whether it is Arduino or STM issue then..
Pukao Hats Cleaning Services Ltd.
Post Reply

Return to “IDE's”