Eventually I want to write U-Boot for P1022DS NAND flash, but for now I cant even get an imported bareboard app to work.
I imported the P1022DS project and opted to build for ROM, built the code, then created a Flash Programmer target task using the standard P1022DS init script and memory file. When I attempt to write the test app to flash I get this:
=======================================================
fl::target -lc "P1022-NAND-UBoot-core00_ROM_P1022_Attach"
fl::target -b 0x0 0x40000
fl::target -v off -l off
cmdwin::fl::device -d "NAND08GW3B2C-eLBC" -o "1024Mx8x1" -a 0x0 0x3fffffff
cmdwin::fl::erase all
Beginning Operation ...
-------------------------
Chip erase not supported. Erasing sector by sector.
Performing target initialization ...
Downloading Flash Device Driver ...
Reading flash ID .......
Error: The algorithm was not able to run on the target or the flash is not configured properly.
Error: Getting flash ID failed
Error: The algorithm was not able to run on the target or the flash is not configured properly.
=======================================================
FWIW, this is with CodeWarrior v10.5.1. That NAND device is the correct one, at least according to the P1022DS schematic. And I've verified that the P1022DS DIP switch are set correctly for NAND boot:
NAND boot:
SW4[5:8] = 1010
SW7[1:2] = 01
This seems to be as plain-vanilla as can be yet I can't write to NAND. What do I need to do to make this work?
Thanks.