Sunday , 18 April 2021
iten

empty startup tab


Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2553
    pedro
    Participant

    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.

    Attachments:
    You must be logged in to view attached files.
    #2564
    Carmine Noviello
    Keymaster

    Uh, 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.

    #2574
    pedro
    Participant

    Salve 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.

    #2576
    Carmine Noviello
    Keymaster

    Hi Pedro,
    I checked my pilot installation and it has the same issue. However, I discovered that if you resize the window, all fields appear!!!!

    #2581
    pedro
    Participant

    Hi 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.

    #2583
    Carmine Noviello
    Keymaster

    Hi 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().

    #2585
    pedro
    Participant

    Thanks 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
    }

    #2587
    pedro
    Participant

    Perfect!

    voltaje15v = (float)((lecturaADC*15.0/4096.0)+0.005); //redondeo al segundo decimal
    sprintf(cadenaADC,”%2.2fV”,voltaje15v);

    Grazie. Saluti,
    Pedro.


Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.