Working Interniche example for m52235EVB

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Working Interniche example for m52235EVB

3,854 Views
mcp
Contributor I
Hi,
    Just got one of two M52235EVB kits up and running w/PE USB interface
and Code Warrior 5.7.0  I can compile and load the M52235EVB.mcp
project.  Executes correctly.
    I have been trying to load the ColdFire_Lite.mcp project.  It appears
to compile correctly and loads onto target evb board.  But on execution,
it stops with:

Exception vector name: Address Error

after only a few instructions:

asm_startmeup:
_asm_startmeup:

    /* Save off reset values of D0 and D1 */
    move.l  d0,d6
    move.l  d1,d7
   
    /* Initialize RAMBAR1: locate SRAM and validate it */
    move.l    #__SRAM,d0
    add.l   #0x21,d0
>> movec   d0,RAMBAR1

I'm guessing that the image is built for flash not sram..or
something like that.  But there is very little info about how
to change or select linker maps.

Is there a working CW project that demonstrates the Inter
Niche stack somewhere?

Thanks

mcp
Labels (1)
0 Kudos
Reply
7 Replies

1,781 Views
GUNNM
Contributor I
I have this error too. How do you do to program manually? With FLASH PROGRAMMER TOOL?
I don't reach it!! Can you help me please?
 
0 Kudos
Reply

1,781 Views
mccPaul
Contributor I
Hi
 
See this post for the latest CFFlasher tool.
 
 
It depends on the toolchain you are using, but some debuggers cannot write your binary to flash before running so you need to flash the image manually.
 
Paul.
0 Kudos
Reply

1,781 Views
GUNNM
Contributor I
Thank, but i have already CFLASHER. I have resolved my problem, i had the drivers P&E which were badly configured. But i have an another problem, when i put my program in the flash, my applications which use UART don't make in function.  Do you see where problem comes?Can you help me please?
 
Thanks.
Sorry for my english but i am french.
0 Kudos
Reply

1,781 Views
mccPaul
Contributor I
Hi,
 
It is difficult to diagnose without more information, but I would expect the example NicheLite stack to work, at least for console IO.
 
I believe that there is a file called m5223evb.h that contains the UART and BAUD settings for the console, check these are what you expect. I think that the example uses port 0 at 19K2 baud. Then I think you need to make sure that POLLED_UART is defined in iuart.c - I don't think that the interrupt driven UART IO works.
 
You also need to make sure that the jumpers are all on to enable serial IO and I don't want to state the obvious, but does your serial cable work and have you set the terminal software to the correct baud rate, word size, flow control and stop bits (8N1)?
 
Paul.
0 Kudos
Reply

1,781 Views
GUNNM
Contributor I
lol. Yes my UART configuration is good because i manage to make in function the connection in debug mode. I think that when i program in the flash, my vector table was'nt initialized in a good place and so, my interruptions on UART don't work. What it's strange, it's that my PIT interrupt function in the flash!!
But in this case, there is a clock problem. In effect i make flicker leds and when i program in flash, the flickering is much faster than i program in debug.
Thanks for your help! I'im going to study this problem.

cordially


Message Edited by GUNNM on 2007-05-11 12:42 PM

Message Edited by GUNNM on 2007-05-11 12:53 PM
0 Kudos
Reply

1,781 Views
JoshR
Contributor I
I have been having the same issue with the M52233DEMO board. When trying to debug I get the error:

Exception vector name: Address Error.

Like the previous post I can burn to flash and run without any problems.

I am running the projects straight out of the .zip without any modifications to source or settings. After speaking with Oscar from Freescale support he suggested that I may have defective hardware. I received a new demo board this morning and I get the same error.


-Josh
0 Kudos
Reply

1,781 Views
JoshR
Contributor I
I spoke with Jay from Freescale on the phone and was able to get the problem resolved.

Before running the debugger I had to manually program the flash with the S-file/debug output file.

Hope that helps,
Josh
0 Kudos
Reply