can't connect mikroBootloader to XMEGA 128A1 board

Author
Message
mikroSeven
Posts: 161
Joined: 14 Mar 2016 10:24
Contact:

can't connect mikroBootloader to XMEGA 128A1 board

#1 Post by mikroSeven » 04 Apr 2022 10:43

Hi,

before I started this topic, I red:
viewtopic.php?f=217&t=70594
viewtopic.php?f=217&t=77081

Whatever I did, I Don't get connection from mikroBootloader to my XMEGA 128A1 board.
mikroxmega-board-large_default-1.jpg
mikroxmega-board-large_default-1.jpg (74.86 KiB) Viewed 2277 times
I'm using this manual:
https://download.mikroe.com/documents/s ... l-v100.pdf

At a point, I took my scope and measured on the 2 data pins on the board of the conn 2 ( USB )
Something is happening. Pressing connect in mikroBootloader gives some action on the scope.

After a while I ( first closed mikroBootloader ) started USARTS-terminal.


Did/checked all the port settings and did 'connect' and got connected instantly!
Shows: 'Connected to COM8'

OK!

Did Send using 'repeat sending' .

USART terminal sends and receives.
Receiving is somehow strange, but it receives!
xmage 01.jpg
xmage 01.jpg (136.79 KiB) Viewed 2277 times
Next thing I did was playing with the RX- and TX-headers.
( jumpers are placed initilaly on PC2 and PC3 )

When 1 of the jumpers is removed, USARTS terminal doesn't receive anything.
The schematic shows the headers are placed between the U2 FT232RL and the XMEGA-chip.
This all tells me that there IS a communication between the XMEGA chip and USART termial.

I mean: USART-terminal <-> PC <-> USB <-> cable <-> U2 FT232RL <-> JUMPERS PC2/PC3 <-> XMEGA chip

Now, I assume, the board is ok!


But, how to continue with connecting mikroBootloader ( to get hex-files programmed) ?

Thanks in advance. Marcel
To DIY or not to DIY

mikroSeven
Posts: 161
Joined: 14 Mar 2016 10:24
Contact:

Re: can't connect mikroBootloader to XMEGA 128A1 board

#2 Post by mikroSeven » 04 Apr 2022 10:52

When the new AVR/mikropascal programmer/debugger/JTAG is available, I want to l purchase one.

Could this solve the problem?
When doing in circuit programming?

Kind regards.
To DIY or not to DIY

mikroSeven
Posts: 161
Joined: 14 Mar 2016 10:24
Contact:

Re: can't connect mikroBootloader to XMEGA 128A1 board

#3 Post by mikroSeven » 04 Apr 2022 10:57

By the way, I don't notice R2 and R3 on the board, but they are drawn in the schematics.
To DIY or not to DIY

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: can't connect mikroBootloader to XMEGA 128A1 board

#4 Post by filip » 08 Apr 2022 10:09

Hi,

If you concluded that the board is OK, can you program the bootloader HEX and see if it working ?
https://www.mikroe.com/mikroxmega-board

Regards,
Filip.

mikroSeven
Posts: 161
Joined: 14 Mar 2016 10:24
Contact:

Re: can't connect mikroBootloader to XMEGA 128A1 board

#5 Post by mikroSeven » 08 Apr 2022 15:49

Unfortunately, it doesn't work!
Still can't get connected mikroBootloader to the board.
( have 5 of these boards, I want them to work )

As written before 'I assume the board is ok', when looking at all the actions I've been taken before.

To send that .HEX-file, first there has to be a connection.
Without connection: not able to upload the .HEX
( xmega_bootlader_firmware.hex )

Again, settings are according the manual:
mbl com.jpg
mbl com.jpg (20.08 KiB) Viewed 2254 times


Please help. Tnx in advance. Marcel
To DIY or not to DIY

mikroSeven
Posts: 161
Joined: 14 Mar 2016 10:24
Contact:

Re: can't connect mikroBootloader to XMEGA 128A1 board

#6 Post by mikroSeven » 12 Apr 2022 16:35

Oeps! Haven't somehow submit right a repley, here again, briefly:


Checked:

Atmega Clock at R1 ( coming from X1-circuit ) measured 8MHz kinda sinus/triangle shaped.

U2 FT232RL: measured 5V at pin20 (Vcc) OK!

U2 FT232RL Reset Datasheet "Active low reset pin. This can be used by an external device to reset the FT232R. If not required can be left unconnected, or pulled up to VCC."
Reset-pins measures 3.35V. Given by 4k7 over 10k to 5V from USB power in. Is ok!
( PCB shows R8[4k7] schematic shows R2. PCB shows R9[10k] schematic shows R3. )

Checked for 32kHz (X2-circuit) on CN1[PQ0/TOSC1], CN1[PQ1/TOSC2] NO signal!
Checked for 32kHz direct at X2-circuit : NO SIGNAL!
Extra: also measured during pressing CONNECT in mikroBootloader: no signal


Please help!

Tnx in advance. Kind regards. Marcel
To DIY or not to DIY

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: can't connect mikroBootloader to XMEGA 128A1 board

