Second stage checks the integrity and signatures of the firmware and runs it if everything is ok. If second stage bootloader detects a pressed finger on the display (entering bootloader mode) or there is no firmware loaded in the device, it will start in a firmware update mode, allowing a firmware update via USB.