industrialNETworXnetx

poddw

poddw

| 14.01.2010 | 19:35 | 1 reply

output of 1st stage bootloader

The comment in the InitGnu.s file of the examples for netX100 says that:

r0: contains a pointer to the Boot-Block
r1: contains the type of Boot-Method the ROM-Loader went through.

The value in r1 is saved off to be the return value for rX_DevGetBoottype.

I'm getting a value of 0x00000006 on a powerup, watchdog reset, and firmware reset for r1. I do get correct information in the RESET_CTRL register (0x0010000c) indicating which type of boot method was used.

Is this code just out of date ?
Does the 0x00000006 actually represent that it is booting from SPI flash ? If so, what is the list of codes ?
Should I be getting something different in r1 which is similar to RESET_CTRL and rX_DevGetBoottype values ?

I think that the data from RESET_CTRL should be used to generate the return value for rX_DevGetBoottype given it should return an RX_DEV_BOOT_TYPE enumeration value.

Thanks

poddw

poddw

| 14.01.2010 | 20:17

Oh. I think I've misread.

rX_DevGetBoottype() returns a 0x00000006 which is RX_DEV_BOOT_TYPE_SFLASH.
rX_DevGetStartmode() is supposed to return the reset mode.

Login