File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
storage/blockdevice/COMPONENT_SPINAND/source Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -547,8 +547,8 @@ int SPINANDBlockDevice::mark_bad_block(uint16_t blk_idx)
547547 mbed::bd_addr_t addr;
548548 uint8_t mark[2 ];
549549
550- mark[0 ] = 0x00 ;
551- mark[1 ] = 0x00 ;
550+ mark[0 ] = 0x00 ;
551+ mark[1 ] = 0x00 ;
552552 addr = (blk_idx << _block_shift) + _page_size;
553553 if (QSPI_STATUS_OK != _program_oob (mark, addr, sizeof (mark))) {
554554 tr_error (" Program Command failed" );
@@ -892,7 +892,7 @@ int SPINANDBlockDevice::_set_write_enable()
892892
893893int SPINANDBlockDevice::_set_conti_read_enable ()
894894{
895- uint8_t secur_reg = 0 ;uint8_t secur_reg1 = 0 ;
895+ uint8_t secur_reg = 0 ;
896896
897897 if (false == _is_mem_ready ()) {
898898 tr_error (" Device not ready, set quad enable failed" );
@@ -918,10 +918,6 @@ int SPINANDBlockDevice::_set_conti_read_enable()
918918 tr_error (" Device not ready, set quad enable failed" );
919919 return -1 ;
920920 }
921- if (QSPI_STATUS_OK != _qspi_send_general_command (SPINAND_INST_GET_FEATURE, FEATURES_ADDR_SECURE_OTP,
922- NULL , 0 , (char *) &secur_reg1, 1 )) {
923- tr_error (" Reading Security Register failed" );
924- }
925921
926922 return 0 ;
927923}
You can’t perform that action at this time.
0 commit comments