Closed NeuerUser closed 5 years ago
Yes, you should see "Hello, world!" printed onto the console on the telnet port if this program works.
As for the "SECTOR ERASE FAILED" message, I've chased it down some. The issue appears to be that the flash isn't setting the status register properly to indicate that the flash is busy. Hence, the controller checks the results of the (still in progress) erase, reads that the erase is no longer busy (when it is), and then starts to read from memory--getting a bad result. When you read from the flash later, once the flash has finished erasing the memory, then the zipload program sees that the erase is no longer needed and then successfully programs the flash.
Given that the flash isn't returning the right value, I'm not yet certain how to "break the protocol" to fix things. Perhaps reading the status register twice?
Next, you will also need to rebuild the hello.c program since I adjusted the board linkscript that it depends on. That and your problem may be the SDRAM, so let's make sure that the memtest passes first. Based upon your other issue, it isn't.
Now working after fixing SDRAM. :+1:
I'm having problems to get any output from the test program "hello".
When I start zipload 'hello' the first time, I get an error:
This seems to be the flash erase.
Starting a second time, no flash erase is done. Instead the code is written:
After taking this 8,5 min, there is no output visible, neither on telnet session, nor on the netuart console.
If I read the code correctly (which is rather small), it should output "Hello, world!".