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)
547
547
mbed::bd_addr_t addr;
548
548
uint8_t mark[2 ];
549
549
550
- mark[0 ] = 0x00 ;
551
- mark[1 ] = 0x00 ;
550
+ mark[0 ] = 0x00 ;
551
+ mark[1 ] = 0x00 ;
552
552
addr = (blk_idx << _block_shift) + _page_size;
553
553
if (QSPI_STATUS_OK != _program_oob (mark, addr, sizeof (mark))) {
554
554
tr_error (" Program Command failed" );
@@ -892,7 +892,7 @@ int SPINANDBlockDevice::_set_write_enable()
892
892
893
893
int SPINANDBlockDevice::_set_conti_read_enable ()
894
894
{
895
- uint8_t secur_reg = 0 ;uint8_t secur_reg1 = 0 ;
895
+ uint8_t secur_reg = 0 ;
896
896
897
897
if (false == _is_mem_ready ()) {
898
898
tr_error (" Device not ready, set quad enable failed" );
@@ -918,10 +918,6 @@ int SPINANDBlockDevice::_set_conti_read_enable()
918
918
tr_error (" Device not ready, set quad enable failed" );
919
919
return -1 ;
920
920
}
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
- }
925
921
926
922
return 0 ;
927
923
}
You can’t perform that action at this time.
0 commit comments