Sunday, December 17th 2017, 1:35am 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.

mis

Beginner

Date of registration: Feb 14th 2017

Posts: 2

1

Tuesday, October 31st 2017, 3:52pm

SYSVIEW_RAM_BASE define

Hi!
Can you explain what does that #define means? In the most cases it's 0x20000000 even on Kinetis where RAM starts before this address. What's the correct value?

Thanks

SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 467

2

Thursday, November 2nd 2017, 9:26am

Hello Mykhaylo,

Thank you for your inquiry.
From the SystemView manual:

Quoted

SEGGER_SYSVIEW_ID_BASE is subtracted from a pointer to get its ID. It can be set to
subtract the base RAM address from pointers, which still results in unique, but smaller IDs.
For example if the RAM range is 0x20000000 to 0x20001000 it is recommended to define
SEGGER_SYSVIEW_ID_BASE as 0x20000000 , which results in the pointer 0x20000100 to have
the ID 0x100 and requires two instead of four bits to store it.


Best regards,
Nino