RA2E1 : Weird characters printed on serial terminal

Hello, 

I am using EK-RA2E1 board with device R7FA2E1A92DFM.

I am trying to boot the application using UART and xmodem.

I have set the baudrate at 115200 bps at both the (primary and secondary) applications (usng swap upgrade mode) and teraterm is connected at 115200 bps. (see the images below). 

Attaching the clock settings below too. 

But I see weird characters printed on TeraTerm (see image below).  

I tried the same with 9600 bps too but same output. 

Thank You.

Parents Reply Children
  • Hi Keniz,

    As discussed in private try to put a logic analyzer to see how the messages are transmitted through the MCU side. If the messages are OK, try to use an other USB to UART converter.

    Thanks!

    Best Regards,

    IK

  • Hi, 

    Okay, will do that and get back to you. 

    Thank You. 

    Kind Regards,

    Keniz Gandhi

  • Hello Keniz,

    I managed to  create the UART bootloader for RA2E1, which performs firmware update through XMODEM by using Tera Term.

    Let me give you some more information.

    I have created an initial bootloader project with MCU boot which is using the Swap Upgrade Mode.

    The project is called ra2e1_bootloader you will find it in the .zip folder I have attached for you.

    I also have two different applications the ra2e1_app_primary and the ra2e1_app_secondary application.

    The first application as soon as it loads it turns on a LED on pin P015 of RA2E1 and prints the available information from the menu for the downloader that has been developed and uses the XMODEM to load later the secondary application.

    The Serial Port is configured in Tera Term to work also in 115200 bps.

    As soon as I load the ra2e1_app_primary application project, I see:

    I see that the menu is displayed and if I press 1 I get the image slot information. And the led on pin P015 turns on.

    As soon as I press 2, I see that I can load through XMODEM my new application.

    And as soon as the file is transferred, I see the message that I should wait until the system is resetting and after reset the image from ra2e1_app_secondary is loaded.

    I see that user LED2 turns on, which is configured in the code of the secondary application and if I press 1 again in the menu I see:

    I read the swapped memory layout again.

    All projects are baremetal as you requested. Slight smile

    MCUBOOT_UART_XMODEM_RA2E1_BAREMETAL.zip

    In case you are still facing issues with the way the characters are printed on your serial terminal, please let me inform you that there is nothing more that we can do for you, since the project as you can see works with no issues for us.

    Test the code without making any modifications, please.

    Thanks for your cooperation!

    Best Regards,

    IK_Renesas