mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-21 06:13:41 +00:00
Adjust firmware parsing to prepare for multiple FPGA images
This commit is contained in:
parent
51396491f8
commit
669ab839bb
5 changed files with 122 additions and 30 deletions
|
|
@ -70,7 +70,9 @@ inline void App_Init() {
|
|||
// Function will not return, the device will reboot with the new firmware instead
|
||||
// Firmware::PerformUpdate(&flash, fw_info);
|
||||
}
|
||||
if(!FPGA::Configure(fw_info.FPGA_bitstream_address, fw_info.FPGA_bitstream_size)) {
|
||||
// flash default FPGA image
|
||||
auto fpga_info = Firmware::GetFPGAImageInfo(0);
|
||||
if(!FPGA::Configure(fpga_info.start_address, fpga_info.size)) {
|
||||
LOG_CRIT("FPGA configuration failed");
|
||||
LED::Error(3);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue