mirror of https://github.com/ARMmbed/mbed-os.git
Add trace logging with size of block device
parent
5484f585a6
commit
ed36cc4e06
|
@ -210,6 +210,7 @@ int SPIFBlockDevice::init()
|
||||||
// Dummy And Mode Cycles Back default 0
|
// Dummy And Mode Cycles Back default 0
|
||||||
_dummy_and_mode_cycles = _write_dummy_and_mode_cycles;
|
_dummy_and_mode_cycles = _write_dummy_and_mode_cycles;
|
||||||
_is_initialized = true;
|
_is_initialized = true;
|
||||||
|
tr_info("Device size: %llu Kbytes", _device_size_bytes / 1024);
|
||||||
|
|
||||||
exit_point:
|
exit_point:
|
||||||
_mutex->unlock();
|
_mutex->unlock();
|
||||||
|
@ -667,6 +668,7 @@ int SPIFBlockDevice::_sfdp_parse_basic_param_table(uint32_t basic_table_addr, si
|
||||||
(param_table[5] << 8) |
|
(param_table[5] << 8) |
|
||||||
param_table[4]);
|
param_table[4]);
|
||||||
_device_size_bytes = (density_bits + 1) / 8;
|
_device_size_bytes = (density_bits + 1) / 8;
|
||||||
|
tr_debug("Density bits: %ld , device size: %llu bytes", density_bits, _device_size_bytes);
|
||||||
|
|
||||||
// Set Default read/program/erase Instructions
|
// Set Default read/program/erase Instructions
|
||||||
_read_instruction = SPIF_READ;
|
_read_instruction = SPIF_READ;
|
||||||
|
|
Loading…
Reference in New Issue