cancel
Showing results for 
Search instead for 
Did you mean: 

incorrect nand id stm32h7

Arman Ilmak
Senior

Hi everyone

First time i read the nand ID with fmc it was all good.

It was 0x2c 0xF1 0x80 that the micron told.

But some times it couldnt read the id and it was all 0xff.

Now when i read the id, i get two different ids.

first ox2c 0x1 0x2 0x3

and sometimes 0xAc 0x80 0x81 0x82

What am i doing wrong?

I changed frequency from 240 mhz to 80 mhz and changed the timings but that was not the matter.

1 ACCEPTED SOLUTION

Accepted Solutions
Arman Ilmak
Senior

I used HAL_nand_reset(&hnand1) and it fixed the problem.

Thanks @Community member​ 

View solution in original post

2 REPLIES 2

>>What am i doing wrong?

Something. There are a thousand paths to failure..

You're mostly focusing on symptoms, not implementation details.

Custom hardware, or an ST EVAL board?

Output via a serial port so you can cycle the power easily? Most chips don't have an async reset.

Don't use a debugger, and don't single step, output diagnostic/telemetry so you can understand what's happening, instrument as necessary.

Watch for caching and speculative writes on CM7 parts. Check MPU settings for memory regions.

This is an area one could waste hours/days of time, I wouldn't expect too much help beyond your own colleagues.

It works a couple of times, so HW might be ok, You'd want to double check all the wiring/pin usage, especially the power.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Arman Ilmak
Senior

I used HAL_nand_reset(&hnand1) and it fixed the problem.

Thanks @Community member​