AsynchroSerial component headaches with KL46Z

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

AsynchroSerial component headaches with KL46Z

1,301 Views
russellsher
Contributor III

I am using the KL46Z board:

If I send characters such as:

AS1_SendChar(‘a’);

AS1_SendChar(‘b’);

Only the ‘a’ was sent…

Then I realized that if I include a delay between sending, then it worked.

After that I enabled interrupts to use AS1_SendBlock

If I then do any uart function – either AS1_SendChar or AS1_SendBlock

The program sends one character  and then hangs.

By the way - how (and when) would you use   AS1_Enable();

I get 'undefined reference' to it  (with interrupts enabled for ASerialLdd1)

(I still cannot enter debug mode at all and can only drop and drag to the folder to run code.)

0 Kudos
Reply
4 Replies

1,000 Views
BlackNight
NXP Employee
NXP Employee

Hello,

if you receive a 'undefined reference' from the linker, this means that this method/function does not exist. Make sure you toggle enable/disable the function.

pastedImage_0.png

The 'x' in the Icon means the function is disabled (not generated).

Then do not forget to generate code.

Erich

0 Kudos
Reply

1,000 Views
russellsher
Contributor III

Hi and thanks Erich - Yes I see this now (I also posted a further comment to my last post on your site -- I think things are becoming clearer)

I used a serial example from Jing which works fine -- I think I don't have good understanding of the difference between Asyncroserial and Serial_LDD

I  guess my enabling interrupts resulted in a vector unknown territory with Asyncroserial. Do you use this routine? Perhaps have some code to share on your site - in particular withKL46Z

best regards

Russell

0 Kudos
Reply

1,000 Views
BlackNight
NXP Employee
NXP Employee

Hi Russel,

there are already several examples on GitHub here:

mcuoneclipse/Examples/FRDM-KL46Z at master · GitHub  (CodeWarrior, but settings are for KDS applicable too).

mcuoneclipse/Examples/KDS/FRDM-KL46Z at master  · GitHub  (KDS)

Erich

0 Kudos
Reply

1,000 Views
russellsher
Contributor III

Thanks Erich, I'll have a look.

0 Kudos
Reply