Cannot get mikroBootloader to talk to mikromedia for XMEGA

Post Reply
Author
Message
NW27
Posts: 1
Joined: 02 Dec 2011 12:47

Cannot get mikroBootloader to talk to mikromedia for XMEGA

#1 Post by NW27 » 01 Aug 2017 08:56

Hi,
This is my first time with any Mikro hardware and software.
I have bought the MikroC AVR compiler and Visual TFT software.
I plug the mikromedia into the USB port and it lights up showing the fish.
I have loaded and compiled the controls_demonstration software.

When I start the mikroBootloader from the Tools menu, it defaults to COM1 and 9600 baud. I change this to the correct com port and set the baudrate to 115200 as per screen shots in the manual.
Pressing the Connect button flashes the Conn light on the screen, says waiting for MCU response, then Disconnected.
Nothing happens on the mikromedia. The Rx/Tx on the PCB does not flash at all.

If I use a separate comms program like HyperTerminal and send 5555 at 300baud, I can see the LED on the PCB flashing.

Any other ideas?

Thanks,
Neil.

User avatar
darko.ilijevski
Posts: 581
Joined: 21 Mar 2017 16:57

Re: Cannot get mikroBootloader to talk to mikromedia for XME

#2 Post by darko.ilijevski » 02 Aug 2017 20:03

Hello,

Before we go further in your issue, I will post the link to the bootloader manual. Try following these steps (the order of doing things is important) and if you still have troubles after that, we can continue with the discussion.

https://learn.mikroe.com/mikrobootloader/

Best regards
BR,
Darko

CERR333
Posts: 4
Joined: 11 Aug 2020 15:31

Re: Cannot get mikroBootloader to talk to mikromedia for XMEGA

#3 Post by CERR333 » 11 Aug 2020 15:52

Hi,

I have the same problem with a mikroMedia XMEGA board. I followed the steps from the user manual and the mikroBootloader always disconnected it. I attached two figures to notice the message from bootloader and also that COM5 is the appropriate COM port (I do not have any other device connected). Any insights on this?

Thanks in advance
Annotation 2020-08-11 164624.png
Annotation 2020-08-11 164624.png (52.21 KiB) Viewed 2502 times
Annotation 2020-08-11 164625.png
Annotation 2020-08-11 164625.png (62.34 KiB) Viewed 2502 times

User avatar
stefan.filipovic
mikroElektronika team
Posts: 1135
Joined: 18 Dec 2018 10:30

Re: Cannot get mikroBootloader to talk to mikromedia for XMEGA

#4 Post by stefan.filipovic » 12 Aug 2020 10:38

Hi,

Welcome to the MikroE forum.

Press the Reset button on mikromedia for XMEGA board and click the Connect button within 5s, otherwise, the existing microcontroller program will run.
Have you checked in UART Terminal whether the MCU sends initial data on UART Tx upon reset? Make sure to select the proper COM port and Baud Rate.

Kind regards,
Stefan Filipović

CERR333
Posts: 4
Joined: 11 Aug 2020 15:31

Re: Cannot get mikroBootloader to talk to mikromedia for XMEGA

#5 Post by CERR333 » 13 Aug 2020 13:15

Hi,

Advice: Press the Reset button on mikromedia for XMEGA board and click the Connect button within 5s.
Answer: Yes, I have done that and nothing.

Advice: Have you checked in UART Terminal whether the MCU sends initial data on UART Tx upon reset?
Answer: I have checked this and the MCU does not send initial data upon reset.
I also tried with the Mikroelektronika Usart Terminal, it is possible to connect to COM5 and the board remains connected. I press the reset button while connected
to the USART terminal and the MCU did not send data upon reset.

Advice: Make sure to select the proper COM port and Baud Rate.
Answer: COM port is ok. It is COM5 as shown in previous images. Baud Rate is 115200 as suggested in the User Manual. Furthermore, the MikroXMEGA and XMEGA-Ready
Bootloader program does not allow to change to other value. By default it is set to 115200.

Any other advice and insights? I am also willing to program the mikroXMEGA board with an external programmer (I own the mikroProg for AVR) because i do not know what else to do. Any additional information about this?

Thanks in advance
Best regards
Attachments
Annotation 2020-08-13 135743.png
Annotation 2020-08-13 135743.png (74.36 KiB) Viewed 2491 times

User avatar
stefan.filipovic
mikroElektronika team
Posts: 1135
Joined: 18 Dec 2018 10:30

Re: Cannot get mikroBootloader to talk to mikromedia for XMEGA

#6 Post by stefan.filipovic » 13 Aug 2020 13:49

Hi,

It seems the bootloader in your mikroXMEGA board is somehow corrupted or erased, I'm afraid.

Unfortunately, mikroProg for AVR doesn't support XMEGA MCUs. Do you have any external programmer that supports ATXmega128A1 to reprogram the board with a bootloader hex file?

Kind regards,
Stefan Filipović

CERR333
Posts: 4
Joined: 11 Aug 2020 15:31

Re: Cannot get mikroBootloader to talk to mikromedia for XMEGA

#7 Post by CERR333 » 13 Aug 2020 14:14

Hi,

I do not have any programmer that supports ATXMEGA128A1. Can you provide me with another mikroMedia for XMEGA target?

Thanks in advance
Regards

User avatar
stefan.filipovic
mikroElektronika team
Posts: 1135
Joined: 18 Dec 2018 10:30

Re: Cannot get mikroBootloader to talk to mikromedia for XMEGA

#8 Post by stefan.filipovic » 13 Aug 2020 14:25

Hi,

Could you please open a ticket on our Helpdesk regarding this issue?
https://helpdesk.mikroe.com/conversation/new/3

Kind regards,
Stefan Filipović

Post Reply

Return to “mikroBootloader”