added config flash stuff

This commit is contained in:
2025-06-07 08:01:52 -05:00
parent 6e4aa1230a
commit 68a4ed1428
18 changed files with 631 additions and 30 deletions

View File

@@ -15,6 +15,7 @@
#include "adi_ad9081.h"
#include "adi_hmc7044.h"
#include "novatel.h"
#include "config_flash.h"
XSysMon SysMonInst;
//extern XScuGic xInterruptController;
@@ -111,7 +112,9 @@ void main_task( void *pvParameters ) {
xPortInstallInterruptHandler(XPAR_MICROBLAZE_0_AXI_INTC_SYSTEM_PPS_INTR, (XInterruptHandler) pps_irq_handler, (void *)0);
vPortEnableInterrupt(XPAR_MICROBLAZE_0_AXI_INTC_SYSTEM_PPS_INTR);
setup_data_converter();
// setup_data_converter();
// config_flash_sector_erase(CONFIG_BASE_ADDRESS);
while (1) {
toggleBit(GPO_REG, 0); // Toggle LED
@@ -124,6 +127,7 @@ int main(void) {
xil_printf("\n\r\n\r================= Start ====================\n\r\n\r");
Xil_Out32(GPO_REG, 0x11);
config_flash_init();
xTaskCreate( status_task,
( const char * ) "status",