Giter Club home page Giter Club logo

Comments (22)

dennyalbert avatar dennyalbert commented on July 21, 2024 1

Hi @trcwm,

attached please find my pof-file.
Yes I did a verify and everything seems to be ok.

apple-one.zip

Regards,

Denny

from apple-one.

alangarf avatar alangarf commented on July 21, 2024

Hey thanks for reaching out. I'll yield to @trcwm as I don't have a DE0 so not sure how it's setup.

He'll be able to help I'm sure.

from apple-one.

trcwm avatar trcwm commented on July 21, 2024

Hi @dennyalbert,

I haven't seen this issue before. My A1 boots correctly when I flash the configuration files.
Do you verify the flash contents after flashing? Could be your config flash is corrupt.
The other possibility it that Quartus does not produce the correct .pof file.
Can you attach your .pof file?

/Niels.

from apple-one.

trcwm avatar trcwm commented on July 21, 2024

Your .pof file works perfectly on my DE0 system. I'm not sure how to help you further I'm afraid.

/Niels.

from apple-one.

dennyalbert avatar dennyalbert commented on July 21, 2024

I have now tested the workflow under windows without success. Only to rule out an error with the operating system. Otherwise I use linux.

Could I have a problem with the hardware?
I have tested some examples, everything has worked without any problems.
If there is a problem with the memory, should not the verify lead to an error?

Is there a possibility to read the memory bit-by-bit and compare that with the pof-file?

from apple-one.

dennyalbert avatar dennyalbert commented on July 21, 2024

Now I have read the configuration from the board and there are many differences between the two files. How can that happen, shouldn’t be the files identical?
Attached the two files.
read&written.zip

from apple-one.

trcwm avatar trcwm commented on July 21, 2024

Have you erased the flash chip before programming? What does the blank check say?

from apple-one.

dennyalbert avatar dennyalbert commented on July 21, 2024

Yes I erased the flash chip before programming.
Do you see any differences between the files when you read a configuration?
Which devices are involved in normal operation, the EPCS4 and the FPGA itselves? Probably the EPCS4 is broken? Unfortunately, this chip is no longer available.

Output blank check:
Info (209020): Blank-checking device 1
Info (209018): Device 1 silicon ID is 0x12
Info (209011): Successfully performed operation(s)
Info (209061): Ended Programmer operation at Tue Apr 17 22:02:07 2018

from apple-one.

dennyalbert avatar dennyalbert commented on July 21, 2024

I had the opportunity to test on a second Terasic DE0 board and have the same issue.
I tried to establish a connection via the serial interface, unfortunately without success. Attached two screenshots. Do you have any idea why the connection does not work?
reset
switch_off

from apple-one.

trcwm avatar trcwm commented on July 21, 2024

Are you using a RS232 compliant serial to USB cable? A normal TTL-level cable won't work.

from apple-one.

dennyalbert avatar dennyalbert commented on July 21, 2024

I usually work with microcontrollers and have assumed that the communication works via TTL-level.
I can connect the board directly to the RS-232 interface of the computer?

A question regarding my first issue with the keyboard. Where is the switch when you power on the board, in RUN or PROG position? The pof-file is already loaded.
When I power on the board in switch position RUN I have the issue as already described. When I power on the board in switch position PROG and switch to RUN erverything is fine. Is this the normal operation?

from apple-one.

trcwm avatar trcwm commented on July 21, 2024

Yes, the DE0 has a level translator (unlike many other boards) and it is directly compatible with an RS232 COM port.

I power cycle the DE0 when changing the position of the RUN/PROG switch. I have never seen it misbehave in either state.

When I power up in the PROG state, the DE0 does nothing. When I power up in the RUN state (and the flash has been programmed), my A1 works as intended.

from apple-one.

dennyalbert avatar dennyalbert commented on July 21, 2024

This is really annoying that two boards behave differently.
Just to clarify, do I only need to load the pof-file or do I have to do some other configurations like for unused pins?

from apple-one.

trcwm avatar trcwm commented on July 21, 2024

To my knowledge there are no additional requirements to make the A1 run from config flash.
You board seems to work ok if the configuration was loaded directly from the PC. My best guess is that your config flash is not working properly.

from apple-one.

dennyalbert avatar dennyalbert commented on July 21, 2024

This was also my first guess that the config flash is the problem. But the same issue with two new boards? Unfortunately the EPCS4 is no longer available.

from apple-one.

trcwm avatar trcwm commented on July 21, 2024

If two new boards have the same problem, it's not the EPCS4.

Try the attached .pof file - that's the one I used.
apple-one-DE0-pof-sof.zip

from apple-one.

dennyalbert avatar dennyalbert commented on July 21, 2024

Unfortunately I have the same problem with your files.

from apple-one.

dennyalbert avatar dennyalbert commented on July 21, 2024

Now I have built a cable for the serial port as described in the picture. I can receive characters but not send. Is there something special to do? Can the PS/2 keyboard stay connected?
cable
serial

from apple-one.

trcwm avatar trcwm commented on July 21, 2024

If I'm not mistaken, the code will only transmit the data sent to the VGA to the UART.
The functionality to get the keyboard data from the UART is disabled by default.
You have to set the 'ps2_select' value in apple1_de0_top.v to zero.

from apple-one.

dennyalbert avatar dennyalbert commented on July 21, 2024

I'm getting closer to the problem. The keyboard (Fujitsu KB400) itself seems to be the problem.
If I supply the keyboard with voltage prior to the FPGA everything works.
The same effect occurs if I press and hold the reset button (Button 0) before switching on and release afterwards.
Any ideas how to fix the problem?

from apple-one.

dennyalbert avatar dennyalbert commented on July 21, 2024

Now I was able to test with an old AT keyboard (PS/2 adapter) and can confirm my guess that the Fujitsu keyboard was the problem.

from apple-one.

alangarf avatar alangarf commented on July 21, 2024

Glad you solved it! 👍 how annoying 😄

from apple-one.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.