Hi,
We went over your suggestions yesterday and we got it to work (more or less), thanks. A few general questions since then:
1) The DE1-SoC board takes about 2h to setup. It is incredibly inconsistent, sometimes just plugging it in works within the minute, sometimes never. I am on mac using the provided VirtualBox, the problem is doesn't seem to be the VirtualBox. Any ideas how to resolve this or what to pay attention to?
2) We have an internal error 82 with the jtag server not found; fixes proposed on the internet and various restarts of everything do not work.
3) We managed to measure the time it takes to IORD and IOWR to correct our future measures, IORD was measured using the counter values and we get 0.7us and IOWR using the logic analyzer, we get 20us. The former seems extremely fast, or isn't it?
We'd like to go over the important tasks with you on Monday but if we spend that time solving the above issues we won't have time for it, therefore we would highly appreciate even guesses as to how to solve these issues. So far we feel like we've spent 20% of our time working on the lab and 80% debugging these useless issues.
Thanks in advance,
Filip & Jakob
PS: for those of you stuck as we are, here is our troubleshooting list since we started with these labs:
// offset in macros is offset in bytes - just don't
// one-hot coding for values, key/led 0 is lsb
// led=1 means active, button pressed is 0
// use 16bit i/o just for safety as there are 10leds
// elf file to find by browsing files, "locate .elf" in terminal
// javalange exception -> restart eclipse
// recipe for target public.mk failed, right click lab1_bsp, nios 2, generate & should be ok
// binary not found -> do elf file not found step and it magically works even if nothing really changes