Hi Bruno,
At this point the main problem (My board not communicating with Freemaster) is solved, but…
But it only worked when I changed the definitions below at freemaster_cfg.h:
#define FMSTR_LONG_INTR 0 /* Complete message processing in interrupt */
#define FMSTR_SHORT_INTR 0 /* SCI FIFO-queuing done in interrupt */
#define FMSTR_POLL_DRIVEN 1 /* No interrupt needed, polling only */
Wich means using polling SCI (I want to use short interrupt). Reading the AN4752, it says (page 13):
“FMSTR_Isr() must be assigned to the UART3 interrupt vector. The kinetis_sysinit.c file contains the vector table definition. Here, we can define the called FreeMASTER:”
(tIsrFunc) FMSTR_Isr, /* 67 (0x0000010C) (prior: -) UART 3 status sources */
(tIsrFunc) FMSTR_Isr, /* 68 (0x00000110) (prior: -) UART 3 error sources */
The thing is, this kinetis_sysinit.c file was not generated and I really don´t now where is located my vector table and how to assign FMSTR_Isr() to UART 1, the peripheral I´m using to communicate with Freemaster.
Regards,
Marcio.
De: brunotremblay <admin@community.nxp.com>
Enviada em: quinta-feira, 4 de outubro de 2018 16:58
Para: Marcio L. Carleto <mcarleto@sighra.com.br>
Assunto: Re: - Re: Freemaster with FRDM-KE06Z
<https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg> NXP Community
Re: Freemaster with FRDM-KE06Z
reply from Bruno Tremblay <https://community.nxp.com/people/brunotremblay?et=watches.email.thread> in Kinetis Microcontrollers - View the full discussion <https://community.nxp.com/message/1064779?commentID=1064779&et=watches.email.thread#comment-1064779>