Samraksh / eMote

eMote OS -- Multiple Ports (using .NET MF v4.3)
0 stars 0 forks source link

SI initialization throws exception #452

Closed WilliamAtSamraksh closed 8 years ago

WilliamAtSamraksh commented 8 years ago

eMote as of master commit 4aa49c5. Maintainer node on .NOW with external SI board. Throws exception shortly after startup. Note: Fence node on .NOW with external SI board does not throw exception.

Getting this resolved is critical for South Africa baseline.

Starting... Started Hardware.

Loading start at 8076a98, end 8088480 Assembly: mscorlib (4.3.1.0) Assembly: Microsoft.SPOT.Native (4.3.1.0) Assembly: Microsoft.SPOT.Hardware (4.3.1.0) Assembly: Microsoft.SPOT.Update (4.3.1.0) Assembly: MFUpdate (4.3.1.0) Assembly: Microsoft.SPOT.Hardware.SerialPort (4.3.1.0) Loading Deployment Assemblies.

Assembly: Microsoft.SPOT.Graphics (4.3.1.0) Assembly: Samraksh_eMote_ProgramManager (1.0.0.0) Assembly: Samraksh.Manager.MaintainerNode (1.8.6089.26750) Assembly: Samraksh_eMote_DotNow (4.3.2.2) Assembly: Samraksh_eMote_Net (4.3.2.6) Assembly: LocalManagerGlobal (1.0.0.0) Assembly: Utility (1.24.1.0) Assembly: SystemGlobal (1.0.0.0) Assembly: Samraksh.Manager.Maintainer.AppGlobal (1.0.0.0) Assembly: Samraksh.Manager.Component.LocalClient (1.0.0.0) Resolving. Ready. SI446X: si446x_hal_init() SI446X: Found Serial Number 0x392dd9054355353848400843 SI446X: Using .NOW Hardware Config SPI2 up CPOL: 0 CPHA: 0 Baud: 8000 kHz (3Finished sleeping 2000 kHz bus) SI446x config sequence complete, 59 commands 608 bytes CHIPREV 2 PART 0x4468 PBUILD 0 ID 34306 CUSTOMER 0 ROMID 6 REVEXT 6 REVBRANCH 0 REVINT 0 PATCH 0x0000 FUNC 0 SI446X: Radio Interrupts Cleared SI446X: si446x_hal_init GLOBAL_CONFIG Setting Looks Wrong... Overriding... SI446X: si446x_hal_init PKT_LEN Setting Looks Wrong...Overriding... SI446X: si446x_hal_init PKT_FIELD_2_LENGTH Setting Looks Wrong...Overriding... SI446X: Radio RX/TX FIFOs Cleared SI446X: CPU Serial Hash: 0x46D6 SI446X: si446x_hal_rx() SI446X: si446x_hal_rx() radio ops pending, aborting.

Exception System.Exception - 0xffffffff (1)

#### Message: 
#### Samraksh.eMote.Net.MACBase::InternalInitialize [IP: 0000] ####
#### Samraksh.eMote.Net.MACBase::Initialize [IP: 0081] ####
#### Samraksh.eMote.Net.MACBase::.ctor [IP: 0124] ####
#### Samraksh.eMote.Net.MAC.OMAC::.ctor [IP: 000e] ####
#### Samraksh.VirtualFence.SystemGlobal::GetMAC [IP: 0017] ####
#### Samraksh.Manager.Program::Main [IP: 001c] ####

System.Exception

WilliamAtSamraksh commented 8 years ago

Maintainer program is in commit 705f7a1 of "eMote-Manager\Apps\Managed Virtual Fence\Current\System\Manager\Local\Maintainer Node", branch "Bill_Test_Maintainer".

WilliamAtSamraksh commented 8 years ago

I moved the Maintainer to the .NOW on which Fence had been running and tried again. Same result. So the issue doesn't seem to be one of hardware config.

Nathan-Stohs commented 8 years ago

Bill, shot in the dark but I made a push to Master (138dc9a5b77c91d031fa4b83821c42fa807ca4b9) which may help.

WilliamAtSamraksh commented 8 years ago

Now the exception doesn't happen so maybe @NathanAtSamraksh's push made the difference. Am closing this issue.