EB031 ARM Board USB Connection

For E-blocks user to discuss using E-blocks and programming for them.

Moderators: Benj, Mods

Post Reply
User avatar
Steve
Matrix Staff
Posts: 3431
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times

EB031 ARM Board USB Connection

Post by Steve »

A few of our customers have had problems with our ARM programmer board not being recognised when it is plugged into the PC. This is by design:

The ARM board does not identify itself to the PC when it is plugged in – it only boots up as a USB device when it is expecting to be reprogrammed. To do this, plug it in (with the power switch in the ‘on’ position – make sure LED1 is lit) and then perform the following sequence:

1) hold the PROG button down
2) momentarily press the RESET button
3) release the PROG button

Once this is done, the PC should sound “bong-bing” to signal the “insertion” of a USB peripheral. The first time this happens, Windows will probably go through its “New Hardware” wizard.

Hopefully this will clear up any confusion.

GPK
Posts: 11
Joined: Wed Mar 02, 2011 8:01 am

Re: EB031 ARM Board USB Connection

Post by GPK »

Hi,

I have also a problem with the USB connection. When I try to install the USB driver I got the error message :

" The current language is not supported by the Device Driver Installation Wizard"

It looks like that the USB driver ist not installed. How can I solve this problem ?

Kind regards

GPK

User avatar
DavidA
Matrix Staff
Posts: 1076
Joined: Fri Apr 23, 2010 2:18 pm
Location: Matrix Multimedia Ltd
Has thanked: 58 times
Been thanked: 258 times
Contact:

Re: EB031 ARM Board USB Connection

Post by DavidA »

Hello GPK,

Please try installing the latest drivers: http://www.matrixmultimedia.com/softwar ... rivers.zip

If you are having trouble installing them please look at our guide in the FAQ site.

http://www.matrixmultimedia.com/support ... f=30&t=615

GPK
Posts: 11
Joined: Wed Mar 02, 2011 8:01 am

Re: EB031 ARM Board USB Connection

Post by GPK »

Hi David,

