Netburner MOD54415 demo error
-
- Posts: 12
- Joined: Thu Nov 24, 2011 1:31 pm
Netburner MOD54415 demo error
I received my MOD54415 today and was running the factory demo. When I go to the LED Example page it shows the switches as being on, but they are in the off position. Below you can see each time I click the Refresh Switches link the serial port reports Switch register 0x00. Then I flip switch 5 to on and I get the trap information and it is locked up. I am using Uart0 on JP4 with external power and JP1, JP2 and JP3 in the 2-3 position. The reset won't return it to operation, only a power cycle.
----- Main Menu -----
A - Show ARP Cache
C - Show Counters
E - Show Ethernet Registers
I - Setup
P - Ping (Example: "P 192.168.1.1")
W - Show OS Seconds Counter
? - Display Menu
Link Status: UP, 100 Mbps, Half Duplex
Switch Register: 0x00
Switch Register: 0x00
Switch Register: 0x00
Switch Register: 0x00
Switch Register: 0x00
-------------------Trap information-----------------------------
Exception Frame/A7 =80008564
Trap Vector =???? (Hex):0x7F
Format =04
Status register SR =A700
Fault Status =01
Faulted PC =01FD2400
-------------------Register information-------------------------
A0=817D268C A1=81FD2738 A2=817D7534 A3=01FD2400
A4=017D2400 A5=81FDE7E0 A6=81FDA770 A7=80008564
D0=81FD2664 D1=017D2432 D2=017D2480 D3=017D7FC6
D4=417DBE10 D5=41FDEFF4 D6=41FDEFB4 D7=41FDA448
SR=A700 PC=01FD2400
-------------------RTOS information-----------------------------
SR indicates trap from within ISR or CRITICAL RTOS section
The OSTCBCur current task control block = 8000028C
This looks like a valid TCB
The current running task is: IP#27
-------------------Task information-----------------------------
Task | State |Wait| Call Stack
Idle#3F|Ready | |4000A9E0,0
Main#32|Ready | |40006B2C,400009B8,40008DEC,0
TCPD#28|Semaphore |02EE|417DB45E,0
IP#27|Running | |01FD2400,0
Enet#26|Fifo |0023|40009B24,400081CC,40008DEC,0
HTTP#2D|Semaphore |0008|4000A646,4001AAAC,40018FA0,40008DEC,0
FTPD#30|Semaphore |000A|4000A646,4001AAAC,40013650,40008DEC,0
-------------------End of Trap Diagnostics----------------------
----- Main Menu -----
A - Show ARP Cache
C - Show Counters
E - Show Ethernet Registers
I - Setup
P - Ping (Example: "P 192.168.1.1")
W - Show OS Seconds Counter
? - Display Menu
Link Status: UP, 100 Mbps, Half Duplex
Switch Register: 0x00
Switch Register: 0x00
Switch Register: 0x00
Switch Register: 0x00
Switch Register: 0x00
-------------------Trap information-----------------------------
Exception Frame/A7 =80008564
Trap Vector =???? (Hex):0x7F
Format =04
Status register SR =A700
Fault Status =01
Faulted PC =01FD2400
-------------------Register information-------------------------
A0=817D268C A1=81FD2738 A2=817D7534 A3=01FD2400
A4=017D2400 A5=81FDE7E0 A6=81FDA770 A7=80008564
D0=81FD2664 D1=017D2432 D2=017D2480 D3=017D7FC6
D4=417DBE10 D5=41FDEFF4 D6=41FDEFB4 D7=41FDA448
SR=A700 PC=01FD2400
-------------------RTOS information-----------------------------
SR indicates trap from within ISR or CRITICAL RTOS section
The OSTCBCur current task control block = 8000028C
This looks like a valid TCB
The current running task is: IP#27
-------------------Task information-----------------------------
Task | State |Wait| Call Stack
Idle#3F|Ready | |4000A9E0,0
Main#32|Ready | |40006B2C,400009B8,40008DEC,0
TCPD#28|Semaphore |02EE|417DB45E,0
IP#27|Running | |01FD2400,0
Enet#26|Fifo |0023|40009B24,400081CC,40008DEC,0
HTTP#2D|Semaphore |0008|4000A646,4001AAAC,40018FA0,40008DEC,0
FTPD#30|Semaphore |000A|4000A646,4001AAAC,40013650,40008DEC,0
-------------------End of Trap Diagnostics----------------------
Re: Netburner MOD54415 demo error
Is this the dev 70 or dev 100 board?
Dan Ciliske
Project Engineer
Netburner, Inc
Project Engineer
Netburner, Inc
Re: Netburner MOD54415 demo error
Well, not saying that it's not a problem, but with the latest internal build I can't reproduce the bug.
It doesn't appear that there's been any fix in the FactoryApp code. Can you tell me what version of the NNDK you're running if you're still having the problem?
It doesn't appear that there's been any fix in the FactoryApp code. Can you tell me what version of the NNDK you're running if you're still having the problem?
Dan Ciliske
Project Engineer
Netburner, Inc
Project Engineer
Netburner, Inc
-
- Posts: 12
- Joined: Thu Nov 24, 2011 1:31 pm
Re: Netburner MOD54415 demo error
The carrier PCB is "MOD-Dev-70", "Rev 1.7". I have not loaded any code to the unit. The only thing I have done so far is set the IP address to a fixed address at 192.168.1.202, using IPSetup V2.1.
The NNDK version would be "NNDK 2.6", but again I have not even put a project into it yet.
I do have another module on the network a MOD5234, at address 192.168.1.201.
The NNDK version would be "NNDK 2.6", but again I have not even put a project into it yet.
I do have another module on the network a MOD5234, at address 192.168.1.201.
Re: Netburner MOD54415 demo error
I just received MOD54415 and demo works fine.
Mod-Dev79 Rev1.7, MOD54415 Rev 1.5.
Mod-Dev79 Rev1.7, MOD54415 Rev 1.5.
Re: Netburner MOD54415 demo error
Gary, can you try building the app with the NNDK, load it, and try again? If it still fails could you open a support ticket?
Dan Ciliske
Project Engineer
Netburner, Inc
Project Engineer
Netburner, Inc
Re: Netburner MOD54415 demo error
In DoSwitches, the code for on and off is reversed. So switches that are off show up as on and vice versa.
The comments are correct, but the siprintf's are wrong:
if ( sw & ( 0x80 >> ( i - 1 ) ) )
{
// Switch is on
siprintf( buffer, "<tr><td>Sw%d</td><td>OFF</td></tr>", i );
}
else
{
// Switch is off
siprintf( buffer, "<tr><td>Sw%d</td><td>ON</td></tr>", i );
}
On my board, the A/D behavior is erratic. With only switch 8 on (enabling the iprintf in ReadSwitch) I see for two runs:
ADC[7] = 7FF8, BitPos: 01, BitMask: 01
ADC[6] = 3DA8, BitPos: 02, BitMask: 01
ADC[5] = 0000, BitPos: 04, BitMask: 01
ADC[3] = 0120, BitPos: 08, BitMask: 01
ADC[4] = 0000, BitPos: 10, BitMask: 01
ADC[1] = 01E8, BitPos: 20, BitMask: 01
ADC[0] = 00C0, BitPos: 40, BitMask: 01
ADC[2] = 0130, BitPos: 80, BitMask: 01
Switch Register: 0x01
ADC[7] = 7FF8, BitPos: 01, BitMask: 01
ADC[6] = 7FF8, BitPos: 02, BitMask: 03
ADC[5] = 0000, BitPos: 04, BitMask: 03
ADC[3] = 0190, BitPos: 08, BitMask: 03
ADC[4] = 0000, BitPos: 10, BitMask: 03
ADC[1] = 01D0, BitPos: 20, BitMask: 03
ADC[0] = 00C8, BitPos: 40, BitMask: 03
ADC[2] = 0200, BitPos: 80, BitMask: 03
Switch Register: 0x03
The comments are correct, but the siprintf's are wrong:
if ( sw & ( 0x80 >> ( i - 1 ) ) )
{
// Switch is on
siprintf( buffer, "<tr><td>Sw%d</td><td>OFF</td></tr>", i );
}
else
{
// Switch is off
siprintf( buffer, "<tr><td>Sw%d</td><td>ON</td></tr>", i );
}
On my board, the A/D behavior is erratic. With only switch 8 on (enabling the iprintf in ReadSwitch) I see for two runs:
ADC[7] = 7FF8, BitPos: 01, BitMask: 01
ADC[6] = 3DA8, BitPos: 02, BitMask: 01
ADC[5] = 0000, BitPos: 04, BitMask: 01
ADC[3] = 0120, BitPos: 08, BitMask: 01
ADC[4] = 0000, BitPos: 10, BitMask: 01
ADC[1] = 01E8, BitPos: 20, BitMask: 01
ADC[0] = 00C0, BitPos: 40, BitMask: 01
ADC[2] = 0130, BitPos: 80, BitMask: 01
Switch Register: 0x01
ADC[7] = 7FF8, BitPos: 01, BitMask: 01
ADC[6] = 7FF8, BitPos: 02, BitMask: 03
ADC[5] = 0000, BitPos: 04, BitMask: 03
ADC[3] = 0190, BitPos: 08, BitMask: 03
ADC[4] = 0000, BitPos: 10, BitMask: 03
ADC[1] = 01D0, BitPos: 20, BitMask: 03
ADC[0] = 00C8, BitPos: 40, BitMask: 03
ADC[2] = 0200, BitPos: 80, BitMask: 03
Switch Register: 0x03
-
- Posts: 12
- Joined: Thu Nov 24, 2011 1:31 pm
Re: Netburner MOD54415 demo error
You are correct about the switches being reversed.
The support guys got my problem corrected. The fix for my lockups was to connect the A/D reference input, you need to connect J2 pin 5 (ADREF) to 3.3V. The closest pin is J2 pin 2. The switches then function correctly.
The support guys got my problem corrected. The fix for my lockups was to connect the A/D reference input, you need to connect J2 pin 5 (ADREF) to 3.3V. The closest pin is J2 pin 2. The switches then function correctly.
Re: Netburner MOD54415 demo error
Ah. Adding the jumper you mention fixed my wandering A/D problem. The switch readout is now solid. Thanks.