
Hi
I am trying to debug the NAND driver (U-boot 2016.09) and ran into the following issue: After changing target CC options to -Og -g in the Makefile and building U-Boot the debugger doesn’t show the value for the nand_chip structure and tells me that is has been optimized out. Also, I can view all values of the MTD structure, but the pointer to the chip structured shows the same. Marking the chip structure as volatile does not change the behavior. So, why is just this structure optimized out and how can I fix this?
BTW: I do not have such problems debugging U-Boot 2013.

On Wed, Jan 8, 2025 at 12:49 PM tanjadeu@liwest.at wrote:
Hi
I am trying to debug the NAND driver (U-boot 2016.09) and ran into the following issue:
That's a very old U-Boot version.
Which SoC and board are you using?
Please give it a try with U-Boot 2025.01. Maybe the NAND driver problem has already been fixed.
participants (2)
-
Fabio Estevam
-
tanjadeu@liwest.at