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 - echel0n

Pages: 1 [2] 3
16
µTasker general / Re: Newbie's firsttime with uTasker
« on: March 03, 2009, 01:16:01 AM »
Ok I got it to work but the way I did it is completly messed up.
I re-extracted the utasker along with service pack 3 and instead of copying the folder to a new folder to start a new project I just decided to edit it as is.

It worked!!!

So then I re-opened my older IKS project we've been messing with and it works now as well.

Why is this ?

17
µTasker general / Re: Newbie's firsttime with uTasker
« on: March 03, 2009, 01:06:07 AM »
ok I've gone as far as to install crossworks on my laptop and try it there and it was a no go.
i'm starting to wonder if it's my utasker source ?

18
µTasker general / Re: Newbie's firsttime with uTasker
« on: March 02, 2009, 11:29:45 PM »
Ok here's what I got when I disassemble
Code: [Select]
section .text

section .data

section .bss

section .text.fnSetNewSerialMode
  <fnSetNewSerialMode>:
  <fnIKSClient>:
   B570       push {r4-r6, lr}
   B084       sub sp, #0x010
   466D       mov r5, sp
   2301       movs r3, #0x01
   722B       strb r3, [r5, #0x08]
   4B1B       ldr r3, [pc, #0x06C]
   681A       ldr r2, [r3, #0x00]
   1C93       adds r3, r2, #0x2
   7FDB       ldrb r3, [r3, #0x1F]
   72EB       strb r3, [r5, #0x0B]
   2380       movs r3, #0x80
   015B       lsls r3, r3, #0x05
   80EB       strh r3, [r5, #0x06]
   2640       movs r6, #0x40
   2349       movs r3, #0x49
   732B       strb r3, [r5, #0x0C]
   80AE       strh r6, [r5, #0x04]
   1C13       adds r3, r2, #0x0
   334B       adds r3, #0x4B
   781B       ldrb r3, [r3, #0x00]
   736B       strb r3, [r5, #0x0D]
   1C13       adds r3, r2, #0x0
   334C       adds r3, #0x4C
   781B       ldrb r3, [r3, #0x00]
   73AB       strb r3, [r5, #0x0E]
   0601       lsls r1, r0, #0x18
   8B93       ldrh r3, [r2, #0x1C]
   0E09       lsrs r1, r1, #0x18
   2000       movs r0, #0x00
   466A       mov r2, sp
   802B       strh r3, [r5, #0x00]
   F7FFFFFE   bl 0x0000003E
   4C0E       ldr r4, [pc, #0x038]
   7020       strb r0, [r4, #0x00]
   2800       cmp r0, #0x00
   D010       beq 0x0000006C
   2105       movs r1, #0x05
   2200       movs r2, #0x00
   F7FFFFFE   bl 0x0000004E
   882B       ldrh r3, [r5, #0x00]
   4233       tst r3, r6
   D009       beq 0x0000006C
   4909       ldr r1, [pc, #0x024]
   2200       movs r2, #0x00
   7820       ldrb r0, [r4, #0x00]
   F7FFFFFE   bl 0x0000005E
   7820       ldrb r0, [r4, #0x00]
   2181       movs r1, #0x81
   2200       movs r2, #0x00
   F7FFFFFE   bl 0x00000068
   4B03       ldr r3, [pc, #0x00C]
   7818       ldrb r0, [r3, #0x00]
   B004       add sp, #0x010
   BC70       pop {r4-r6}
   BC02       pop {r1}
   4708       bx r1
   0000       lsls r0, r0, #0x00
   0000       lsls r0, r0, #0x00
   0000       lsls r0, r0, #0x00
   0000       lsls r0, r0, #0x00
   0404       lsls r4, r0, #0x10
   0000       lsls r0, r0, #0x00

section .text.fnIKSClient
  <fnSetNewSerialMode>:
  <fnIKSClient>:
   B510       push {r4, lr}
   4C1E       ldr r4, [pc, #0x078]
   7823       ldrb r3, [r4, #0x00]
   B081       sub sp, #0x004
   2B00       cmp r3, #0x00
   D125       bne 0x00000058
   2003       movs r0, #0x03
   F7FFFFFE   bl 0x0000000E
   7020       strb r0, [r4, #0x00]
   E020       b 0x00000058
   491A       ldr r1, [pc, #0x068]
   680A       ldr r2, [r1, #0x00]
   2A00       cmp r2, #0x00
   D107       bne 0x0000002E
   7822       ldrb r2, [r4, #0x00]
   2A21       cmp r2, #0x21
   D119       bne 0x00000058
   2301       movs r3, #0x01
   600B       str r3, [r1, #0x00]
   4B16       ldr r3, [pc, #0x058]
   701A       strb r2, [r3, #0x00]
   E014       b 0x00000058
   2A3F       cmp r2, #0x3F
   DD04       ble 0x0000003C
   4A15       ldr r2, [pc, #0x054]
   2300       movs r3, #0x00
   6013       str r3, [r2, #0x00]
   600B       str r3, [r1, #0x00]
   E00D       b 0x00000058
   7824       ldrb r4, [r4, #0x00]
   4B11       ldr r3, [pc, #0x044]
   1C50       adds r0, r2, #0x1
   54D4       strb r4, [r2, r3]
   6008       str r0, [r1, #0x00]
   2803       cmp r0, #0x03
   D102       bne 0x00000050
   4A0F       ldr r2, [pc, #0x03C]
   1CE3       adds r3, r4, #0x3
   6013       str r3, [r2, #0x00]
   4B0D       ldr r3, [pc, #0x034]
   681B       ldr r3, [r3, #0x00]
   4298       cmp r0, r3
   D00A       beq 0x0000006E
   4B08       ldr r3, [pc, #0x020]
   466C       mov r4, sp
   3403       adds r4, #0x03
   7818       ldrb r0, [r3, #0x00]
   1C21       adds r1, r4, #0x0
   2201       movs r2, #0x01
   F7FFFFFE   bl 0x00000064
   2800       cmp r0, #0x00
   D1D4       bne 0x00000016
   E001       b 0x00000072
   3001       adds r0, #0x01
   D1F2       bne 0x00000058
   B001       add sp, #0x004
   BC10       pop {r4}
   BC01       pop {r0}
   4700       bx r0
   0000       lsls r0, r0, #0x00
   0000       lsls r0, r0, #0x00
   0000       lsls r0, r0, #0x00
   0000       lsls r0, r0, #0x00
   0000       lsls r0, r0, #0x00
   0000       lsls r0, r0, #0x00
   0000       lsls r0, r0, #0x00
   0000       lsls r0, r0, #0x00
   0000       lsls r0, r0, #0x00

section .bss.SerialPortID
  <fnSetNewSerialMode>:
  <fnIKSClient>:
   000C       lsls r4, r1, #0x00

section .bss.ucSerialInput.2174
  <fnSetNewSerialMode>:
  <fnIKSClient>:
   000C       lsls r4, r1, #0x00
   0000       lsls r0, r0, #0x00
   FFFFFFFF   undefined opcode
   0001       lsls r1, r0, #0x00
   7C01       ldrb r1, [r0, #0x10]
   0C0E       lsrs r6, r1, #0x10
   000D       lsls r5, r1, #0x00
   0024       lsls r4, r4, #0x00
   0000       lsls r0, r0, #0x00
   0000       lsls r0, r0, #0x00
   0000       lsls r0, r0, #0x00
   0000       lsls r0, r0, #0x00
   0000       lsls r0, r0, #0x00
   0084       lsls r4, r0, #0x02
   0000       lsls r0, r0, #0x00
   0204       lsls r4, r0, #0x08
   0000       lsls r0, r0, #0x00
   0E00       lsrs r0, r0, #0x18
   8410       strh r0, [r2, #0x20]
   8504       strh r4, [r0, #0x28]
   8603       strh r3, [r0, #0x30]
   8E02       ldrh r2, [r0, #0x30]
   0401       lsls r1, r0, #0x10
   0002       lsls r2, r0, #0x00
   0000       lsls r0, r0, #0x00
   200E       movs r0, #0x0E
   0000       lsls r0, r0, #0x00
   0020       lsls r0, r4, #0x00
   0000       lsls r0, r0, #0x00
   0000       lsls r0, r0, #0x00
   0000       lsls r0, r0, #0x00

section .bss.iExpectedbytes.2153
  <fnSetNewSerialMode>:
  <fnIKSClient>:
   000C       lsls r4, r1, #0x00
   0000       lsls r0, r0, #0x00

section .bss.iRxReceived.2152
  <fnSetNewSerialMode>:
  <fnIKSClient>:
   000C       lsls r4, r1, #0x00
   0000       lsls r0, r0, #0x00

Still I'm unable to set breakpoints

19
µTasker general / Re: Newbie's firsttime with uTasker
« on: March 02, 2009, 08:47:52 PM »
Ok I've emailed my source code.
Just extract it into the application folder.

The trick worked to allow me to debug the code but my task was never called.

20
µTasker general / Re: Newbie's firsttime with uTasker
« on: March 02, 2009, 01:50:51 AM »
Well I've tried everything and so far the only way I see this working is to call fnIKSClient() from application.c
How might I go about doing this properly since it's a task that needs to be executed.

21
µTasker general / Re: Newbie's firsttime with uTasker
« on: February 28, 2009, 10:24:29 PM »
Ok calling fnIKSClient(0) from application.c fixes the issue so it must be something with TaskConfig.h

Here's the code contained in TaskConfig.h

Code: [Select]
   /********************************************************************
   Mark Butcher      Bsc (Hons) MPhil MIEE

   M.J.Butcher Consulting
   Obere Bahnhofstrasse 13, 5507 Mellingen

   www.uTasker.com      Skype: M_J_Butcher

   ---------------------------------------------------------------------
   File:        TaskConfig.h
   Project:     Single Chip Embedded Internet
   ---------------------------------------------------------------------
   Copyright (C) M.J.Butcher Consulting 2004..2008
   *********************************************************************

   28.04.2007 Add SNMP task
   13.05.2007 Add PPP task

*/


/******************************** The tasks used in the system ********************************************/
/* Warning - each task must use a unique letter equivalent to the start of its task name                  */
#define TASK_WATCHDOG           'W'                                      // watchdog task
#define TASK_ETHERNET           'E'                                      // ethernet task
#define TASK_ARP                'A'                                      // ARP task
#define TASK_TCP                'T'                                      // TCP task
#define TASK_BOOTP              'B'                                      // Bootp task
#define TASK_DHCP               'D'                                      // DHCP task
#define TASK_DNS                'd'                                      // DNS task
#define TASK_POP3               'P'                                      // POP 3 task
#define TASK_PPP                'U'                                      // PPP task
#define TASK_SMTP               'S'                                      // SMTP task
#define TASK_FTP                'F'                                      // FTP task
#define TASK_TFTP               't'                                      // TFTP task
#define TASK_APPLICATION        'a'                                      // application task
#define TASK_CAN_SIM            'c'                                      // CAN simulator task
#define TASK_DEBUG              'm'                                      // debugger (maintenance) task
#define TASK_TIMER              'p'                                      // timer task for global timer use
#define TASK_LCD                'L'                                      // application LCD task
#define TASK_KEY                'K'                                      // keyboard scanning task
#define TASK_NETWORK_INDICATOR  'N'                                      // task displaying network activity
#define TASK_DATA_SOCKET        's'                                      // task handling data socket
#define TASK_ICMP               'i'                                      // this is a pseudotask for sending ping results
#define TASK_LOW_POWER          'l'                                      // Task supporting power saving
#define TASK_SNMP               'M'                                      // snMp protocol task
#define TASK_IKS_CLIENT         'I'

#undef  OWN_TASK

#ifdef LAN_REPORT_ACTIVITY
   #define INTERRUPT_TASK_PHY         TASK_NETWORK_INDICATOR             // This task is woken on PHY changes (set 0 for none)
#endif
#define UNETWORK_MASTER               TASK_APPLICATION                   // This task is worken on uNetwork error events
#define INTERRUPT_TASK_LAN_EXCEPTIONS TASK_NETWORK_INDICATOR             // This task is woken on Ethernet exceptions (set 0 for none)
#define INTERRUPT_TASK_SERIAL_CONTROL TASK_APPLICATION                   // This task is woken on general serial control line changes (set 0 for none)
#define CAN_ERROR_TASK                TASK_APPLICATION                   // This task is woken on CAN errors

extern void fnTaskWatchdog(TTASKTABLE *);
extern void fnApplication(TTASKTABLE *);
extern void fnDebug(TTASKTABLE *);
extern void fnTaskEthernet(TTASKTABLE *);
extern void fnTaskArp(TTASKTABLE *);
extern void fnTaskTCP(TTASKTABLE *);
extern void fnDHCP(TTASKTABLE *);
extern void fnBootp(TTASKTABLE *);
extern void fnDNS(TTASKTABLE *);
extern void fnPOP3(TTASKTABLE *);
extern void fnSmtp(TTASKTABLE *);
extern void fnTftp(TTASKTABLE *);
extern void fnLCD(TTASKTABLE *);
extern void fnADC(TTASKTABLE *);
extern void fnKey(TTASKTABLE *);
extern void fnTimer(TTASKTABLE *);
extern void fnNetworkIndicator(TTASKTABLE *);
extern void fnLowPower(TTASKTABLE *);
extern void fnSNMP(TTASKTABLE *);
extern void fnPPP(TTASKTABLE *);
extern void fnIKSClient(TTASKTABLE *ptrTaskTable);


/************ uTasker task table is defined here but only used by the hardware module initiates the system ***********/

#define DEFAULT_NODE_NUMBER    1                                         // we use one fixed node in the system

#ifdef SUPPORT_DISTRIBUTED_NODES
    extern const unsigned char ucNodeMac[MAX_NETWORK_NODES][MAC_LENGTH];
#endif

#ifdef OPSYS_CONFIG                                                      // this is only set in the hardware module

CONFIG_LIMIT OurConfigNr = DEFAULT_NODE_NUMBER;                          // in single node system this can be initialised with a fixed value

#ifdef SUPPORT_DISTRIBUTED_NODES
    NETWORK_LIMIT OurNetworkNumber = 0;                                  // this value must be set (to non-zero) on startup individually for each node in the network

    const unsigned char ucNodeMac[MAX_NETWORK_NODES][MAC_LENGTH] = {
        {0,0,0,0,0,1},                                                   // MAC address of nodes in the system
        {0,0,0,0,0,2}
    };
#endif

const HEAP_NEEDS ctOurHeap[] = {
    {DEFAULT_NODE_NUMBER, OUR_HEAP_SIZE},                                // our node requires this amount of heap space
    {0}                                                                  // end
};


const UTASK_TASK ctNodes[] = {                                           // we use a single fixed configuration (single node)
  DEFAULT_NODE_NUMBER,                                                   // configuration our single node

  TASK_WATCHDOG,                                                         // watchdog task
#ifdef USE_IP
  TASK_ARP,                                                              // ARP task
#endif
#ifdef ETH_INTERFACE
  TASK_ETHERNET,                                                         // ethernet task
#endif
#ifdef USE_TCP
  TASK_TCP,                                                              // TCP task
#endif
  TASK_APPLICATION,                                                      // application task
  TASK_DEBUG,                                                            // maintenance task
#ifdef USE_BOOTP
  TASK_BOOTP,                                                            // Bootp task
#endif
#ifdef USE_DHCP
  TASK_DHCP,                                                             // DHCP task
#endif
#ifdef USE_DNS
  TASK_DNS,                                                              // DNS task
#endif
#ifdef USE_POP3
  TASK_POP3,                                                             // POP 3 task
#endif
#ifdef USE_SMTP
  TASK_SMTP,                                                             // POP 3 task
#endif
#ifdef USE_FTP
  TASK_FTP,                                                              // FTP task
#endif
#ifdef USE_TFTP
  TASK_TFTP,                                                             // TFTP task
#endif
#ifdef SUPPORT_LCD
  TASK_LCD,                                                              // LCD task
#endif
#ifdef USE_SNMP
  TASK_SNMP,                                                             // SNMP task
#endif
#ifdef SUPPORT_ADC
  TASK_ADC,                                                              // ADC task
#endif
#ifdef USE_PPP
  TASK_PPP,                                                              // PPP task
#endif
#ifdef SUPPORT_KEY_SCAN
  TASK_KEY,                                                              // Key scan task
#endif
#ifdef GLOBAL_TIMER_TASK
  TASK_TIMER,                                                            // Gobal Timer Task
#endif
  TASK_NETWORK_INDICATOR,                                                // network activity indicator task
  TASK_DATA_SOCKET,                                                      // data socket task
#ifdef SUPPORT_LOW_POWER
  TASK_LOW_POWER,                                                        // Low power task
#endif
  TASK_IKS_CLIENT,
  0,                                                                     // end of single configuration

  // insert more node configurations here if required
  0                                                                      // end of configuration list
};


const UTASKTABLEINIT ctTaskTable[] = {
  // task name,  task routine,   input queue size, start delay, period, initial task state
#ifdef _HW_SAM7X
  { "Wdog",      fnTaskWatchdog, NO_QUE,   (DELAY_LIMIT)( 0.2 * SEC ), (DELAY_LIMIT)( 0.2 * SEC ),  UTASKER_STOP},    // watchdog task (Note SAM7X is not allowed to start watchdog immediately since it also checks for too fast triggering!!)
#else
  { "Wdog",      fnTaskWatchdog, NO_QUE,   0, (DELAY_LIMIT)( 0.2 * SEC ),  UTASKER_GO},      // watchdog task (runs immediately and then periodically)
#endif
#ifdef USE_IP    // Warning - start ARP task before Ethernet. If Ethernet messages are received before ARP tabelle is ready there would be an error..
  { "ARP",       fnTaskArp,      MEDIUM_QUE, (DELAY_LIMIT)(0.05 * SEC), 0, UTASKER_STOP},  // ARP task check periodically state of ARP table
#endif
#ifdef ETH_INTERFACE
  { "Eth",       fnTaskEthernet, (HEADER_LENGTH * 12),  (DELAY_LIMIT)(0.05 * SEC), 0, UTASKER_STOP}, // ethernet task - runs automatically
#endif
#ifdef USE_TCP
  { "TCP",       fnTaskTCP,      MEDIUM_QUE,  (DELAY_LIMIT)(0.10 * SEC), 0, UTASKER_STOP}, // TCP task checks periodically state of session timeouts (controlled by task itself)
#endif
  { "app",       fnApplication,  MEDIUM_QUE,  (DELAY_LIMIT)(0.10 * SEC), 0, UTASKER_STOP}, // Application - start after Ethernet to be sure we have Ethernet handle
#ifdef USE_BOOTP
  { "BOOTP",     fnBootp,        SMALL_QUEUE, (DELAY_LIMIT)(0.10 * SEC), 0, UTASKER_STOP}, //
#endif
#ifdef USE_DHCP
  { "DHCP",      fnDHCP,         SMALL_QUEUE, (DELAY_LIMIT)(NO_DELAY_RESERVE_MONO), 0, UTASKER_STOP}, // delay only for timer queue space
#endif
#ifdef USE_DNS
  { "dNS",       fnDNS,          SMALL_QUEUE, (DELAY_LIMIT)(0.05 * SEC), 0, UTASKER_STOP}, // start before application calls a search
#endif
#ifdef USE_POP3
  { "POP",       fnPOP3,         SMALL_QUEUE, (DELAY_LIMIT)(0.10 * SEC), 0, UTASKER_STOP}, //
#endif
#ifdef USE_SMTP
  { "SMTP",      fnSmtp,         SMALL_QUEUE, (DELAY_LIMIT)(NO_DELAY_RESERVE_MONO), 0, UTASKER_STOP},  //
#endif
#ifdef USE_TFTP
  { "tFTP",      fnTftp,         SMALL_QUEUE, (DELAY_LIMIT)(NO_DELAY_RESERVE_MONO), 0, UTASKER_STOP},  //
#endif
#ifdef USE_SNMP
  { "MsnMp",     fnSNMP,         SMALL_QUEUE, (DELAY_LIMIT)(NO_DELAY_RESERVE_MONO), 0, UTASKER_STOP},  //
#endif
#ifdef USE_PPP
  { "Uart_ppp",  fnPPP,          SMALL_QUEUE, (DELAY_LIMIT)(NO_DELAY_RESERVE_MONO), 0, UTASKER_STOP},  //
#endif
#ifdef SUPPORT_LCD
  { "LCD",       fnLCD,          MEDIUM_QUE,  (DELAY_LIMIT)(NO_DELAY_RESERVE_MONO), 0, UTASKER_STOP},  //
#endif
#ifdef SUPPORT_ADC
  { "cDA",       fnADC,          NO_QUE,      (DELAY_LIMIT)(2.0 * SEC), (DELAY_LIMIT)(0.05 * SEC), UTASKER_STOP},  //
#endif
#ifdef SUPPORT_KEY_SCAN
  { "Key",       fnKey,          NO_QUE,      (DELAY_LIMIT)(0.1 * SEC), (DELAY_LIMIT)(0.1 * SEC), UTASKER_STOP},  //
#endif
#ifdef GLOBAL_TIMER_TASK
  { "period",    fnTimer,        SMALL_QUEUE, (DELAY_LIMIT)(NO_DELAY_RESERVE_MONO), 0, UTASKER_STOP},   //
#endif
#ifdef USE_MAINTENANCE
  { "maintenace",fnDebug,        SMALL_QUEUE, (DELAY_LIMIT)(NO_DELAY_RESERVE_MONO), 0, UTASKER_STOP}, // Task used for debug messages (started by application)
#endif
#ifdef LAN_REPORT_ACTIVITY
  { "NetInd", fnNetworkIndicator,LARGE_QUE,   (DELAY_LIMIT)(NO_DELAY_RESERVE_MONO), 0, UTASKER_STOP}, // Network activity task
#endif
#ifdef SUPPORT_LOW_POWER
  { "lowPower", fnLowPower,      NO_QUE,      0, 0, UTASKER_GO},         // Low power task
#endif
  { "I",       fnIKSClient,  MEDIUM_QUE,  (DELAY_LIMIT)(0.20 * SEC), 0, UTASKER_STOP},
  { 0 }
};
#endif                                                                   // end of task configuration

22
µTasker general / Re: Newbie's firsttime with uTasker
« on: February 28, 2009, 08:36:28 PM »
Ok I've done exactly as you've instructed and here's the outcome.

#1. Function fnReadIRD has no breakpoints and says no code present.
#2. Function fnIKSClient has no breakpoints and says no code present.
#3. Function fnSetNewSerialMode has breakpoints.

I just don't understand whats happening here.

Any idea's ?

23
µTasker general / Re: Newbie's firsttime with uTasker
« on: February 27, 2009, 06:57:19 PM »
Mark have you tried and got same issue now as I do ?

24
µTasker general / Re: Newbie's firsttime with uTasker
« on: February 27, 2009, 05:10:17 PM »
Ok the problem is back again but this time I've not modified application.c and only touched TaskConfig.h to add my task in then created a new file and added the following code:

Code: [Select]
#include "config.h"

#define OWN_TASK             TASK_IKS_CLIENT

#define INITIALISATION       0
#define ACTIVE               1

QUEUE_HANDLE SerialPortID;
static unsigned char ucSerialInput[RX_BUFFER_SIZE];                  // static buffer for collecting UART data

static char fnReadIrd(unsigned char * buf)
{
  unsigned char ucInputMessage;                  // reserve space for receiving messages
  int a = 0;

  if (fnRead(SerialPortID, &ucInputMessage, 1) != 0) {
    return -1;
  }

  if (ucInputMessage != 0x21) {
    return -1;
  }
  buf[0] = ucInputMessage;

  while (fnRead(SerialPortID, &ucInputMessage, 1) != 0);
    buf[1] = ucInputMessage;
  while (fnRead(SerialPortID, &ucInputMessage, 1) != 0);
    buf[2] = ucInputMessage;

  for (a = 0; a < buf[2] + 1; ++a)
  {
      while (fnRead(SerialPortID, &ucInputMessage, 1) != 0);
      {
          buf[3 + a] = ucInputMessage;
      }
  }

  return buf[2] + 4;
}

extern void fnIKSClient(TTASKTABLE *ptrTaskTable)
{
  static int iSerialRxLenth = 0;                                       // length of collected UART data
  static int iTaskState = INITIALISATION;

  QUEUE_HANDLE        PortIDInternal = ptrTaskTable->TaskID;           // queue ID for task input
 
  if (INITIALISATION == iTaskState) {                                  // configure interfaces on initialisation
      fnSetNewSerialMode(FOR_I_O);
      iTaskState = ACTIVE;
  }

  // Wait for RX Data from receiver
  while ((iSerialRxLenth = fnReadIrd(ucSerialInput)) == -1);
}

Give it a try and tell me if you get breakpoints or not please ...

25
µTasker general / Re: Newbie's firsttime with uTasker
« on: February 27, 2009, 03:49:03 PM »
I belieave I've located the problem.

For whatever reason crossworks was reporting there was no issues with the build and made it appear as if things compiled perfectly.
It was clearly misleading me as I extracted a fresh copy of uTasker and created a file called test.c then created a task for it in TaskConfig.h then re-compiled and debugged. All the blue arrows were present.

For whatever reason before it would do this but like I said I heavily modified application.c and stripped out ALOT of code and moved all the serial routines from there to serial.c.

I'm gonna try this again but keep a closer eye on it this time.

Thanks and I'll let you know how my progress makes.

BTW if I have to create serial.h cause I have to move code from application.h into would I include serial.h in config.h ?

26
µTasker general / Re: Newbie's firsttime with uTasker
« on: February 27, 2009, 03:25:18 PM »
Ok just created test.h and no diffrence. I just don't understand what the reasoning behind this would be.

27
µTasker general / Re: Newbie's firsttime with uTasker
« on: February 27, 2009, 03:20:19 PM »
Yes I can see it in the MAP file and it's being linked in perfectly.

This doesn't make any sense to me why it would do this to me.

Now keep in mind I'm creating test.c and NO test.h so I don't know if that would be the culprit.

28
µTasker general / Re: Newbie's firsttime with uTasker
« on: February 27, 2009, 03:10:30 PM »
Ok Now I've gone as far as to extracting the uTasker source files and service pack files from scratch again into a new folder and not touching a single file.
What I've done is add a new file called test.c with some source code in it, maybe about 10 lines of code.

I've compiled it fine but when debugging I get no breakpoints in ONLY that file.

Any clues ?

29
µTasker general / Re: Newbie's firsttime with uTasker
« on: February 27, 2009, 03:06:27 PM »
It's not being excluded from build and I added something to it that I know would throw a compile error and it did throw the error so I'm slightly confused as to whats wrong.

30
µTasker general / Re: Newbie's firsttime with uTasker
« on: February 27, 2009, 02:44:24 PM »
Ok from what I can tell this is ONLY happening when creating new files.

I created test.c and copied some code from applicaiton.c into test.c then started debugging to find I was unable to set breakpoints with this new code in test.c yet the very same code in application.c was able to have breakpoints applied to it.

whats the reason for this ?

Pages: 1 [2] 3