2021-12-06 05:54 AM
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.
Solved! Go to Solution.
2021-12-07 01:38 AM
I used HAL_nand_reset(&hnand1) and it fixed the problem.
Thanks @Community member
2021-12-06 07:19 AM
>>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.
2021-12-07 01:38 AM
I used HAL_nand_reset(&hnand1) and it fixed the problem.
Thanks @Community member