cancel
Showing results for 
Search instead for 
Did you mean: 

Cross-view and FsForth STart27x board

venu
Associate II
Posted on March 04, 2006 at 08:54

Cross-view and FsForth STart27x board

4 REPLIES 4
venu
Associate II
Posted on March 01, 2006 at 03:26

Hello All,

I am having problem with Cross-view and FsForth STart27x board.

I am using external SRAM for testing and debugging the code.

Here is my project settings

1. SRAM chip select via #CS0.

2. ROM = 0x0 - 0xDFFF and 0x010000 - 0x01FFFF.(total 120K bytes)

3. RAM = 0xE000 - 0xE7FF and 0x0F0000 - 0x0F1FFF

4. Memory model = small (DPP0=0, DPP1=1,DPP2=60)

5. SYSCON = 0x00D4

6. XPERCON = 0x064D

7. BUSCON0 = 0xC4BF

The code is working fine when the code size less than 56K bytes(address less than 0xDFFF)

But program is not working if code size exceeds 56 Kbytes.

Tasking is able to build the project correctly and the map file looks O.K. to me.

The problem is I am not able to run the code after downloading.

The cross-view giving errors like ''memory contents differs'' and

''not able to set brake point in the address 0x01xxxx''.

Any idea how to resolve the issue?

Please help.

Best Regards,

Venu

najoua
Associate II
Posted on March 01, 2006 at 04:13

Hello,

I suspect this is due to a mapping issue.

You had said: '' ROM = 0x0 - 0xDFFF and 0x010000 - 0x01FFFF ''

--> the interval 8000-DFFF is allocated for external memory

--> 0x10000 - 0x17FFF is also allocated for external memory if ROMS1 bit = 0 in SYSCON register (this is your case in SYSCON regsiter ROMS1 =0).

Normally, the following mapping is sufficient for debugging using Tasking CROSSVIEW:

- ROM: 0000 -07FFF

- RAM : F600 - FDFF (DPRAM)

- RAM : E000 - E7FF (XRAM1)

I hope this helps,

Please let me know how it goes,

Regards,

Najoua.

venu
Associate II
Posted on March 01, 2006 at 04:43

Najoua,

Thanks for your response.

Unfortunately I have to test a program which is around 105K bytes in size.(program with LCD graphics and other controls)

So I configured the ROM from 0x0000 to 0x01FFFF(excluding the RAM and SFR in 0xE000-0xFFFF)

The program (smaller in size) is working fine in address range 0x0000 to 0xDFFF but when I try to download the full software, I am getting error.

please find the attached map files of two programs

map1 = working program with code size less than 56KB

map2 = not working program with code size slightly higher than 56KB

Regards,

Venu

________________

Attachments :

tasking_mapfile_1.txt : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0PS&d=%2Fa%2F0X0000000bYh%2F95S7rcUi9s6Oq4K0pXS9aYLA9t93T6yZAfGKffYsEv4&asPdf=false

tasking_mapfile_2.txt : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0PN&d=%2Fa%2F0X0000000bYe%2FcohLvHlH3LU._eAZd4zfXOR4k6ju8dZx5DcgSuZM.Uk&asPdf=false
venu
Associate II
Posted on March 04, 2006 at 08:54

Hello,

The problem has been fixed.

The cause for the problem is initialisation of SYSCON with ROMEN bit and ROMS1 bit set by cross-view. The cfg file has been modified with SYSCON value = 0x0184 and the board starts working in the range from 0x010000.

Best Regards,

Venu