Printf output in HEW using SEGGER Eval Software for RPBRX62N [UPD]

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Printf output in HEW using SEGGER Eval Software for RPBRX62N [UPD]

    Dear users,

    I work in project and we use RPBRX62N board from Renesas with SEGGER Eval Software for RPBRX62N. I run project called 'Start_RX62N'. Everything works fine, but I can't find way to redirect printf output to HEW Debug console. My question is how I can use console for showing printf messages?

    In my project I use stdio.h. Probably I need to configure HEW? Or probably I need to configure SEGGER software?

    Thanks.

    UPD0:
    Now I understand that I should use embOSView tool for system analysis. But how I can configure it? If I understand correctly I need to use J-Link interface to communicate with RPBRX62N. But what settings actually I need? Thanks.

    The post was edited 1 time, last by PavelMorozkin ().

  • Hello Pavel,

    embOSView with RX runs via serial communication.
    Since the RPBR62N has no uart connector you cannot use it.

    But you can use printf() with HEW.
    You need some additional files which are part of the embOS shipment but also be generated by the HEW project generator.
    These files enables the printf() functionality, you will see the output in the HEW terminal window.
    The files are named lowsrc.c, lowsrc.h and lowlvl_DebugConsole.src.

    Do you use Renesas compiler or KPIT GCC compiler?
    I will send you the files in a separate email.

    Best regards,
    Til
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • Dear Til,

    Thank you for the support. I am newbie in using of SEGGER software with HEW and Renesas board. Sorry for obvious questions.

    0. I use Renesas compiler.

    1. I've read the manual «Adding Printf and Scanf Support». I've downloaded example called «RX_printf». If I choose Sim_Output build configuration it works and I can use simulated I/O. Good.

    2. But when I choose 'DebugConsole_Output and SessionRX600_E1_E20_SYSTEM', HEW says that target device missing. Ok, probably because I use RPBR62N. How I can run this example with RPBR62N?

    3. I've tried to use lowsrc.c and lowlvl_DebugConsole.src in project called 'Start_RX62N'. Please, tell me how I can configure 'Start_RX62N' project for printf support? I've attached some screenshots for better understanding what I did.

    4. If I understand correctly I need to use this function call: printf -> _Printf -> write -> charput. But current project 'Start_RX62N' uses this function call: printf -> _Printf -> prout -> fwrite ->... . How I can change it?

    Thank you,
    Pavel
    Images
    • img_01.jpg

      129.54 kB, 1,280×1,024, viewed 1,240 times
    • img_02.jpg

      176.51 kB, 1,280×1,024, viewed 1,416 times
    • img_03.jpg

      215.95 kB, 1,280×1,024, viewed 1,284 times

    The post was edited 1 time, last by PavelMorozkin ().