I have some issues while running u-boot. How can I find out what's going wrong?
In case you are having some flash issues on your system, it is highly recommended to first start by enabling the “DEBUG” macro either globally by defining it in the board configuration file, or locally in the module where you suspect the issue to come from. You will get some additional debug information which in many cases will help you get a better understanding of the root cause of your issue. You could also add your own "printf" messages to the code to print out the content of some sensitive variables. As a next debugging step, it is recommended to attach a logic analyzer to collect the trace of all bus cycles (full set of read and write cycles).