Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - internship2

Pages: [1]
1
NXPTM M522XX, KINETIS and i.MX RT / Re: enable_irq(INT_FTM0-16)
« on: March 07, 2013, 09:02:25 AM »
Hi Mark
I think this giving me some problems. I am having the interrupt outside the kinetis.c. I am making a prototype:
extern void fnEnterInterrupt(int, int, void (*InterruptFunc)(void)); and put it to timer.h, then i check that there is a connection to kinetis.c, and it is working. I am using the function in timer.c, in the end off my timer configuration. The compiler is getting a error saying, undefined: "fnEnterInterrupt"
i have be trying to define the variables in the prototype but it still get error ?


2
NXPTM M522XX, KINETIS and i.MX RT / enable_irq(INT_FTM0-16)
« on: March 06, 2013, 02:18:45 PM »
Hi
I am trying to do this operating
enable_irq(INT_FTM0-16)
but i need to find a other way to do it, some one there now a way?


3
µTasker general / Re: How to use the UART to get data and send data!
« on: February 27, 2013, 11:16:43 AM »
Hi i am trying to get some messege out on the Terminal in CodeWarrior. I am trying to use
fnDebugMsg("Hallo world!");
I have
#define DEMO_UART and #define SERIAL_INTERFACE
i am using the right com port
it is becource its not possible to geth out in terminal or Tera Term

I am sitting with a K60F120M tower

4
µTasker general / Re: User Documentation Source Code
« on: February 20, 2013, 10:53:07 AM »
Hi Mark
I still geth in a lot of trouble doing the debug msg. I have try to debug, and my code newer get in to the seriel configuration wich i have make the configuration in app_hw_kinetis.h:
#ifdef SERIAL_INTERFACE
    #define WELCOME_MESSAGE_UART   "\r\n\nHello, world... KINETIS\r\n"
    #define NUMBER_EXTERNAL_SERIAL 0
    #define NUMBER_SERIAL   (UARTS_AVAILABLE)                            // the number of physical queues needed for serial interface(s)
    #define SIM_COM_EXTENDED                                             // COM ports defined from 1..255
    #define SERIAL_PORT_0    3                                           // if we open UART channel 0 we simulate using comx on the PC
  //  #define SERIAL_PORT_1    9                                           // if we open UART channel 1 we simulate using comx on the PC
   // #define SERIAL_PORT_2    9                                           // if we open UART channel 2 we simulate using comx on the PC
   // #define SERIAL_PORT_3    9                                           // if we open UART channel 3 we simulate using comx on the PC
   // #define SERIAL_PORT_4    13                                          // if we open UART channel 4 we simulate using comx on the PC
   // #define SERIAL_PORT_5    9                                           // if we open UART channel 5 we simulate using comx on the PC
#if defined TWR_K70F120M
        #define DEMO_UART    2                                           // use UART 2
    #elif defined TWR_K20N50M                                            // {2}
        #define DEMO_UART    1                                           // use UART 1
    #elif defined KWIKSTIK || defined TWR_K60F120M
        #define DEMO_UART    5                                           // use UART 5
    #else
        #define DEMO_UART    3                                           // use UART 3
    #endif

in config.h:

#define SERIAL_INTERFACE                                                 // enable serial interface driver
#ifdef SERIAL_INTERFACE
    #define SERIAL_STATS                                                 // keep statistics about serial interface use
    #define SUPPORT_MSG_MODE                                             // enable terminator recognition (MSG_MODE)
    #define SUPPORT_MSG_CNT                                              // enable the message counter mode (MSG_MODE_RX_CNT) - requires also SUPPORT_MSG_MODE
    #define WAKE_BLOCKED_TX                                              // allow a blocked transmitter to continue after an interrupt event
      //#define WAKE_BLOCKED_TX_BUFFER_LEVEL                             

I don't get it ! you now what i am doing wrong, i tryet to follow the link you send

5
NXPTM M522XX, KINETIS and i.MX RT / Re: Flex timer
« on: February 19, 2013, 03:11:02 PM »
Hi Mark
I wont to receiving a signal, check have many pulses there are in it and the time. I think i have found the solution with this code:

static void fnConfigure_Timer(void)
{
   
   static TIMER_INTERRUPT_SETUP timer_setup = {0};    //interrupt configuration
   timer_setup.int_type = TIMER_INTERRUPT;
   timer_setup.int_priority = PRIORITY_TIMERS;
   timer_setup.int_handler = 0;                  //interrupt handler on overflow
   timer_setup.timer_reference = 2;               //timer channel 2 (to se wich one to use) se app_hw_kinetis.h I am using ftm
   timer_setup.timer_mode = (FTM0_EXTTRIG);          //Timer clock input and edge
   timer_setup.timer_value = 0.000002;               //u sec. 1/500.000
   fnConfigureInterrupt((void *)&timer_setup);         //enable PWM signal      
}

6
µTasker general / Re: User Documentation Source Code
« on: February 18, 2013, 02:31:51 PM »
Hi Mark
Thanks i have now done the simulation.
When i debug o wont the text to be written out, is this possible? 

7
NXPTM M522XX, KINETIS and i.MX RT / Flex timer
« on: February 18, 2013, 01:16:06 PM »
Hi i need a timer for checking on a signal. I have be looking at the flex timer from Freescale. Someone now if this is possible to use with uTasker or if uTasker have a better timer?

8
µTasker general / Re: User Documentation Source Code
« on: February 15, 2013, 10:25:07 AM »
In the simulation i get this error
Error   1   error LNK2001: unresolved external symbol _fnMyFirstTask   

and that i dont geth

9
µTasker general / Re: User Documentation Source Code
« on: February 15, 2013, 10:15:57 AM »
Okay i have now startet a new project, and i have make the new task and its compile and debug without any problems, only that, that i newer get the hello world message out

10
µTasker general / Re: User Documentation Source Code
« on: February 15, 2013, 09:39:30 AM »
When i have the new Task in the projekt, i could not simulate, it make a problem with _fnMyNewTask. I took it away and try again, the simulate, but the debug still make same problem :(

11
µTasker general / Re: User Documentation Source Code
« on: February 14, 2013, 03:28:59 PM »
Hi
when i try out the first code (5. Adding a New Task to You Projekt) i getting a problem
No source available for "0x0000678C (0x0000678C)() "
This problem i dont understand, is this because my UART not is mapped correct ?

Pages: [1]