From 415c8da238169a9214881ce6840bd17b6b82f44b Mon Sep 17 00:00:00 2001 From: Janani Sunil Date: Fri, 3 Jan 2025 14:26:48 +0100 Subject: [PATCH] projects:evb_discovery_firmware: Add support to SDP-K1 Add support to SDP-K1 in the STM32 platform Signed-off-by: Janani Sunil --- projects/evb_discovery_firmware/.gitignore | 29 +- .../STM32/{ => nucleo_h563}/.extSettings | 0 .../evb_discovery_firmware.ioc | 0 .../STM32/sdp_k1/.extSettings | 24 ++ .../STM32/sdp_k1/evb_discovery_firmware.ioc | 355 ++++++++++++++++++ .../evb_discovery_firmware/app/app_config.h | 2 - .../app/app_config_stm32.c | 4 + .../app/app_config_stm32.h | 10 + 8 files changed, 413 insertions(+), 11 deletions(-) rename projects/evb_discovery_firmware/STM32/{ => nucleo_h563}/.extSettings (100%) rename projects/evb_discovery_firmware/STM32/{ => nucleo_h563}/evb_discovery_firmware.ioc (100%) create mode 100644 projects/evb_discovery_firmware/STM32/sdp_k1/.extSettings create mode 100644 projects/evb_discovery_firmware/STM32/sdp_k1/evb_discovery_firmware.ioc diff --git a/projects/evb_discovery_firmware/.gitignore b/projects/evb_discovery_firmware/.gitignore index 54b52e4e3..74b139da8 100644 --- a/projects/evb_discovery_firmware/.gitignore +++ b/projects/evb_discovery_firmware/.gitignore @@ -10,12 +10,23 @@ Code* *.TMP *.user scripts/__pycache__ -STM32/.settings -STM32/Core -STM32/Drivers -STM32/.mxproject -STM32/.cproject -STM32/.project -STM32/Debug -STM32/STM32H563ZITX_FLASH.ld -STM32/STM32H563ZITX_RAM.ld \ No newline at end of file +STM32/nucleo_h563/.settings +STM32/nucleo_h563/Core +STM32/nucleo_h563/Drivers +STM32/nucleo_h563/.mxproject +STM32/nucleo_h563/.cproject +STM32/nucleo_h563/.project +STM32/nucleo_h563/Debug +STM32/nucleo_h563/STM32H563ZITX_FLASH.ld +STM32/nucleo_h563/STM32H563ZITX_RAM.ld +STM32/sdp_k1/.settings +STM32/sdp_k1/Core +STM32/sdp_k1/Drivers +STM32/sdp_k1/.mxproject +STM32/sdp_k1/.cproject +STM32/sdp_k1/.project +STM32/sdp_k1/Debug +STM32/sdp_k1/STM32F469NIHX_FLASH.ld +STM32/sdp_k1/STM32F469NIHX_RAM.ld +STM32/sdp_k1/*.cfg +STM32/sdp_k1/*.launch \ No newline at end of file diff --git a/projects/evb_discovery_firmware/STM32/.extSettings b/projects/evb_discovery_firmware/STM32/nucleo_h563/.extSettings similarity index 100% rename from projects/evb_discovery_firmware/STM32/.extSettings rename to projects/evb_discovery_firmware/STM32/nucleo_h563/.extSettings diff --git a/projects/evb_discovery_firmware/STM32/evb_discovery_firmware.ioc b/projects/evb_discovery_firmware/STM32/nucleo_h563/evb_discovery_firmware.ioc similarity index 100% rename from projects/evb_discovery_firmware/STM32/evb_discovery_firmware.ioc rename to projects/evb_discovery_firmware/STM32/nucleo_h563/evb_discovery_firmware.ioc diff --git a/projects/evb_discovery_firmware/STM32/sdp_k1/.extSettings b/projects/evb_discovery_firmware/STM32/sdp_k1/.extSettings new file mode 100644 index 000000000..e98e880a7 --- /dev/null +++ b/projects/evb_discovery_firmware/STM32/sdp_k1/.extSettings @@ -0,0 +1,24 @@ +[ProjectFiles] +HeaderPath=....//app;../../../../libraries/no-OS/util;../../../../libraries/no-OS/include;../../../../libraries/no-OS/drivers/platform/stm32;../../../../libraries/no-OS/iio;../../../../libraries/no-OS/drivers/api;../../../../libraries/no-OS/drivers/eeprom/24xx32a/;../../../../libraries/precision-converters-library/common/;../../../../libraries/precision-converters-library/board_info/;;../../../../libraries/precision-converters-library/sdp_k1_sdram/ + +[Groups] +app/=../../app/main.c;../../app/24xx32a_eeprom_iio.c;../../app/24xx32a_eeprom_iio.h;../../app/app_config.h;../../app/app_config.c;../../app/app_config_stm32.c;../../app/app_config_stm32.h; + +app/libraries/precision-converters-library/common/=../../../../libraries/precision-converters-library/common/common.h;../../../../libraries/precision-converters-library/common/common.c; + +app/libraries/precision-converters-library/sdp_k1_sdram/=../../../../libraries/precision-converters-library/sdp_k1_sdram/sdp_k1_sdram.c;../../../../libraries/precision-converters-library/sdp_k1_sdram/sdp_k1_sdram.h; + +app/libraries/precision-converters-library/board_info/=../../../../libraries/precision-converters-library/board_info/board_info.c;../../../../libraries/precision-converters-library/board_info/board_info.h; + +app/libraries/no-OS/drivers/eeprom/24xx32a/=../../../../libraries/no-OS/drivers/eeprom/24xx32a/24xx32a.c;../../../../libraries/no-OS/drivers/eeprom/24xx32a/24xx32a.h; + +app/libraries/no-OS/=../../../../libraries/no-OS/util/;../../../../libraries/no-OS/include; + +app/libraries/no-OS/drivers/platform/stm32/=../../../../libraries/no-OS/drivers/platform/stm32/stm32_uart.c;../../../../libraries/no-OS/drivers/platform/stm32/stm32_uart.h;../../../../libraries/no-OS/drivers/platform/stm32/stm32_i2c.h;../../../../libraries/no-OS/drivers/platform/stm32/stm32_i2c.c;../../../../libraries/no-OS/drivers/platform/stm32/stm32_irq.h;../../../../libraries/no-OS/drivers/platform/stm32/stm32_irq.c;../../../../libraries/no-OS/drivers/platform/stm32/stm32_delay.c + +app/libraries/no-OS/iio/=../../../../libraries/no-OS/iio/iio.c;../../../../libraries/no-OS/iio/iio.h;../../../../libraries/no-OS/iio/iiod.h;../../../../libraries/no-OS/iio/iiod.c; + +app/libraries/no-OS/drivers/api/=../../../../libraries/no-OS/drivers/api/no_os_uart.c;../../../../libraries/no-OS/drivers/api/no_os_i2c.c;../../../../libraries/no-OS/drivers/api/no_os_eeprom.c;../../../../libraries/no-OS/drivers/api/no_os_irq.c; + +[Others] +Define=_USE_STD_INT_TYPES;TINYIIOD_VERSION_MAJOR;TINYIIOD_VERSION_MINOR;TINYIIOD_VERSION_GIT;IIOD_BUFFER_SIZE;IIO_IGNORE_BUFF_OVERRUN_ERR;USE_PHY_COM_PORT;ACTIVE_PLATFORM:2;TARGET_SDP_K1 \ No newline at end of file diff --git a/projects/evb_discovery_firmware/STM32/sdp_k1/evb_discovery_firmware.ioc b/projects/evb_discovery_firmware/STM32/sdp_k1/evb_discovery_firmware.ioc new file mode 100644 index 000000000..419d93d81 --- /dev/null +++ b/projects/evb_discovery_firmware/STM32/sdp_k1/evb_discovery_firmware.ioc @@ -0,0 +1,355 @@ +#MicroXplorer Configuration settings - do not modify +CAD.formats= +CAD.pinconfig= +CAD.provider= +File.Version=6 +GPIO.groupedBy=Group By Peripherals +KeepUserPlacement=false +Mcu.CPN=STM32F469NIH6 +Mcu.Family=STM32F4 +Mcu.IP0=FMC +Mcu.IP1=I2C1 +Mcu.IP2=NVIC +Mcu.IP3=RCC +Mcu.IP4=SYS +Mcu.IP5=UART5 +Mcu.IPNb=6 +Mcu.Name=STM32F469NIHx +Mcu.Package=TFBGA216 +Mcu.Pin0=PB8 +Mcu.Pin1=PC12 +Mcu.Pin10=PI10 +Mcu.Pin11=PI6 +Mcu.Pin12=PD2 +Mcu.Pin13=PH15 +Mcu.Pin14=PI1 +Mcu.Pin15=PC14/OSC32_IN +Mcu.Pin16=PF1 +Mcu.Pin17=PI9 +Mcu.Pin18=PH13 +Mcu.Pin19=PH14 +Mcu.Pin2=PB7 +Mcu.Pin20=PI0 +Mcu.Pin21=PC15/OSC32_OUT +Mcu.Pin22=PA8 +Mcu.Pin23=PH0/OSC_IN +Mcu.Pin24=PF2 +Mcu.Pin25=PH1/OSC_OUT +Mcu.Pin26=PF3 +Mcu.Pin27=PG8 +Mcu.Pin28=PF4 +Mcu.Pin29=PH5 +Mcu.Pin3=PG15 +Mcu.Pin30=PH3 +Mcu.Pin31=PF5 +Mcu.Pin32=PH2 +Mcu.Pin33=PD15 +Mcu.Pin34=PD10 +Mcu.Pin35=PD14 +Mcu.Pin36=PD9 +Mcu.Pin37=PD8 +Mcu.Pin38=PF12 +Mcu.Pin39=PG1 +Mcu.Pin4=PD0 +Mcu.Pin40=PF15 +Mcu.Pin41=PH12 +Mcu.Pin42=PF13 +Mcu.Pin43=PG0 +Mcu.Pin44=PE8 +Mcu.Pin45=PG5 +Mcu.Pin46=PG4 +Mcu.Pin47=PH9 +Mcu.Pin48=PH11 +Mcu.Pin49=PF14 +Mcu.Pin5=PD1 +Mcu.Pin50=PF11 +Mcu.Pin51=PE9 +Mcu.Pin52=PE11 +Mcu.Pin53=PE14 +Mcu.Pin54=PH8 +Mcu.Pin55=PH10 +Mcu.Pin56=PE7 +Mcu.Pin57=PE10 +Mcu.Pin58=PE12 +Mcu.Pin59=PE15 +Mcu.Pin6=PI3 +Mcu.Pin60=PE13 +Mcu.Pin61=VP_SYS_VS_Systick +Mcu.Pin7=PI2 +Mcu.Pin8=PF0 +Mcu.Pin9=PI7 +Mcu.PinsNb=62 +Mcu.ThirdPartyNb=0 +Mcu.UserConstants= +Mcu.UserName=STM32F469NIHx +MxCube.Version=6.11.1 +MxDb.Version=DB.6.0.111 +NVIC.BusFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false +NVIC.DebugMonitor_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false +NVIC.ForceEnableDMAVector=true +NVIC.HardFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false +NVIC.MemoryManagement_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false +NVIC.NonMaskableInt_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false +NVIC.PendSV_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false +NVIC.PriorityGroup=NVIC_PRIORITYGROUP_4 +NVIC.SVCall_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false +NVIC.SysTick_IRQn=true\:15\:0\:false\:false\:true\:false\:true\:false +NVIC.UsageFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false +PA8.Mode=Clock-out-1 +PA8.Signal=RCC_MCO_1 +PB7.Locked=true +PB7.Mode=I2C +PB7.Signal=I2C1_SDA +PB8.Mode=I2C +PB8.Signal=I2C1_SCL +PC12.Mode=Asynchronous +PC12.Signal=UART5_TX +PC14/OSC32_IN.Mode=LSE-External-Oscillator +PC14/OSC32_IN.Signal=RCC_OSC32_IN +PC15/OSC32_OUT.Mode=LSE-External-Oscillator +PC15/OSC32_OUT.Signal=RCC_OSC32_OUT +PD0.Signal=FMC_D2_DA2 +PD1.Signal=FMC_D3_DA3 +PD10.Signal=FMC_D15_DA15 +PD14.Signal=FMC_D0_DA0 +PD15.Signal=FMC_D1_DA1 +PD2.Mode=Asynchronous +PD2.Signal=UART5_RX +PD8.Signal=FMC_D13_DA13 +PD9.Signal=FMC_D14_DA14 +PE10.Signal=FMC_D7_DA7 +PE11.Signal=FMC_D8_DA8 +PE12.Signal=FMC_D9_DA9 +PE13.Signal=FMC_D10_DA10 +PE14.Signal=FMC_D11_DA11 +PE15.Signal=FMC_D12_DA12 +PE7.Signal=FMC_D4_DA4 +PE8.Signal=FMC_D5_DA5 +PE9.Signal=FMC_D6_DA6 +PF0.Signal=FMC_A0 +PF1.Signal=FMC_A1 +PF11.Signal=FMC_SDNRAS +PF12.Signal=FMC_A6 +PF13.Signal=FMC_A7 +PF14.Signal=FMC_A8 +PF15.Signal=FMC_A9 +PF2.Signal=FMC_A2 +PF3.Signal=FMC_A3 +PF4.Signal=FMC_A4 +PF5.Signal=FMC_A5 +PG0.Signal=FMC_A10 +PG1.Signal=FMC_A11 +PG15.Signal=FMC_SDNCAS +PG4.Signal=FMC_A14_BA0 +PG5.Signal=FMC_A15_BA1 +PG8.Signal=FMC_SDCLK +PH0/OSC_IN.Mode=HSE-External-Oscillator +PH0/OSC_IN.Signal=RCC_OSC_IN +PH1/OSC_OUT.Mode=HSE-External-Oscillator +PH1/OSC_OUT.Signal=RCC_OSC_OUT +PH10.Signal=FMC_D18 +PH11.Signal=FMC_D19 +PH12.Signal=FMC_D20 +PH13.Signal=FMC_D21 +PH14.Signal=FMC_D22 +PH15.Signal=FMC_D23 +PH2.Mode=SdramChipSelect1_1 +PH2.Signal=FMC_SDCKE0 +PH3.Mode=SdramChipSelect1_1 +PH3.Signal=FMC_SDNE0 +PH5.Signal=FMC_SDNWE +PH8.Signal=FMC_D16 +PH9.Signal=FMC_D17 +PI0.Signal=FMC_D24 +PI1.Signal=FMC_D25 +PI10.Signal=FMC_D31 +PI2.Signal=FMC_D26 +PI3.Signal=FMC_D27 +PI6.Signal=FMC_D28 +PI7.Signal=FMC_D29 +PI9.Signal=FMC_D30 +PinOutPanel.CurrentBGAView=Top +PinOutPanel.RotationAngle=90 +ProjectManager.AskForMigrate=true +ProjectManager.BackupPrevious=false +ProjectManager.CompilerOptimize=6 +ProjectManager.ComputerToolchain=false +ProjectManager.CoupleFile=false +ProjectManager.CustomerFirmwarePackage= +ProjectManager.DefaultFWLocation=true +ProjectManager.DeletePrevious=true +ProjectManager.DeviceId=STM32F469NIHx +ProjectManager.FirmwarePackage=STM32Cube FW_F4 V1.28.1 +ProjectManager.FreePins=false +ProjectManager.HalAssertFull=false +ProjectManager.HeapSize=0x200 +ProjectManager.KeepUserCode=true +ProjectManager.LastFirmware=true +ProjectManager.LibraryCopy=1 +ProjectManager.MainLocation=Core/Src +ProjectManager.NoMain=true +ProjectManager.PreviousToolchain=STM32CubeIDE +ProjectManager.ProjectBuild=false +ProjectManager.ProjectFileName=evb_discovery_firmware.ioc +ProjectManager.ProjectName=evb_discovery_firmware +ProjectManager.ProjectStructure= +ProjectManager.RegisterCallBack=SAI,SDRAM,TIM,UART +ProjectManager.StackSize=0x400 +ProjectManager.TargetToolchain=STM32CubeIDE +ProjectManager.ToolChainLocation= +ProjectManager.UAScriptAfterPath= +ProjectManager.UAScriptBeforePath= +ProjectManager.UnderRoot=true +ProjectManager.functionlistsort=1-SystemClock_Config-RCC-false-HAL-false,2-MX_GPIO_Init-GPIO-false-HAL-false,3-MX_I2C1_Init-I2C1-false-HAL-false,4-MX_UART5_Init-UART5-false-HAL-false,false-5-MX_FMC_Init-FMC-false-HAL-false +RCC.AHBFreq_Value=180000000 +RCC.APB1CLKDivider=RCC_HCLK_DIV4 +RCC.APB1Freq_Value=45000000 +RCC.APB1TimFreq_Value=90000000 +RCC.APB2CLKDivider=RCC_HCLK_DIV2 +RCC.APB2Freq_Value=90000000 +RCC.APB2TimFreq_Value=180000000 +RCC.CortexFreq_Value=180000000 +RCC.DSIFreq_Value=20000000 +RCC.DSITXEscFreq_Value=5000000 +RCC.EthernetFreq_Value=180000000 +RCC.FCLKCortexFreq_Value=180000000 +RCC.FamilyName=M +RCC.HCLKFreq_Value=180000000 +RCC.HSE_VALUE=8000000 +RCC.I2SFreq_Value=192000000 +RCC.IPParameters=AHBFreq_Value,APB1CLKDivider,APB1Freq_Value,APB1TimFreq_Value,APB2CLKDivider,APB2Freq_Value,APB2TimFreq_Value,CortexFreq_Value,DSIFreq_Value,DSITXEscFreq_Value,EthernetFreq_Value,FCLKCortexFreq_Value,FamilyName,HCLKFreq_Value,HSE_VALUE,I2SFreq_Value,LCDTFTFreq_Value,MCO2PinFreq_Value,PLLCLKFreq_Value,PLLDSIFreq_Value,PLLDSIVCOFreq_Value,PLLI2SQCLKFreq_Value,PLLI2SRCLKFreq_Value,PLLM,PLLN,PLLQCLKFreq_Value,PLLRCLKFreq_Value,PLLRFreq_Value,PLLSAIN,PLLSAIPCLKFreq_Value,PLLSAIQ,PLLSAIQCLKFreq_Value,PLLSAIRCLKFreq_Value,PLLSourceVirtual,RTCFreq_Value,RTCHSEDivFreq_Value,SAIAFreq_Value,SAIBFreq_Value,SDIOFreq_Value,SYSCLKFreq_VALUE,SYSCLKSource,USBFreq_Value,VCOI2SOutputFreq_Value,VCOInputFreq_Value,VCOOutputFreq_Value,VCOSAIOutputFreq_Value +RCC.LCDTFTFreq_Value=25000000 +RCC.MCO2PinFreq_Value=180000000 +RCC.PLLCLKFreq_Value=180000000 +RCC.PLLDSIFreq_Value=160000000 +RCC.PLLDSIVCOFreq_Value=320000000 +RCC.PLLI2SQCLKFreq_Value=96000000 +RCC.PLLI2SRCLKFreq_Value=192000000 +RCC.PLLM=4 +RCC.PLLN=180 +RCC.PLLQCLKFreq_Value=90000000 +RCC.PLLRCLKFreq_Value=180000000 +RCC.PLLRFreq_Value=180000000 +RCC.PLLSAIN=50 +RCC.PLLSAIPCLKFreq_Value=50000000 +RCC.PLLSAIQ=2 +RCC.PLLSAIQCLKFreq_Value=50000000 +RCC.PLLSAIRCLKFreq_Value=50000000 +RCC.PLLSourceVirtual=RCC_PLLSOURCE_HSE +RCC.RTCFreq_Value=32000 +RCC.RTCHSEDivFreq_Value=4000000 +RCC.SAIAFreq_Value=50000000 +RCC.SAIBFreq_Value=50000000 +RCC.SDIOFreq_Value=90000000 +RCC.SYSCLKFreq_VALUE=180000000 +RCC.SYSCLKSource=RCC_SYSCLKSOURCE_PLLCLK +RCC.USBFreq_Value=90000000 +RCC.VCOI2SOutputFreq_Value=384000000 +RCC.VCOInputFreq_Value=2000000 +RCC.VCOOutputFreq_Value=360000000 +RCC.VCOSAIOutputFreq_Value=100000000 +SH.FMC_A0.0=FMC_A0,12b-sda1 +SH.FMC_A0.ConfNb=1 +SH.FMC_A1.0=FMC_A1,12b-sda1 +SH.FMC_A1.ConfNb=1 +SH.FMC_A10.0=FMC_A10,12b-sda1 +SH.FMC_A10.ConfNb=1 +SH.FMC_A11.0=FMC_A11,12b-sda1 +SH.FMC_A11.ConfNb=1 +SH.FMC_A14_BA0.0=FMC_BA0,FourSdramBanks1 +SH.FMC_A14_BA0.ConfNb=1 +SH.FMC_A15_BA1.0=FMC_BA1,FourSdramBanks1 +SH.FMC_A15_BA1.ConfNb=1 +SH.FMC_A2.0=FMC_A2,12b-sda1 +SH.FMC_A2.ConfNb=1 +SH.FMC_A3.0=FMC_A3,12b-sda1 +SH.FMC_A3.ConfNb=1 +SH.FMC_A4.0=FMC_A4,12b-sda1 +SH.FMC_A4.ConfNb=1 +SH.FMC_A5.0=FMC_A5,12b-sda1 +SH.FMC_A5.ConfNb=1 +SH.FMC_A6.0=FMC_A6,12b-sda1 +SH.FMC_A6.ConfNb=1 +SH.FMC_A7.0=FMC_A7,12b-sda1 +SH.FMC_A7.ConfNb=1 +SH.FMC_A8.0=FMC_A8,12b-sda1 +SH.FMC_A8.ConfNb=1 +SH.FMC_A9.0=FMC_A9,12b-sda1 +SH.FMC_A9.ConfNb=1 +SH.FMC_D0_DA0.0=FMC_D0,sd-32b-d1 +SH.FMC_D0_DA0.ConfNb=1 +SH.FMC_D10_DA10.0=FMC_D10,sd-32b-d1 +SH.FMC_D10_DA10.ConfNb=1 +SH.FMC_D11_DA11.0=FMC_D11,sd-32b-d1 +SH.FMC_D11_DA11.ConfNb=1 +SH.FMC_D12_DA12.0=FMC_D12,sd-32b-d1 +SH.FMC_D12_DA12.ConfNb=1 +SH.FMC_D13_DA13.0=FMC_D13,sd-32b-d1 +SH.FMC_D13_DA13.ConfNb=1 +SH.FMC_D14_DA14.0=FMC_D14,sd-32b-d1 +SH.FMC_D14_DA14.ConfNb=1 +SH.FMC_D15_DA15.0=FMC_D15,sd-32b-d1 +SH.FMC_D15_DA15.ConfNb=1 +SH.FMC_D16.0=FMC_D16,sd-32b-d1 +SH.FMC_D16.ConfNb=1 +SH.FMC_D17.0=FMC_D17,sd-32b-d1 +SH.FMC_D17.ConfNb=1 +SH.FMC_D18.0=FMC_D18,sd-32b-d1 +SH.FMC_D18.ConfNb=1 +SH.FMC_D19.0=FMC_D19,sd-32b-d1 +SH.FMC_D19.ConfNb=1 +SH.FMC_D1_DA1.0=FMC_D1,sd-32b-d1 +SH.FMC_D1_DA1.ConfNb=1 +SH.FMC_D20.0=FMC_D20,sd-32b-d1 +SH.FMC_D20.ConfNb=1 +SH.FMC_D21.0=FMC_D21,sd-32b-d1 +SH.FMC_D21.ConfNb=1 +SH.FMC_D22.0=FMC_D22,sd-32b-d1 +SH.FMC_D22.ConfNb=1 +SH.FMC_D23.0=FMC_D23,sd-32b-d1 +SH.FMC_D23.ConfNb=1 +SH.FMC_D24.0=FMC_D24,sd-32b-d1 +SH.FMC_D24.ConfNb=1 +SH.FMC_D25.0=FMC_D25,sd-32b-d1 +SH.FMC_D25.ConfNb=1 +SH.FMC_D26.0=FMC_D26,sd-32b-d1 +SH.FMC_D26.ConfNb=1 +SH.FMC_D27.0=FMC_D27,sd-32b-d1 +SH.FMC_D27.ConfNb=1 +SH.FMC_D28.0=FMC_D28,sd-32b-d1 +SH.FMC_D28.ConfNb=1 +SH.FMC_D29.0=FMC_D29,sd-32b-d1 +SH.FMC_D29.ConfNb=1 +SH.FMC_D2_DA2.0=FMC_D2,sd-32b-d1 +SH.FMC_D2_DA2.ConfNb=1 +SH.FMC_D30.0=FMC_D30,sd-32b-d1 +SH.FMC_D30.ConfNb=1 +SH.FMC_D31.0=FMC_D31,sd-32b-d1 +SH.FMC_D31.ConfNb=1 +SH.FMC_D3_DA3.0=FMC_D3,sd-32b-d1 +SH.FMC_D3_DA3.ConfNb=1 +SH.FMC_D4_DA4.0=FMC_D4,sd-32b-d1 +SH.FMC_D4_DA4.ConfNb=1 +SH.FMC_D5_DA5.0=FMC_D5,sd-32b-d1 +SH.FMC_D5_DA5.ConfNb=1 +SH.FMC_D6_DA6.0=FMC_D6,sd-32b-d1 +SH.FMC_D6_DA6.ConfNb=1 +SH.FMC_D7_DA7.0=FMC_D7,sd-32b-d1 +SH.FMC_D7_DA7.ConfNb=1 +SH.FMC_D8_DA8.0=FMC_D8,sd-32b-d1 +SH.FMC_D8_DA8.ConfNb=1 +SH.FMC_D9_DA9.0=FMC_D9,sd-32b-d1 +SH.FMC_D9_DA9.ConfNb=1 +SH.FMC_SDCLK.0=FMC_SDCLK,12b-sda1 +SH.FMC_SDCLK.ConfNb=1 +SH.FMC_SDNCAS.0=FMC_SDNCAS,12b-sda1 +SH.FMC_SDNCAS.ConfNb=1 +SH.FMC_SDNRAS.0=FMC_SDNRAS,12b-sda1 +SH.FMC_SDNRAS.ConfNb=1 +SH.FMC_SDNWE.0=FMC_SDNWE,12b-sda1 +SH.FMC_SDNWE.ConfNb=1 +UART5.IPParameters=VirtualMode +UART5.VirtualMode=Asynchronous +VP_SYS_VS_Systick.Mode=SysTick +VP_SYS_VS_Systick.Signal=SYS_VS_Systick +board=custom diff --git a/projects/evb_discovery_firmware/app/app_config.h b/projects/evb_discovery_firmware/app/app_config.h index ca1a49811..e977d83e9 100644 --- a/projects/evb_discovery_firmware/app/app_config.h +++ b/projects/evb_discovery_firmware/app/app_config.h @@ -63,8 +63,6 @@ #elif (ACTIVE_PLATFORM == STM32_PLATFORM) #include "app_config_stm32.h" -#define HW_CARRIER_NAME NUCLEO-H563ZI - #define uart_extra_init_params stm32_uart_extra_init_params #define i2c_extra_init_params stm32_i2c_extra_init_params #define i2c_ops stm32_i2c_ops diff --git a/projects/evb_discovery_firmware/app/app_config_stm32.c b/projects/evb_discovery_firmware/app/app_config_stm32.c index 8bbbed190..056fcc160 100644 --- a/projects/evb_discovery_firmware/app/app_config_stm32.c +++ b/projects/evb_discovery_firmware/app/app_config_stm32.c @@ -53,5 +53,9 @@ void stm32_system_init(void) { HAL_Init(); SystemClock_Config(); +#if defined (TARGET_SDP_K1) + MX_UART5_Init(); +#else MX_USART3_UART_Init(); +#endif } diff --git a/projects/evb_discovery_firmware/app/app_config_stm32.h b/projects/evb_discovery_firmware/app/app_config_stm32.h index 4d925530d..8d569ad1f 100644 --- a/projects/evb_discovery_firmware/app/app_config_stm32.h +++ b/projects/evb_discovery_firmware/app/app_config_stm32.h @@ -33,7 +33,13 @@ #define I2C_DEVICE_ID 1 // I2C1 +#if defined (TARGET_SDP_K1) +#define APP_UART_HANDLE &huart5 // UART5 +#define HW_CARRIER_NAME SDP-K1 +#else #define APP_UART_HANDLE &huart3 // UART3 +#define HW_CARRIER_NAME NUCLEO-H563ZI +#endif /******************************************************************************/ /********************** Public/Extern Declarations ****************************/ @@ -41,7 +47,11 @@ extern struct stm32_i2c_init_param stm32_i2c_extra_init_params; extern struct stm32_uart_init_param stm32_uart_extra_init_params; +#if defined (TARGET_SDP_K1) +extern UART_HandleTypeDef huart5; +#else extern UART_HandleTypeDef huart3; +#endif void stm32_system_init(void);