Facing issues with HW Trigger for ADC conversions using BCTU

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Facing issues with HW Trigger for ADC conversions using BCTU

1,369件の閲覧回数
Gunasekar
Contributor I

We are using EB Tresos for our project. This is an Autosar standard project. In our project we are trying to implement HW trigger for ADC conversions using BCTU. A PWM signal will be given to BCTU module and then BCTU will initiate a CL conversion. We also have implemented DMA so that after this CL conversion the results stored in the BCTU Fifo will be copied to a user buffer. Although with SW trigger we are able to successfully convert and transfer ADC results but when we try with HW trigger it is causing us much trouble. Like, after we flash and run the test code for the first time its working somewhat fine but when we reset and run the test code again, exception is occurred(DMA channel error interrupt i think). When we decoded with the TCD registers we are seeing Source Bus error bit set for the DMA channel. We believe this is not happening because of DMA itself but due to BCTU module as previously also we faced challenge when we tried to do ADC conversions using HW trigger without DMA .We think the DMA channels's configurations are updated inside Adc_EnableCtuControlmode(). We are using control mode in our project.

 

Gunasekar_0-1709203929519.png

 

Gunasekar_1-1709203951059.png

 

 

Gunasekar_2-1709203982170.png

 

 

Gunasekar_3-1709204074193.png

 

0 件の賞賛
返信
3 返答(返信)

1,282件の閲覧回数
Gunasekar
Contributor I

Hi @PetrS 

I have a query. When we are running our project , its running into an BusFault after sometime. Can u do any help on it?

Our test project is simple.

We have a PWM signal(OPWMT - 9ms), it will trigger bctu module to initiate a CL conversion. The ADC will start the conversions and store the results into bctu FIFO. Using the watermark level of bctu FIFO, DMA request will be sent to the DMA channel configured requesting it to transfer the data from bctu fifo into a user buffer. We have developed the project completely using EBT. 

The error we are seeing is this:- 

Gunasekar_0-1710412441251.png

 

0 件の賞賛
返信

1,277件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport
0 件の賞賛
返信

1,310件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

check clock setting, if this follow requirement and specification given in the device RM and DS.

BR, Petr

0 件の賞賛
返信