XIDATA section

Discussion of the PSoC Designer integrated development environment for PSoC1 devices.

Moderators: ericb, dcooper, jonp, dpfunston

XIDATA section

Postby nkg » Wed Oct 10, 2012 10:53 pm

Hi,

I would like to know how do we interpret data in the xidata section. How do we interpret xidata struct from the hex file data?

Let me give you various example with details of xidata section for each.

Example1:

My main.c is as follows:

#include <m8c.h>
#include "PSoCAPI.h"
void main(void)
{ }

Map file:
037F __text_end
0381 __xidata_end
This tells that xidata section lies in address range 0x37F to 0x380 (one address less than __xidata_end)

From Hex file:
0x37F -- FF
0x380 -- 00

Example2:

My main.c is as follows:

#include <m8c.h>
#include "PSoCAPI.h"
volatile int a; ///////// Note this is added when compared to example #1.
void main(void)
{ }

Map file:
037F __text_end
0386 __xidata_end
This tells that xidata section lies in address range 0x37F to 0x385 (one address less than __xidata_end)

From Hex file:
0x37F -- 00
0x380 -- 02
0x381 -- 02
0x382 -- 00
0x383 -- 00
0x384 -- ff
0x385 -- 00

Example3:

My main.c is as follows:

#include <m8c.h>
#include "PSoCAPI.h"
volatile int a,b; ///////// Note this is an extra variable added when compared to example #2.
void main(void)
{ }

Map file:
037F __text_end
0385 __xidata_end
This tells that xidata section lies in address range 0x37F to 0x384 (one address less than __xidata_end)

From Hex file:
0x37F -- 00
0x380 -- 02
0x381 -- 00
0x382 -- 04
0x383 -- ff
0x384 -- 00

02 00 04 ff 00
Please help me to interpret the hex file data for the above three examples.

Thanks in advance!!
nkg
Newbie
Newbie
 
Posts: 3
Joined: Thu Oct 04, 2012 3:23 am

Re: XIDATA section

Postby danadak » Sun Oct 14, 2012 6:46 am

Some clues here -

http://www.cypress.com/?docID=33577

Regards, Dana.
Field Application Engineer
KB1RHB Mostly listen :)
Semi Retired
User avatar
danadak
The Big Cheese
The Big Cheese
 
Posts: 2008
Joined: Thu Dec 27, 2007 8:42 am
Location: New Hampshire


Return to “%s” PSoC Designer (PSoC1 IDE)

Who is online

Users browsing this forum: No registered users and 1 guest