[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] I am porting uC/OS-II into the Mega8515 but it doesn't s

From: Eric Guo
Subject: [avr-gcc-list] I am porting uC/OS-II into the Mega8515 but it doesn't seem to work.
Date: Wed, 10 Sep 2003 11:44:23 +0800

I am just new to uC/OS and AVR world, but I have already used gcc two months & 
read the uC/OS-II book  at least once.

Now I am porting uC/OS to mega8515, using Julius Luukko's mega128 porting 
at-avr-jlu-210703.tgz (already replace the file avr_isr.h).

I am using external memory mode (HTT62256SRAM 32K), So I change makefile
LDFLAGS = -Wl,-Map=$(TARGET).map,--cref
to relocate .data and .bss section into the external memory.

I also add following lines to test.c
*                                   Preinit the external memory
void my_init_mem (void) __attribute__ ((naked)) \
    __attribute__ ((section (".init1")));

void my_init_mem (void)
to enable external memory at early stage.

I replace UART0 into UART several place in the test.c in order to seem the 
classic uC/OS-II output.

I have to replace Julius's os_cpu_a.asm "call" into "rcall" because mega8515 
only accept this. ("call" is a invalid opcode in Mega8515?)

After done this, the Mega8515 seems still doesn't work. I am using 
WinAVR-20030424 but have no ICE, so it is very different to debug this problem.

Who have already done this? Can you give me some advice?

best regards

Eric Guo

reply via email to

[Prev in Thread] Current Thread [Next in Thread]