Forum Replies Created
-
AuthorPosts
-
pedro
ParticipantI use kubuntu 18.04.
Eclipse IDE 2019-06 works fine with openjdk-11.But I can’t run stm32CubeProgrammer due to the openjfx problem.
Openjfx needs openjdk-8, which is available for ubuntu 18.04 but I do need openjdk-11 for other programs so I will not install openjfx until the issue is solved.
I have read that I could compile myself openjfx to allow openjdk-11 compatibility but I’m not sure.
I don’t want to install oracle-java.Then, I will stick to eclipse + st-flash as explained in the old versions of the book.
pedro
ParticipantHi Carmine,
I have found some more typos-page 629 portmarco.h instead of portmacro.h (section 22.2.1)
-page 645 chapter 13 instead of chapter 19 (the link is correct) (section 22.4.1.3)Thanks for writing this book!
Pedro.pedro
ParticipantThanks, Carmine.
I’ll give it a try.
pedro
ParticipantHi
Sorry, I have seen this post this morning…
-Download stlink-master.zip from https://github.com/texane/stlink to ~/STM32Toolchain
-unzip it
-Dependencies in my system (kubuntu) autoconf automake automake1.4 m4 autotools-dev libusb-1.0-0 libusb-1.0-0-dev– $ cd ~/STM32Toolchain/stlink-master
– $ ./autogen.sh
– $ ./configure
– $ make
– $ sudo make install-Copy 49-stlinkv2.rules to /etc/udev/rules.d
In Eclipse
– Run->External Tools->External Tools configuration
New Icon (as described in the book for openOCD
Main tab
Name st-linkv2
Locations /usr/local/bin/st-flash
Working Directory ${project_loc}/Release
Arguments write ${project_name}.bin 0x8000000
Click on Apply
Click on RunRemember to set the output file format to Raw Binary
-Project->Properties
C/C++ Build-> Settings
Tool Settings, Cross ARM GNU Create Flash Image-> General
Output file Format (-O) Raw binary
Click Apply and OKRegards,
Pedro.pedro
ParticipantPerfect!
voltaje15v = (float)((lecturaADC*15.0/4096.0)+0.005); //redondeo al segundo decimal
sprintf(cadenaADC,”%2.2fV”,voltaje15v);Grazie. Saluti,
Pedro.pedro
ParticipantThanks again,
I have the “Use float with nano scanf(-u_scanf_float) unchecked. I will try it later.
By now I have made this function.(I commenti sono in spagnolo, ma penso che un italiano capisca.)
void ADCstring15v (char cadenaADC[6], uint32_t lecturaADC)
{
float voltaje15v, f2;
uint32_t d1, d2;//Convierto la lectura desde el rango de 3V3 al de 15V
voltaje15v = (float)((lecturaADC*15.0/4096.0)+0.005); //redondeo al segundo decimal
d1 = voltaje15v; //d1 parte entera del float voltaje15v
f2 = voltaje15v – d1; //parte decimal del float voltaje15v
d2 = trunc(f2*100); //parte decimal convertida a numero entero
//float to string en formato d1.d2
sprintf(cadenaADC, “%2i.%02iV”,d1,d2); //float como string con 2 decimales
}pedro
ParticipantHi Carmine,
I have been playing with scrolling, resizing, moving, changing display and doing everything for ten minutes and the display it is still empty at the startup tab.
I will use kepler until neon is ready. Or maybe not if kepler fulfils my needs.
Now, I’m going to struggle with HAL_UART_Transmit and float to string conversion in order to print to a LCD display.
Thank you very much for your time.
Saluti,
Pedro.pedro
ParticipantSalve Carmine,
I have installed eclipse mars 2 and all the toolchain from scratch, with the same results. The Errorlog entry didn’t show any hint to find out the problem.
Then, I have re-installed the toolchain, but this time using eclipse kepler and everything is working fine.
Saluti,
Pedro.pedro
ParticipantGrazie Carmine,
Adesso è tuuto più chiaro.
Saluti,
Pedro.1 user thanked author for this post.
-
AuthorPosts