Ignore:
Timestamp:
Aug 29, 2025, 6:15:42 PM (24 hours ago)
Author:
f.jahn
Message:

DMA Rx funktioniert, aber BETA und nur feste Baudrate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/fw_g473rct/fw_g473rct.ioc

    r20 r22  
    66ADC1.DMAAccessModeView=ENABLE
    77ADC1.DMAContinuousRequests=ENABLE
    8 ADC1.EOCSelection=ADC_EOC_SEQ_CONV
    9 ADC1.IPParameters=Rank-20\#ChannelRegularConversion,master,SingleDiff-20\#ChannelRegularConversion,Channel-20\#ChannelRegularConversion,SamplingTime-20\#ChannelRegularConversion,OffsetNumber-20\#ChannelRegularConversion,NbrOfConversionFlag,Mode,DMAAccessModeView,ContinuousConvMode,OversamplingMode,DMAContinuousRequests,Overrun,ClockPrescaler,EOCSelection,CommonPathInternal
     8ADC1.EOCSelection=ADC_EOC_SINGLE_CONV
     9ADC1.IPParameters=Rank-20\#ChannelRegularConversion,master,SingleDiff-20\#ChannelRegularConversion,Channel-20\#ChannelRegularConversion,SamplingTime-20\#ChannelRegularConversion,OffsetNumber-20\#ChannelRegularConversion,NbrOfConversionFlag,Mode,DMAAccessModeView,ContinuousConvMode,OversamplingMode,DMAContinuousRequests,Overrun,ClockPrescaler,EOCSelection,RightBitShift,Ratio,CommonPathInternal
    1010ADC1.Mode=ADC_DUALMODE_REGSIMULT
    1111ADC1.NbrOfConversionFlag=1
    1212ADC1.OffsetNumber-20\#ChannelRegularConversion=ADC_OFFSET_NONE
    1313ADC1.Overrun=ADC_OVR_DATA_OVERWRITTEN
    14 ADC1.OversamplingMode=DISABLE
     14ADC1.OversamplingMode=ENABLE
    1515ADC1.Rank-20\#ChannelRegularConversion=1
    16 ADC1.SamplingTime-20\#ChannelRegularConversion=ADC_SAMPLETIME_2CYCLES_5
     16ADC1.Ratio=ADC_OVERSAMPLING_RATIO_256
     17ADC1.RightBitShift=ADC_RIGHTBITSHIFT_4
     18ADC1.SamplingTime-20\#ChannelRegularConversion=ADC_SAMPLETIME_640CYCLES_5
    1719ADC1.SingleDiff-20\#ChannelRegularConversion=ADC_DIFFERENTIAL_ENDED
    1820ADC1.master=1
     
    2224ADC2.DMAAccessModeView=ENABLE
    2325ADC2.DMAContinuousRequests=ENABLE
    24 ADC2.EOCSelection=ADC_EOC_SEQ_CONV
    25 ADC2.IPParameters=Rank-4\#ChannelRegularConversion,Channel-4\#ChannelRegularConversion,SingleDiff-4\#ChannelRegularConversion,SamplingTime-4\#ChannelRegularConversion,OffsetNumber-4\#ChannelRegularConversion,NbrOfConversionFlag,Mode,DMAAccessModeView,EOCSelection,DMAContinuousRequests,Overrun,ClockPrescaler,CommonPathInternal
     26ADC2.EOCSelection=ADC_EOC_SINGLE_CONV
     27ADC2.IPParameters=Rank-4\#ChannelRegularConversion,Channel-4\#ChannelRegularConversion,SamplingTime-4\#ChannelRegularConversion,OffsetNumber-4\#ChannelRegularConversion,NbrOfConversionFlag,Mode,DMAAccessModeView,EOCSelection,DMAContinuousRequests,Overrun,ClockPrescaler,OversamplingMode,RightBitShift,Ratio,CommonPathInternal
    2628ADC2.Mode=ADC_DUALMODE_REGSIMULT
    2729ADC2.NbrOfConversionFlag=1
    2830ADC2.OffsetNumber-4\#ChannelRegularConversion=ADC_OFFSET_NONE
    2931ADC2.Overrun=ADC_OVR_DATA_OVERWRITTEN
     32ADC2.OversamplingMode=ENABLE
    3033ADC2.Rank-4\#ChannelRegularConversion=1
    31 ADC2.SamplingTime-4\#ChannelRegularConversion=ADC_SAMPLETIME_2CYCLES_5
    32 ADC2.SingleDiff-4\#ChannelRegularConversion=ADC_DIFFERENTIAL_ENDED
     34ADC2.Ratio=ADC_OVERSAMPLING_RATIO_256
     35ADC2.RightBitShift=ADC_RIGHTBITSHIFT_4
     36ADC2.SamplingTime-4\#ChannelRegularConversion=ADC_SAMPLETIME_640CYCLES_5
    3337ADC3.Channel-1\#ChannelRegularConversion=ADC_CHANNEL_1
    3438ADC3.ClockPrescaler=ADC_CLOCK_ASYNC_DIV256
     
    8690Dma.ADC1.0.MemInc=DMA_MINC_ENABLE
    8791Dma.ADC1.0.Mode=DMA_CIRCULAR
    88 Dma.ADC1.0.PeriphDataAlignment=DMA_PDATAALIGN_HALFWORD
     92Dma.ADC1.0.PeriphDataAlignment=DMA_PDATAALIGN_WORD
    8993Dma.ADC1.0.PeriphInc=DMA_PINC_DISABLE
    9094Dma.ADC1.0.Polarity=HAL_DMAMUX_REQ_GEN_RISING
     
    103107Dma.ADC2.1.MemInc=DMA_MINC_ENABLE
    104108Dma.ADC2.1.Mode=DMA_CIRCULAR
    105 Dma.ADC2.1.PeriphDataAlignment=DMA_PDATAALIGN_HALFWORD
     109Dma.ADC2.1.PeriphDataAlignment=DMA_PDATAALIGN_WORD
    106110Dma.ADC2.1.PeriphInc=DMA_PINC_DISABLE
    107111Dma.ADC2.1.Polarity=HAL_DMAMUX_REQ_GEN_RISING
     
    170174Dma.Request3=ADC4
    171175Dma.Request4=ADC5
    172 Dma.RequestsNb=5
     176Dma.Request5=USART2_RX
     177Dma.RequestsNb=6
     178Dma.USART2_RX.5.Direction=DMA_PERIPH_TO_MEMORY
     179Dma.USART2_RX.5.EventEnable=DISABLE
     180Dma.USART2_RX.5.Instance=DMA1_Channel6
     181Dma.USART2_RX.5.MemDataAlignment=DMA_MDATAALIGN_BYTE
     182Dma.USART2_RX.5.MemInc=DMA_MINC_ENABLE
     183Dma.USART2_RX.5.Mode=DMA_NORMAL
     184Dma.USART2_RX.5.PeriphDataAlignment=DMA_PDATAALIGN_BYTE
     185Dma.USART2_RX.5.PeriphInc=DMA_PINC_DISABLE
     186Dma.USART2_RX.5.Polarity=HAL_DMAMUX_REQ_GEN_RISING
     187Dma.USART2_RX.5.Priority=DMA_PRIORITY_LOW
     188Dma.USART2_RX.5.RequestNumber=1
     189Dma.USART2_RX.5.RequestParameters=Instance,Direction,PeriphInc,MemInc,PeriphDataAlignment,MemDataAlignment,Mode,Priority,SignalID,Polarity,RequestNumber,SyncSignalID,SyncPolarity,SyncEnable,EventEnable,SyncRequestNumber
     190Dma.USART2_RX.5.SignalID=NONE
     191Dma.USART2_RX.5.SyncEnable=DISABLE
     192Dma.USART2_RX.5.SyncPolarity=HAL_DMAMUX_SYNC_NO_EVENT
     193Dma.USART2_RX.5.SyncRequestNumber=1
     194Dma.USART2_RX.5.SyncSignalID=NONE
    173195FDCAN2.CalculateBaudRateNominal=2083333
    174196FDCAN2.CalculateTimeBitNominal=480
     
    216238Mcu.Pin12=PA5
    217239Mcu.Pin13=PA6
    218 Mcu.Pin14=PA7
    219 Mcu.Pin15=PC4
    220 Mcu.Pin16=PC5
    221 Mcu.Pin17=PB0
    222 Mcu.Pin18=PB1
    223 Mcu.Pin19=PB10
     240Mcu.Pin14=PC4
     241Mcu.Pin15=PC5
     242Mcu.Pin16=PB0
     243Mcu.Pin17=PB1
     244Mcu.Pin18=PB10
     245Mcu.Pin19=PB11
    224246Mcu.Pin2=PC15-OSC32_OUT
    225 Mcu.Pin20=PB11
    226 Mcu.Pin21=PB12
    227 Mcu.Pin22=PB13
    228 Mcu.Pin23=PB14
    229 Mcu.Pin24=PB15
    230 Mcu.Pin25=PC6
    231 Mcu.Pin26=PC7
    232 Mcu.Pin27=PC8
    233 Mcu.Pin28=PC9
    234 Mcu.Pin29=PA8
     247Mcu.Pin20=PB12
     248Mcu.Pin21=PB13
     249Mcu.Pin22=PB14
     250Mcu.Pin23=PB15
     251Mcu.Pin24=PC6
     252Mcu.Pin25=PC7
     253Mcu.Pin26=PC8
     254Mcu.Pin27=PC9
     255Mcu.Pin28=PA8
     256Mcu.Pin29=PA9
    235257Mcu.Pin3=PF0-OSC_IN
    236 Mcu.Pin30=PA9
    237 Mcu.Pin31=PA10
    238 Mcu.Pin32=PA11
    239 Mcu.Pin33=PA12
    240 Mcu.Pin34=PA13
    241 Mcu.Pin35=PA14
    242 Mcu.Pin36=PA15
    243 Mcu.Pin37=PC10
    244 Mcu.Pin38=PC11
    245 Mcu.Pin39=PC12
     258Mcu.Pin30=PA10
     259Mcu.Pin31=PA11
     260Mcu.Pin32=PA12
     261Mcu.Pin33=PA13
     262Mcu.Pin34=PA14
     263Mcu.Pin35=PA15
     264Mcu.Pin36=PC10
     265Mcu.Pin37=PC11
     266Mcu.Pin38=PC12
     267Mcu.Pin39=PD2
    246268Mcu.Pin4=PF1-OSC_OUT
    247 Mcu.Pin40=PD2
    248 Mcu.Pin41=PB3
    249 Mcu.Pin42=PB4
    250 Mcu.Pin43=PB5
    251 Mcu.Pin44=PB6
    252 Mcu.Pin45=PB7
    253 Mcu.Pin46=PB9
    254 Mcu.Pin47=VP_ADC5_TempSens_Input
    255 Mcu.Pin48=VP_ADC5_Vbat_Input
    256 Mcu.Pin49=VP_CRC_VS_CRC
     269Mcu.Pin40=PB3
     270Mcu.Pin41=PB4
     271Mcu.Pin42=PB5
     272Mcu.Pin43=PB6
     273Mcu.Pin44=PB7
     274Mcu.Pin45=PB9
     275Mcu.Pin46=VP_ADC5_TempSens_Input
     276Mcu.Pin47=VP_ADC5_Vbat_Input
     277Mcu.Pin48=VP_CRC_VS_CRC
     278Mcu.Pin49=VP_SYS_V_VREFBUF
    257279Mcu.Pin5=PC0
    258280Mcu.Pin50=VP_SYS_VS_Systick
     
    274296NVIC.DMA1_Channel4_IRQn=true\:0\:0\:false\:false\:true\:false\:true\:true
    275297NVIC.DMA1_Channel5_IRQn=true\:0\:0\:false\:false\:true\:false\:true\:true
     298NVIC.DMA1_Channel6_IRQn=true\:0\:0\:false\:false\:true\:false\:true\:true
    276299NVIC.DebugMonitor_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false
    277300NVIC.ForceEnableDMAVector=true
     
    283306NVIC.SVCall_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false
    284307NVIC.SysTick_IRQn=true\:15\:0\:false\:false\:true\:false\:true\:false
     308NVIC.USART1_IRQn=true\:0\:0\:false\:false\:true\:true\:true\:true
     309NVIC.USART2_IRQn=true\:0\:0\:false\:false\:true\:true\:true\:true
    285310NVIC.UsageFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false
    286311PA0.Locked=true
     
    322347PA6.GPIOParameters=GPIO_Label
    323348PA6.GPIO_Label=ADC2_IN3_UBAT+
    324 PA6.Mode=IN3-Differential
     349PA6.Mode=IN3-Single-Ended
    325350PA6.Signal=ADC2_IN3
    326 PA7.GPIOParameters=GPIO_Label
    327 PA7.GPIO_Label=ADC2_IN4_UBAT-
    328 PA7.Mode=IN3-Differential
    329 PA7.Signal=ADC2_IN4
    330351PA8.GPIOParameters=GPIO_Label
    331352PA8.GPIO_Label=LVP_SENSE
     
    524545USART1.Parity=PARITY_EVEN
    525546USART1.VirtualMode-Asynchronous=VM_ASYNC
    526 USART2.IPParameters=VirtualMode-Asynchronous
     547USART2.BaudRate=115200
     548USART2.IPParameters=VirtualMode-Asynchronous,Parity,BaudRate,SwapParam,WordLength
     549USART2.Parity=PARITY_EVEN
     550USART2.SwapParam=ADVFEATURE_SWAP_ENABLE
    527551USART2.VirtualMode-Asynchronous=VM_ASYNC
     552USART2.WordLength=WORDLENGTH_9B
    528553VP_ADC5_TempSens_Input.Mode=IN-TempSens
    529554VP_ADC5_TempSens_Input.Signal=ADC5_TempSens_Input
     
    536561VP_SYS_VS_Systick.Mode=SysTick
    537562VP_SYS_VS_Systick.Signal=SYS_VS_Systick
     563VP_SYS_V_VREFBUF.Mode=ExternalMode
     564VP_SYS_V_VREFBUF.Signal=SYS_V_VREFBUF
    538565board=custom
Note: See TracChangeset for help on using the changeset viewer.