SCI communication Error (No source available)

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

SCI communication Error (No source available)

ソリューションへジャンプ
17,557件の閲覧回数
swapnil_chougul
Contributor I

Hello all,

@# SCI #SCI0 #SCI Error

I am trying to implement SCI code sent by you in S12ZVML-MINIBRD motor control application code.

As I implement SCI code in “S12ZVMLMINIBRD_BLDC_SW_CW11” motor control application code, the code error: No source available for "0x00C801 (0x00C801)() " occurs.

I am attaching the code kindly have a look.

 

I kindly request you, please suggest solution for above mentioned error.

I look forward for your response

Thanks in advance.

 

Sincerely,

Swapnil.

0 件の賞賛
返信
1 解決策
17,006件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hello Swapnil,

Please refer to the MC9S12ZVML128_BLDC_Sensorless.c file of the MINIBOARD BLDC SW.

pastedImage_1.png

AN5190

pastedImage_2.png

AN4704 3-phase Sensorless BLDC Motor Control Kit with the S12 MagniV MC9S12ZVM

https://www.nxp.com/docs/en/application-note/AN4704.pdf 

pastedImage_4.png

Regards,

Daniel

元の投稿で解決策を見る

0 件の賞賛
返信
24 返答(返信)
1,156件の閲覧回数
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello Swapnil,

I used the test code above S12ZVML_MINI_SCI.ZIP to echo the received character from an external device. So, the only change is in the main function.

Waiting for data from the external device in an infinite loop

while(!SCI1SR1_RDRF){};

data = SCI1DRL;
SCI1_Send_Data(data);

Because the external device is, also, MagniV I used the same settings as you can see in the S12ZVML_MINI_SCI.ZIP.


In my test, each device sends back received data. First data are sent by ExtDevice, then MINIBRD echoes data, etc. Measured communication on TX pins of each device can be seen in the image below.

pastedImage_3.png

Best regards,

Diana

0 件の賞賛
返信
1,156件の閲覧回数
swapnil_chougul
Contributor I

Hello Diana,

Thanks for the tests you performed.

I have already performed the tests with ESP32 and ESP8266, today I tried with Arduino MKR1000 but the results are same I couldn't see any data.

pastedImage_1.png

pastedImage_3.png

Regards,

Swapnil.

0 件の賞賛
返信
1,156件の閲覧回数
swapnil_chougul
Contributor I

Hello Diana,
Thank you for your response.

1) I am sure that you have checked transmission through SCI1 ( USB to Serial Terminal) and it works fine, I too experienced it before.

But the major issue is when I connect external device (e.g. ESP32) on J7 SCI port (Pin 2: RXD , Pin3: TXD) ,I couldn't see any data. ( I kindly request you, please connect the external device on J7 SCI port and observe it)

2) Regarding my second question related to PT1 on J2, I want  create an interrupt on PT1  and run the motor, I pulled  PT1 on J2 High ( by connecting it to VDDX),  Unfortunately, it doesn’t work. (I kindly request you please check and confirm , Is Port T pin (PT1)  a dedicated hardware pin capable of receiving external interrupt request ? ).

I would like to inform you, in S12ZVML-MINIBRD User Manual (Document Number: S12ZVML-MINIBRD_UM 1.0 04/2014) in chapter 5, it is clearly written that the motor can be controlled using the J2 header, placing the jumper short bar to J2, pin 1-2. 

3. Regarding my third question In order to control the PWM channels, I want to configure it in "Complementary low side fixed" mode. After referring the document number: AN5190 (S12ZVM Derivates: Configuring PMF module by Manuel Rodriguez), I configured the registers: PMFCGF12( MaskVal) = X34, 0X1C,0X13,0X31,0X0D,0X07 PMFOUTC(OutCtl) = 0x0c,0x30, 0x30,0x03, 0x03,0x0c PMFOUTB(BemfPhase) = {0x2A,0x2A,0x2A,0x2A,0x2A,0x2A};
With above values the motor doesn't run. 

I kindly request you please provide us the solution to resolve the above issues.

I look forward to hearing from you soon.

Thanks in advance.

Best regards

Swapnil.

0 件の賞賛
返信
1,156件の閲覧回数
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello Swapnil,

The default application already configured the SCI module of the MC9S12ZVML128 for a communication speed of 9600 bit/s.

what is the purpose of your application?

Thank you.

Best regards,

Diana

0 件の賞賛
返信