@@ -249,6 +249,10 @@ static int _np_cmd_nand_read_id(np_prog_t *prog)
249
249
if (np_comm_cb )
250
250
np_comm_cb -> send ((uint8_t * )& resp , resp_len );
251
251
252
+ DEBUG_PRINT ("Chip ID: 0x%x 0x%x 0x%x 0x%x\r\n" ,
253
+ resp .nand_id .maker_id , resp .nand_id .device_id , resp .nand_id .third_id ,
254
+ resp .nand_id .fourth_id );
255
+
252
256
return 0 ;
253
257
}
254
258
@@ -699,8 +703,6 @@ static int np_nand_read(uint32_t addr, np_page_t *page,
699
703
{
700
704
uint32_t status ;
701
705
702
- DEBUG_PRINT ("NAND read at 0x%lx\r\n" , addr );
703
-
704
706
status = nand_read_page (page -> buf , page -> page , chip_info -> page_size );
705
707
switch (status )
706
708
{
@@ -859,6 +861,16 @@ static int np_cmd_nand_conf(np_prog_t *prog)
859
861
prog -> chip_info .ar_setup_time = conf_cmd -> ar_setup_time ;
860
862
prog -> chip_is_conf = 1 ;
861
863
864
+ DEBUG_PRINT ("Page size: %lu\r\n" , prog -> chip_info .page_size );
865
+ DEBUG_PRINT ("Block size: %lu\r\n" , prog -> chip_info .block_size );
866
+ DEBUG_PRINT ("Size: %lu\r\n" , prog -> chip_info .size );
867
+ DEBUG_PRINT ("Setup time: %d\r\n" , prog -> chip_info .setup_time );
868
+ DEBUG_PRINT ("Wait setup time: %d\r\n" , prog -> chip_info .wait_setup_time );
869
+ DEBUG_PRINT ("Hold setup time: %d\r\n" , prog -> chip_info .hold_setup_time );
870
+ DEBUG_PRINT ("HiZ setup time: %d\r\n" , prog -> chip_info .hi_z_setup_time );
871
+ DEBUG_PRINT ("CLR setip time: %d\r\n" , prog -> chip_info .clr_setup_time );
872
+ DEBUG_PRINT ("AR setip time: %d\r\n" , prog -> chip_info .ar_setup_time );
873
+
862
874
nand_init (& prog -> chip_info );
863
875
864
876
nand_bad_block_table_init ();
0 commit comments