This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: Redboot for Assabet goes silent
- To: Martin van Veen <martin_van_veen at yahoo dot com>
- Subject: RE: [ECOS] Redboot for Assabet goes silent
- From: Gary Thomas <gthomas at redhat dot com>
- Date: Tue, 21 Nov 2000 09:01:44 -0700 (MST)
- Cc: ecos-discuss at sources dot redhat dot com
- Organization: Red Hat, Inc.
We seem to have broken in the Assabet/GDB code in the last few days.
Try making this change, it fixed it for me.
Index: hal/arm/sa11x0/var/current/src/hal_diag.c
===================================================================
RCS file: /home/cvs/ecc/ecc/hal/arm/sa11x0/var/current/src/hal_diag.c,v
retrieving revision 1.11
diff -u -5 -p -r1.11 hal_diag.c
--- hal/arm/sa11x0/var/current/src/hal_diag.c 2000/10/26 18:39:02 1.11
+++ hal/arm/sa11x0/var/current/src/hal_diag.c 2000/11/21 15:43:24
@@ -92,10 +92,12 @@ init_channel(channel_data_t* __ch_data)
// Clear sticky (writable) status bits.
base->utsr0 = SA11X0_UART_RX_IDLE | SA11X0_UART_RX_BEGIN_OF_BREAK |
SA11X0_UART_RX_END_OF_BREAK;
+#ifdef CYGPKG_HAL_ARM_SA11X0_SA1100MM
+ // This code has problems on other SA11x0 platforms.
if (SA11X0_UART1_BASE == (volatile unsigned long *)base) {
cyg_uint32 pdr, afr, par;
HAL_READ_UINT32(SA11X0_GPIO_PIN_DIRECTION, pdr);
HAL_READ_UINT32(SA11X0_GPIO_ALTERNATE_FUNCTION, afr);
@@ -108,10 +110,11 @@ init_channel(channel_data_t* __ch_data)
HAL_WRITE_UINT32(SA11X0_GPIO_ALTERNATE_FUNCTION, afr | SA11X0_GPIO_PIN_14 |
SA11X0_GPIO_PIN_15);
// Pin reassignment for serial port 1.
HAL_WRITE_UINT32(SA11X0_PPC_PIN_ASSIGNMENT, par | SA11X0_PPC_UART_PIN_REASSIGNMENT_MASK);
}
+#endif
// Set UART to 8N1 (8 data bits, no partity, 1 stop bit)
base->utcr0 = SA11X0_UART_PARITY_DISABLED | SA11X0_UART_STOP_BITS_1 |
SA11X0_UART_DATA_BITS_8;
On 21-Nov-2000 Martin van Veen wrote:
> Hi,
>
> since I'm not able to use Redboot via Ethernet, I'm very pleased
> that uploading data via the serial line is now included in Redboot.
> Since it is not built in in the prebuilt Redboot image (the one in
> hal/arm/sa11x0/assabet/current/images/redboot_ROM.bin) I have to
> build it myself. Building and flashing (using Jflash-linux) the
> newly created image gives no problem at all.
>
> However, when I use minicom to attach to the board or use Insight to
> debug a program I get no reaction at all. The strange thing is that
> when I flash the prebuilt image on the board, everything works fine
> (except serial downloading :-( ). So I guess that it has something
> to do with the configuration of the serial port, but I have no clue
> at all. I built and flashed the redboot image as follows:
>
> $ mkdir redboot
> $ cd redboot
> $ ecosconfig new assabet redboot
> $ ecosconfig import $ECOS_REPOSITORY/hal/arm/sa11x0/assabet/ \
> current/misc/redboot_ROM.cfg
> $ ecosconfig tree
> $ make
> $ Jflash-linux install/bin/redboot.bin
>
> Any ideas???
>
> Thanks in advance,
> Martin van Veen.
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Shopping - Thousands of Stores. Millions of Products.
> http://shopping.yahoo.com/