thanks for your support. I could install the driver without problems now. Unfortunately it did not solve my problem.
The board is not recoginzed but Windows XP. I also looked into the device manager, but I did not find any hint of the Matrix Board. :(
When I power up the board a programm is started. I could see flashing LED at all output connectors. The reset function
is also available. Do you have an idea how I can check that the USB on the Matrix Board is ok ?

Kind regards

GPK

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: EB031 ARM Board USB Connection

Post by Benj »

Hello,

To get the board to appear in device manager simply hold the reset button while tapping the reset button. The mLoader software should also detect the board when you do this.

When the user program is running the computer will report device not recognised if the USB pins are being driven high by the microcontroller.

GPK
Posts: 11
Joined: Wed Mar 02, 2011 8:01 am

Re: EB031 ARM Board USB Connection

Post by GPK »

Hi Ben,

I followed your proposal, but nothing happend. It looks to me that the USB is broken on the board. I tested the USB ports on my PC with other USB devices and all
works fine. Any idea how I can proceed ?

Kind regards

GPK

User avatar
DavidA
Matrix Staff
Posts: 1076
Joined: Fri Apr 23, 2010 2:18 pm
Location: Matrix Multimedia Ltd
Has thanked: 58 times
Been thanked: 258 times
Contact:

Re: EB031 ARM Board USB Connection

Post by DavidA »

Hello GPK,

Do you use Flowcode for ARMs? If so what version do you use?

GPK
Posts: 11
Joined: Wed Mar 02, 2011 8:01 am

Re: EB031 ARM Board USB Connection

Post by GPK »

Hi,

I'm using Flowcode v4.3.8.64. Flowcode for ARM, Professional Version.

Kind regards

GPK

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: EB031 ARM Board USB Connection

Post by Benj »

Hello,

Firstly please make sure that you have the jumper on the board in the USB position.

If this is already in the USB position then you may have to re-flash your bootloader software. You will need to use a 32-bit machine to do this as the default Atmel Bootloader has no 64-bit driver available. The instructions can be found in the "C:\Program Files\Matrix Multimedia\Flowcode ARM V4\Tools\Bootloader" directory.

Let me know if you have any problems.

GPK
Posts: 11
Joined: Wed Mar 02, 2011 8:01 am

Re: EB031 ARM Board USB Connection

Post by GPK »

Hi,

is it required to remove the ARM daughter board ?

Kind regards

GPK

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: EB031 ARM Board USB Connection

Post by Benj »

is it required to remove the ARM daughter board ?
No you should keep the daughter board connected. You are flashing the firmware (bootloader) on the chip that is on the daughter board.

GPK
Posts: 11
Joined: Wed Mar 02, 2011 8:01 am

Re: EB031 ARM Board USB Connection

Post by GPK »

Hi,

I tried to follow the instructions in the documentation. Unfortunately I could not choose an usb connection in the SAM-BA 2.8 box. I have only
com-ports available. It looks to me that there is no USB driver installed or the board doesn't work. I installed the SAM-BA SW again but still no success. There are three items
under point 7 in the docu, but I assume I have only to do the point for EB031 ?

Any hints for me ?

Kind regards

GPK

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: EB031 ARM Board USB Connection

Post by Benj »

Hello,

The ARM board will not appear in the list of devices until you have correctly completed the TST procedure.

Power down the board
Move the TST jumper to the non default position
Power on the board
Wait at least ten seconds
Power down the board
Move the TST jumper back to the default position
Power on the board
Launch SAM-BA

If this fails then repeat the process, it cam sometimes take more then one attempt to get the SAM-BA bootloader loaded correctly.

Also note that this process will only work on 32-bit computers due to a lack of 64-bit support from Atmel.

The Atmel bootloader is also known to cause problems such as blue screens so please make sure you save all your work before trying to reflash the bootloader.

GPK
Posts: 11
Joined: Wed Mar 02, 2011 8:01 am

Re: EB031 ARM Board USB Connection

Post by GPK »

Hi,

I followed the procedure serveral times. When I start SAM-BA a window pops-up were I have to choose a port ( only com ports are available) and a board.
When I press connect I got the message that not processor is found.

Kind regards

GPK

User avatar
DavidA
Matrix Staff
Posts: 1076
Joined: Fri Apr 23, 2010 2:18 pm
Location: Matrix Multimedia Ltd
Has thanked: 58 times
Been thanked: 258 times
Contact:

Re: EB031 ARM Board USB Connection

Post by DavidA »

Hello,

After you have done the TST socket switch and left it 10seconds, then put it back to default, you should have a listing in your device manager that looks liek this:

atm6124.Sys ATMEL AT91xxxxx Test Board

Mine is listed under Universal Serial Bus controllers (Win 7)

Can you confirm that after doing the TST stage you can see this device in your device manager?

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: EB031 ARM Board USB Connection

Post by Benj »

If no device is appearing in your device manager then please check that the jumper J18 is present on the board at the right hand side (USB position) and that the jumper links are connected horizontally.

GPK
Posts: 11
Joined: Wed Mar 02, 2011 8:01 am

Re: EB031 ARM Board USB Connection

Post by GPK »

Hi,

it was the orientation of the USB jumper. I'm was now able to load the bootloader. After that I tried to download one of the flowcode example, but that did not work. I got following messages:

File name: C:\Dokumente und Einstellungen\Gerd\ARM_Programming\Examples\TUT_02.c
Generated by: Flowcode v4.3.8.64
Date: Thursday, June 02, 2011 12:30:06
Licence: Professional
Registered to: Pletz-Kirsch


http://www.matrixmultimedia.com


Launching the compiler...
C:\Programme\Matrix Multimedia\Flowcode ARM V4\Tools\MX_bats\arm7comp.bat "TUT_02" "C:\DOKUME~1\Gerd\ARM_PR~1\Examples"
In file included from TUT_02.c:37:
C:/PROGRA~1/MATRIX~1/FLOWCO~1/Tools/MX_bats/../Global/OSstubs.c:192: warning: 'struct tms' declared inside parameter list
C:/PROGRA~1/MATRIX~1/FLOWCO~1/Tools/MX_bats/../Global/OSstubs.c:192: warning: its scope is only this definition or declaration, which is probably not what you want
TUT_02.c: In function 'main':
TUT_02.c:75: warning: return type of 'main' is not 'int'

Compilation successful!

Return code = 0

Launching the linker/assembler...
C:\Programme\Matrix Multimedia\Flowcode ARM V4\Tools\MX_bats\arm7link.bat "TUT_02" at91sam7s128

C:\Dokumente und Einstellungen\Gerd\ARM_Programming\Examples>arm-elf-gcc -mcpu=arm7tdmi -O2 -Wall "C:\PROGRA~1\MATRIX~1\FLOWCO~1\Tools\MX_bats\..\Global\Cstartup.o" "TUT_02".o -lm -aln="TUT_02".lst --output "TUT_02".elf -nostartfiles -T"C:\PROGRA~1\MATRIX~1\FLOWCO~1\Tools\MX_bats\..\Global\at91sam7s128-ROM.ld" -L"C:\PROGRA~1\MATRIX~1\FLOWCO~1\Tools\MX_bats\..\arm-elf\lib" -L"C:\PROGRA~1\MATRIX~1\FLOWCO~1\Tools\MX_bats\..\lib\gcc\arm-elf\4.0.1"

C:\Dokumente und Einstellungen\Gerd\ARM_Programming\Examples>arm-elf-objcopy -O ihex "TUT_02".elf "TUT_02".hex

C:\Dokumente und Einstellungen\Gerd\ARM_Programming\Examples>arm-elf-objcopy -Osrec --srec-forceS3 "TUT_02".elf "TUT_02".s19

s19 file creation successful!

C:\Dokumente und Einstellungen\Gerd\ARM_Programming\Examples>hex2bin "TUT_02".hex
hex2bin v1.0.1, Copyright (C) 1999 Jacques Pelletier
Lowest address = 00002000
Highest address = 00005873

BIN file creation successful!

C:\Dokumente und Einstellungen\Gerd\ARM_Programming\Examples>arm-elf-readelf -s "TUT_02".elf 1>"TUT_02".fkt

ICD file creation successful!

Return code = 0

Launching the programmer...
C:\Programme\Matrix Multimedia\Flowcode ARM V4\Tools\mLoader\mLoader.exe "TUT_02.s19"
mLoader Version:2.0.4.0
Bitte ECIO/ARM anschließen und in den Programm-Modus versetzen oder auf 'Abbrechen' klicken.


The file format is not compatible with the device firmware. Your device firmware will now be updated...



..............................................................................................................................................................................................

Chip-Typ auslesen...atm6124.Sys ATMEL AT91xxxxx Test Board()



............................................................................................................................................................................................

Program senden... C:\PROGRA~1\MATRIX~1\FLOWCO~1\Tools\mLoader\\Bootloader.bin



.............................................................................................................................................................................................

Fehler beim Senden



...................................................................................................................................................................................................................................................

The device firmware update was unsuccessful. Please contact technical support.



Return code = 39

Flowcode konnte das Flussdiagramm nicht in den Microcontroller übertragen. Überprüfen Sie die Optionen der Programmer-Software und die physikalischen Verbindungen.

FINISHED


Any idea ?

Kind regards

GPK

User avatar
DavidA
Matrix Staff
Posts: 1076
Joined: Fri Apr 23, 2010 2:18 pm
Location: Matrix Multimedia Ltd
Has thanked: 58 times
Been thanked: 258 times
Contact:

Re: EB031 ARM Board USB Connection

Post by DavidA »

Hello GPK,

Did you manually input the bootloader using SAM-BA? It looks like you are sending the program to the ATMEL default bootloader rather than our bootloader.
Chip-Typ auslesen...atm6124.Sys ATMEL AT91xxxxx Test Board()
You need to follow the instructions for sending the bootloader to the device.


10. Run the SAM-BA software and you should get a window similar to the following.
arm.jpg
arm.jpg (13.81 KiB) Viewed 13174 times
11. Click Connect

12. Set the Address (2) to 0x100000

13. Click on the browse button (1) and browse to the bootloader.bin file, click Ok.

14. Click the Send File Button (3)

15. Click Yes to lock the region.

16. The bootloader is now loaded onto your AT91SAM7S device.

GPK
Posts: 11
Joined: Wed Mar 02, 2011 8:01 am

Re: EB031 ARM Board USB Connection

Post by GPK »

Hi ,

I followed the instruction and it looks like that the download of the bootloader was successful. What do I have to do now to get a programm from my PC to the ARM device ? Power off and Power on again and then downloading the programm ? I did that, but got the message that a USB device is not properly recognized and the download failed. I don't see the USB device in the hardware manager. ANy idea ?

Kind regards

GPK

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: EB031 ARM Board USB Connection

Post by Benj »

Hello GPK,

To get the program into the ARM device you should simply hit the reset button on the EB031 board when told to do so by the download tool. If you are getting an unknown device appearing in your device manager then it could just be that the program that is in the chip is toggling the USB pins causing the false detection. When you hit reset the board should connect as a HID device for a few second to detect if a program is being sent to it. If this does not happen then the HID Flowcode 4 bootloader is not loaded correctly onto the device. After this if no program is detected the program on the chip will run which as I say may again toggle the USB pin and cause a unknown device to appear.

GPK
Posts: 11
Joined: Wed Mar 02, 2011 8:01 am

Re: EB031 ARM Board USB Connection

Post by GPK »

Hi Ben,

thanks for your help. How could I install the HID Flowcode 4 bootloader ? Is it done by the Flowcode SW itself ?
I always try to load a programm to the ARM by using "Compile to Chip", but I never got the instruction to press the
the reset button.

Kind regards

GPK

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: EB031 ARM Board USB Connection

Post by Benj »

Hello,

Here is the message from Flowcode asking you to reset the device.
Bitte ECIO/ARM anschließen und in den Programm-Modus versetzen oder auf 'Abbrechen' klicken.
Instructions on how to reflash the bootloader are available from the following directory.

C:\Program Files\Matrix Multimedia\Flowcode ARM V4\Tools\Bootloader

GPK
Posts: 11
Joined: Wed Mar 02, 2011 8:01 am

Re: EB031 ARM Board USB Connection

Post by GPK »

Hi Benj and David,

many thanks for your support and your patience . At the end I loaded the bootloader again and now all works fine. :D

Kind regards

GPK

Post Reply