bootloader_execute_flash_command() function
Execute a user command on the flash
Arguments
command
The command value to execute.
mosi_data
MOSI data to send
mosi_len
Length of MOSI data, in bits
miso_len
Length of MISO data to receive, in bits
Return value
Received MISO data
![]()
status = bootloader_execute_flash_command(CMD_RDSR, 0, 0, 8);![]()
status = bootloader_execute_flash_command(CMD_RDSR, 0, 0, 8);![]()
status_sr2 = bootloader_execute_flash_command(CMD_RDSR2, 0, 0, 8);![]()
status = bootloader_execute_flash_command(CMD_RDSR, 0, 0, 8) | (bootloader_execute_flash_command(CMD_RDSR2, 0, 0, 8) << 8);![]()
bootloader_execute_flash_command(CMD_WREN, 0, 0, 0);![]()
bootloader_execute_flash_command(CMD_WRSR, new_status, sr1_bit_num, 0);![]()
bootloader_execute_flash_command(CMD_WREN, 0, 0, 0);![]()
bootloader_execute_flash_command(CMD_WRSR2, new_status_sr2, 8, 0);![]()
bootloader_execute_flash_command(CMD_WRDI, 0, 0, 0);![]()
bootloader_execute_flash_command(CMD_WRDI, 0, 0, 0); ![]()
uint32_t id = bootloader_execute_flash_command(CMD_RDID, 0, 0, 24);![]()
bootloader_execute_flash_command(CMD_RESETEN, 0, 0, 0);![]()
bootloader_execute_flash_command(CMD_RESET, 0, 0, 0);![]()
bootloader_execute_flash_command(0xB9, 0, 0, 0);![]()
bootloader_execute_flash_command(0x79, 0, 0, 0);![]()
bootloader_execute_flash_command(0xFF, 0, 0, 0);![]()
bootloader_execute_flash_command(0xAB, 0, 0, 0);![]()
bootloader_execute_flash_command(0x05, 0, 0, 0);![]()
bootloader_execute_flash_command(0x66, 0, 0, 0);![]()
bootloader_execute_flash_command(0x99, 0, 0, 0);![]()
bootloader_execute_flash_command(CMD_WREN, 0, 0, 0);![]()
return bootloader_execute_flash_command(CMD_RDSR, 0, 0, 8);![]()
return bootloader_execute_flash_command(CMD_RDSR2, 0, 0, 8);![]()
return bootloader_execute_flash_command(CMD_RDSR3, 0, 0, 8);![]()
return bootloader_execute_flash_command(CMD_RDSR, 0, 0, 8) | (bootloader_execute_flash_command(CMD_RDSR2, 0, 0, 8) << 8);![]()
bootloader_execute_flash_command(CMD_OTPEN, 0, 0, 0); ![]()
uint32_t read_status = bootloader_execute_flash_command(CMD_RDSR, 0, 0, 8);![]()
bootloader_execute_flash_command(CMD_WRDI, 0, 0, 0); ![]()
bootloader_execute_flash_command(CMD_OTPEN, 0, 0, 0); ![]()
bootloader_execute_flash_command(CMD_WRDI, 0, 0, 0);
bootloader_execute_flash_command() is called by 17 functions and calls 1 function:
![]()
bootloader_execute_flash_command()
bootloader_execute_flash_command():
![]()
bootloader_execute_flash_command()