#7 Post by filip » 14 Apr 2022 12:37

Hi,

Do any of the other boards work with the bootloader ?

Regards,
Filip.

mikroSeven
Posts: 161
Joined: 14 Mar 2016 10:24
Contact:

Re: can't connect mikroBootloader to XMEGA 128A1 board

#8 Post by mikroSeven » 19 Apr 2022 15:57

Filip, tnx for repley.

An other board: same problems.

( for the time being, I will wait for the CODEGRIP for AVR/mikroPascal to be available,
and meanwhile I'm continuing using my MEGA2560's )

But beside, any further hints are welcome!

Kind regards. A happy mikroPascal/AVR user.
( still learning and growing )
To DIY or not to DIY

mikroSeven
Posts: 161
Joined: 14 Mar 2016 10:24
Contact:

Re: can't connect mikroBootloader to XMEGA 128A1 board

#9 Post by mikroSeven » 15 Jul 2022 18:00

Hi.

Recently, I noticed the onboard PDI connector.

Is this supported?

Found some programmer on internet but I want to be sure it is ok to use.

I noticed that in schematic that the RESET line is used when using programming over USB.
When using connectors PDI and/or JTAG: the reset line is controlled by the programmer connected to connector PDI or JTAG!

xmega128a1 prog1.jpg
xmega128a1 prog1.jpg (283.06 KiB) Viewed 1812 times

Kind regards. Marcel


By the way: will the codegrip for AVR/mikroPascal come soon?

All the controllers 'above' AVR have allready the codeGrip available!


codegrip.jpg
codegrip.jpg (214.62 KiB) Viewed 1835 times
To DIY or not to DIY

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: can't connect mikroBootloader to XMEGA 128A1 board

#10 Post by filip » 21 Jul 2022 10:48

Hi,

Yes, we have in plans to add CODEGRIP for AVR as well.

Regards,
Filip.

mikroSeven
Posts: 161
Joined: 14 Mar 2016 10:24
Contact:

Re: can't connect mikroBootloader to XMEGA 128A1 board

#11 Post by mikroSeven » 26 Jul 2022 13:56

Tnx, yes I understand.

Just got aware of the different ways of programming a microcontroller...
( ISP, JTAG, TPI, PDI, UPDI )

One day the AVR programmer will be avaiable and I can continue.


Kind regards.
To DIY or not to DIY

mikroSeven
Posts: 161
Joined: 14 Mar 2016 10:24
Contact:

Re: can't connect mikroBootloader to XMEGA 128A1 board

#12 Post by mikroSeven » 29 Sep 2022 18:17

YES! :D

Got my AVR codegrip programmer!

Thanks!
WIN_20220929_18_59_58_Pro b.jpg
WIN_20220929_18_59_58_Pro b.jpg (43.59 KiB) Viewed 1526 times




How do I connect my XMEGA128 board?

I Compared the codecrip 10-pins connector to the board connectors, but in noway it can connect the right signal.
Even not at least the Vcc and GND!

Next I did was to consult the datasheets of all the codegrip adapters. adapt, adaptV1, adaptV2, adaptV3, adaptV4 and adaptV5: no connection possible.
( my AVR codegrip came with ' adapt' )

What is the next step I have to take to get the codegrip conected to my XMEGA128 board, correctly?

Kind regards!
Marcel
To DIY or not to DIY

mikroSeven
Posts: 161
Joined: 14 Mar 2016 10:24
Contact:

Re: can't connect mikroBootloader to XMEGA 128A1 board

#13 Post by mikroSeven » 07 Oct 2022 16:24

Please, respond!

Kind regards.
To DIY or not to DIY

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: can't connect mikroBootloader to XMEGA 128A1 board

#14 Post by filip » 10 Oct 2022 08:41

Hi,

Currently we don't have an adapter board for this, but you can use wire jumpers to connect individual pins according to the connector's pinout.

Regards,
Filip.

mikroSeven
Posts: 161
Joined: 14 Mar 2016 10:24
Contact:

Re: can't connect mikroBootloader to XMEGA 128A1 board

#15 Post by mikroSeven » 10 Oct 2022 19:35

Hi.

TNX!

I made an adapter from J1 from 'CODEGRIP Adapt' to JTAG conector on my ATXMEGA128A1 board:
adapt my 01.jpg
adapt my 01.jpg (156.18 KiB) Viewed 1421 times
In codegrip the board isn't detected.
But then I noticed the board has to be connected by the PDI connector.
adapt my 03.jpg
adapt my 03.jpg (13.85 KiB) Viewed 1421 times
This 6-pins connector has a GND, a RESET and a PDI.
But the codegrip doens't show a PDI signal!
I checked all the CODEGRIP Adap inlcuding V2, V3, V4, and V5.

Then I noticed on this picture some PDI:
adapt my 02.jpg
adapt my 02.jpg (152.56 KiB) Viewed 1421 times

How to coninue?
To DIY or not to DIY

Post Reply

Return to “mikroBootloader”