If you have flash issues on your system while running u-bot, do the following:
- Enable the DEBUG macro. You can do one of the following:
- Enable the macro globally by defining it in the board configuration file.
- Enable the macro locally in the module where you suspect the issue to come from.
- Add your own "printf" messages to the code to print out the content of sensitive variables.
- Attach a logic analyzer to collect the trace of all bus cycles (full set of read and write cycles).