Working with EB031

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

Moderators: Benj, Mods

Post Reply
sudheeramrabadi123
Posts: 7
Joined: Fri Jun 06, 2014 8:53 am
Contact:

Working with EB031

Post by sudheeramrabadi123 »

I have got EB-031 ARM AT91sam7s128 board with a cd.
I got vexed to search whole web and could not get actual method of dumping and working.
Could any one please help me out how to start working with EB031 from starting opening the kit and dumping and verify output using mloader...

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: Working with EB031

Post by Benj »

Hello,

Are you using the Flowcode software? If then which version are you using?

If not then what compiler/IDE are you using?

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: Working with EB031

Post by Benj »

From another post you mention your using Flowcode 6. Can you use the Help -> Check for updates menu to check you are running the latest 6.0.7 release.

There isn't a driver as such for the EB031 board as it uses the HID USB system which is driverless on a Windows PC.

You should open Flowcode and start a new project, select the ARM chips, select the Misc from the family drop down and finally select the EB031 from the list.

If you have selected the chip instead of the EB031 then you can use the Build -> Project options menu to change the chip to the EB031.

Create your program and then click the compile to chip button. If all went well then mLoader will popup and ask you to reset the board. Press and release the reset button on the EB031 ensuring the jumper is in the USB setting and mLoader should then start to program the board.

Any problems let me know.

sudheeramrabadi123
Posts: 7
Joined: Fri Jun 06, 2014 8:53 am
Contact:

Re: Working with EB031

Post by sudheeramrabadi123 »

Target folder: C:\DOCUME~1\sudheer\Desktop
Source name: C:\Documents and Settings\sudheer\Desktop\ex forum.fcfx
Title:
Description:
Device: ARM.AT91SAM7S.EB031
Generated by: Flowcode v6.0.7.0
Date: Monday, June 09, 2014 09:51:49
Users: 0
Registered to: 58062347
Licence key: HNZ6VY
NOT FOR COMMERCIAL USE
http://www.matrixltd.com
Launching the compiler...
C:\Program Files\Flowcode 6\compilers\arm\batchfiles\arm7comp.bat "ex forum" "C:\DOCUME~1\sudheer\Desktop\"
Launching compiler...

Compilation successful!
Completed compilation, return = 0

Launching the linker/assembler...
C:\Program Files\Flowcode 6\compilers\arm\batchfiles\arm7link.bat "ex forum" at91sam7s128

C:\DOCUME~1\sudheer\Desktop>arm-elf-gcc -mcpu=arm7tdmi -O2 -Wall "C:\PROGRA~1\FLOWCO~1\COMPIL~1\arm\BATCHF~1\..\Global\Cstartup.o" "ex forum".o -lm -aln="ex forum".lst --output "ex forum".elf -nostartfiles -T"C:\PROGRA~1\FLOWCO~1\COMPIL~1\arm\BATCHF~1\..\Global\at91sam7s128-ROM.ld" -L"C:\PROGRA~1\FLOWCO~1\COMPIL~1\arm\BATCHF~1\..\arm-elf\lib" -L"C:\PROGRA~1\FLOWCO~1\COMPIL~1\arm\BATCHF~1\..\lib\gcc\arm-elf\4.0.1"

C:\DOCUME~1\sudheer\Desktop>arm-elf-objcopy -O ihex "ex forum".elf "ex forum".hex

C:\DOCUME~1\sudheer\Desktop>arm-elf-objcopy -Osrec --srec-forceS3 "ex forum".elf "ex forum".s19

s19 file creation successful!

C:\DOCUME~1\sudheer\Desktop>hex2bin "ex forum".hex
hex2bin v1.0.1, Copyright (C) 1999 Jacques Pelletier
Lowest address = 00002000
Highest address = 00005A07

BIN file creation successful!

C:\DOCUME~1\sudheer\Desktop>arm-elf-readelf -s "ex forum".elf 1>"ex forum".fkt

ICD file creation successful!

Launching the programmer...
C:\Program Files\Flowcode 6\tools\mLoader\mLoader.exe -eb0310 "ex forum.s19"

C:\Program Files\Flowcode 6\tools\mLoader\mLoader.exe reported error code -1073741515


FINISHED



According to the steps what I got, ifollowed the same.
1.Open flowcode 6.0.7.0.
->new project
->MISC->EB031
-> created small Output port blinking.
-> Run the simulation, working fine
-> Click "compile to chip" and the error is of this.

Could you please help me what might be the problem.

sudheeramrabadi123
Posts: 7
Joined: Fri Jun 06, 2014 8:53 am
Contact:

Re: Working with EB031

Post by sudheeramrabadi123 »

Also I have tried in other way that is generating .bin from flow-code and dump into the target using m Loader according following steps:

1. Putting power switch on OFF state
2. Changing TST jumper to TST state
3. Putting power switch on ON state
4. Waiting for 10 sec
5. Putting power switch on OFF state
6. Changing TST jumpper to Default state
7. Putting power switch on ON state
8. From SAM-BA Loading boot-loader from following path "C:\Program Files\Matrix Multimedia\Flowcode ARM V4\Tools\mLoader"
9. Setting address in samba as 0x100000
10. Pushing send button and two times pushing yes to Unlock and Than to Lock regions (7 to 7)
11. After this Closing SAM-BA and opening mLoader
12. Holding PROG button on board for 1 to 2 minutes(i.e., 100 - 160 seconds).
13. On the bottom mLoader shows following "Connected to: atm6124.Sys ATMEL AT91xxxxx Test Board" and at the end of line there is such text "Bootloader:" no text after Bootloader seems that there should be firmware version.
14. Choosing File that I want to load (i.e., .bin file).
15. Pushing Send button and program hangs at this point with message showing "Updating Firmware". I have waited for 2 mins and got following response "Bad responce from device, can not send file!"

As I have seen these steps from other forum which suggest in success.

sudheeramrabadi123
Posts: 7
Joined: Fri Jun 06, 2014 8:53 am
Contact:

Re: Working with EB031

Post by sudheeramrabadi123 »

Please any body conclude me whether problem with hardware or my procedure as I have given details of two methods I have worked.

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: Working with EB031

Post by DavidA »

Hello,

Please try the method and program laid out in this file:

http://www.matrixmultimedia.com/temp/La ... loader.zip

sudheeramrabadi123
Posts: 7
Joined: Fri Jun 06, 2014 8:53 am
Contact:

Re: Working with EB031

Post by sudheeramrabadi123 »

Dear Matrix
I got the same result even with Flowcode, and tried using m loader directly but no output.

-> "Badresponce from device" when done by m loader

-> C:\Program Files\Flowcode 6\tools\mLoader\mLoader.exe reported error code -1073741515 when doing from flowcode.

Post Reply