Home › Forums › Mastering STM32 book support forum › empty startup tab
- This topic has 7 replies, 2 voices, and was last updated 8 years, 7 months ago by Anonymous.
-
AuthorPosts
-
April 25, 2016 at 3:51 pm #2553AnonymousInactive
Hi again,
When configurating the debugger, I get an empty window by selecting the Startup tab.
Any tips to fix this issue?
I add 3 pictures, with the installed plugins, the debugger tab and the empty startup tab.
Thanks,
Pedro.April 26, 2016 at 6:11 am #2564Carmine NovielloKeymasterUh, that looks strange. There is a problem related to the Eclipse installation or one of the GNU ARM Eclipse plug-ins.
Take a look to the Eclipse error log (go inside Windows->Show View->Other and enable the entry ErrorLog). When you run the debug configuration something should appear in the error log.
Let me know.
April 26, 2016 at 3:38 pm #2574AnonymousInactiveSalve 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.April 26, 2016 at 4:16 pm #2576Carmine NovielloKeymasterHi Pedro,
I checked my pilot installation and it has the same issue. However, I discovered that if you resize the window, all fields appear!!!!- This reply was modified 8 years, 7 months ago by Carmine Noviello.
April 27, 2016 at 8:40 am #2581AnonymousInactiveHi 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.April 27, 2016 at 9:06 am #2583Carmine NovielloKeymasterHi Pedro,
if you are using the sprintf() C function to convert a float to string, then you need to enable the float support in the Project settings->Cross ARM C++ Linker->Miscellaneous->Use float with scanf().April 27, 2016 at 9:31 am #2585AnonymousInactiveThanks 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
}April 27, 2016 at 11:49 am #2587AnonymousInactivePerfect!
voltaje15v = (float)((lecturaADC*15.0/4096.0)+0.005); //redondeo al segundo decimal
sprintf(cadenaADC,”%2.2fV”,voltaje15v);Grazie. Saluti,
Pedro. -
AuthorPosts
- You must be logged in to reply to this topic.