Pizus

Spartan 3E Starter Kit problem

11 posts in this topic

Hello everyone,

i was blowing away the dust from my S3E starter kit to play with it at home.

All went fine...no smoke I mean. I programmed the ZPUino (the Alvie file zpuino-1.0-S3EEvalBoard-S3E500.bit ) but when I tried to run the demo sketch, I got an "Unknown flash type" error.

It is a long time since I played with the ZPU, so maybe I am doing something silly..but at around midnight, I am not yet out of it, so I must ask for some help and go to sleep.

 

Bye

Pizus

 

Share this post


Link to post
Share on other sites

Hi guys,

 

Same here - "Unknown flash type" error. Maybe some jumper setting is needed on S3E board?

 

Best regards,

Dominik

Share this post


Link to post
Share on other sites

This seems to happen with some boards (I suspect Digilent ones), design works fine in my Official S3ESK.

 

The issue is some increased delay of the SPI flash, and can be corrected easily. I'm synthesizing a new bitfile with some more safe values.

 

I'll let you know when it's done.

Share this post


Link to post
Share on other sites

HI Alvie,

I tried the bit file, but Impact does not allow me to assign it to the S3E. "A BIT file describing an is about to be assigned to a device identified as an XC300S500E". Frankly, i did not undesrtand what it meant. Maybe you compiled the project with a different device target?.

 

Bye

Pizus

Share this post


Link to post
Share on other sites

Er, looks like the file was missing some bytes (should be 283883 bytes long).

 

Care to download again ?

Share this post


Link to post
Share on other sites

I have just downloaded the image you have proposed and it works for me. I have a Digilent s3e board. However, when I am using the zpuinoprogrammer, I am now getting:

sudo ZPUino-master/build/linux/zpu-tools32/zpu/bin/zpuinoprogrammer -v -R -s 115200 -d /dev/ttyUSB0 -b ~/Downloads/s3e_demo\(2\).bin
Got programmer version 1.9
SPI offset: 0
CODE size: 28544
Board: Spartan 3E Starter Kit S3E500 @ 96000000 Hz (0x83010f00)
SPI flash information: 0x20 0x20 0x15, status 0x00
Detected M25P16 flash
Will program sector 0 (page 0), original offset 0x00000000
Need to program 2812 2816 bytes (11 pages)
File '/home/spanosa/Downloads/s3e_demo(2).bin' does not appear to be a sketch: 0x00000000 != 0x310afade

 

I am using the example binary that can be found here.

I have two questions:

  1. How do I build the pde?
  2. Would you have an idea why this command doesn't work?

 

 

Share this post


Link to post
Share on other sites

So I managed to compile and download the .pde by:

  1. ZPUino, git respository clone
  2. cd ZPUino-master/build
  3. Remove all @Override commands from the .java source.
  4. Build by typing ant
  5. Running the arduino binary located under ZPUino-master/build/linux/work/

After this, I copied the pde source code in the IDE and continued. This worked for me.

Share this post


Link to post
Share on other sites

Hi Alvie,

So I have checked out the version:
 

commit e76688199439f35504343f536c9fd9cfc82e7682
Author: Alvaro <alvieboy@alvie.com>
Date:   Sat Jul 16 18:37:13 2011 +0100

    boards: fix up some boards

because it is my understanding based on the board ID and the behavior of the binary that this is the one whose binary can be found here.

As it is expected I am getting the same error, e.g. Unknown flash type ... Exiting. Could you please let me know which version of the code leads to the binary that you attached on this comment?

All the best,

Angelos

Share this post


Link to post
Share on other sites

OK. Nevermind, so I checkout version 9f7b0ff26d0654b875a95ff8165462f771cd75c9 and this worked great for me.

Many thanks for sharing such an amazing project!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now