Sunday, December 17th 2017, 1:29am UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

rakeshm55

Beginner

Date of registration: Aug 18th 2017

Posts: 2

1

Tuesday, October 24th 2017, 10:49am

[SOLVED] SystemView In No OS mode in CCS for Tiva

Hi,
I use Code Composer Studio

Version: 7.1.0.00016

MicroController - TM4C129 (Tiva series)

J-Link Ultra+ - debugger
I am experimenting with SystemView in No OS mode....
i am using evaluation module
DK-TM4C129X

Now i added SystemView files to the project....But when i try to build the project i encounter error ......

What is the right way to proceed... How to get systemView work for CCS projects for CortexM4....

Unresolved symbol OS_GetBASEPRI and OS_SetBASEPRI
////******************
#define SEGGER_RTT_LOCK() { \
unsigned int LockState; \
LockState = OS_GetBASEPRI(); \
OS_SetBASEPRI(SEGGER_RTT_MAX_INTERRUPT_PRIORITY);

#define SEGGER_RTT_UNLOCK() OS_SetBASEPRI(LockState);
rakeshm55 has attached the following image:
  • Segger.jpg

SEGGER - Johannes

Super Moderator

Date of registration: Aug 31st 2012

Posts: 366

2

Friday, October 27th 2017, 1:33pm

Hi,

SystemView has only been used with CCS in combination with embOS, therefore the default combination used the embOS locking mechanism.

Replacing it with a definition like this should work:

C/C++ Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
 ...
 #elif (defined (__TI_ARM_V7M3__) || defined (__TI_ARM_V7M4__))
    #ifndef   SEGGER_RTT_MAX_INTERRUPT_PRIORITY
      #define SEGGER_RTT_MAX_INTERRUPT_PRIORITY   (0x20)
    #endif
    #define SEGGER_RTT_LOCK()   {                                                                   \
                                  unsigned int LockState;                                           \
                                  LockState = _set_interrupt_priority(SEGGER_RTT_MAX_INTERRUPT_PRIORITY);

    #define SEGGER_RTT_UNLOCK()   _set_interrupt_priority(LockState);                               \
                                }
  #endif
...


Regards
Johannes