naren0nindiatimes / tinyos-main

Automatically exported from code.google.com/p/tinyos-main
0 stars 0 forks source link

Shimmer PowerSupplyMonitor with msp430-gcc v4.5.3 #55

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
After upgrading to msp430-gcc v4.5.3 from the stanford repository 
(http://tinyos.stanford.edu/tinyos/dists) no application that uses the shimmer 
PowerSupplyMonitor will now compile for me.

To reproduce try compiling the JustFATLogging application (updated from 
sourceforge on 23 Aug 2011) using the latest tinyos-main tree (revision 5697).

When I revert to msp430-gcc v3.2.3 the application compiles successfully.

The error I'm seeing is as follows:

In file included from JustFATLoggingP.nc:42,
                 from JustFATLoggingC.nc:42:
/opt/tinyos-main/tos/platforms/shimmer/chips/msp430/PowerSupplyMonitor.h:40: 
`VLD_1' undeclared here (not in a function)
/opt/tinyos-main/tos/platforms/shimmer/chips/msp430/PowerSupplyMonitor.h:40: 
enumerator value for `ONE_9V' not integer constant
/opt/tinyos-main/tos/platforms/shimmer/chips/msp430/PowerSupplyMonitor.h:41: 
`VLD_2' undeclared here (not in a function)
/opt/tinyos-main/tos/platforms/shimmer/chips/msp430/PowerSupplyMonitor.h:41: 
enumerator value for `TWO_1V' not integer constant
/opt/tinyos-main/tos/platforms/shimmer/chips/msp430/PowerSupplyMonitor.h:42: 
`VLD_3' undeclared here (not in a function)
/opt/tinyos-main/tos/platforms/shimmer/chips/msp430/PowerSupplyMonitor.h:42: 
enumerator value for `TWO_2V' not integer constant
/opt/tinyos-main/tos/platforms/shimmer/chips/msp430/PowerSupplyMonitor.h:43: 
`VLD_4' undeclared here (not in a function)
/opt/tinyos-main/tos/platforms/shimmer/chips/msp430/PowerSupplyMonitor.h:43: 
enumerator value for `TWO_3V' not integer constant
/opt/tinyos-main/tos/platforms/shimmer/chips/msp430/PowerSupplyMonitor.h:44: 
`VLD_5' undeclared here (not in a function)
/opt/tinyos-main/tos/platforms/shimmer/chips/msp430/PowerSupplyMonitor.h:44: 
enumerator value for `TWO_4V' not integer constant
/opt/tinyos-main/tos/platforms/shimmer/chips/msp430/PowerSupplyMonitor.h:45: 
`VLD_6' undeclared here (not in a function)
/opt/tinyos-main/tos/platforms/shimmer/chips/msp430/PowerSupplyMonitor.h:45: 
enumerator value for `TWO_5V' not integer constant
/opt/tinyos-main/tos/platforms/shimmer/chips/msp430/PowerSupplyMonitor.h:46: 
`VLD_7' undeclared here (not in a function)
/opt/tinyos-main/tos/platforms/shimmer/chips/msp430/PowerSupplyMonitor.h:46: 
enumerator value for `TWO_65V' not integer constant
/opt/tinyos-main/tos/platforms/shimmer/chips/msp430/PowerSupplyMonitor.h:47: 
`VLD_8' undeclared here (not in a function)
/opt/tinyos-main/tos/platforms/shimmer/chips/msp430/PowerSupplyMonitor.h:47: 
enumerator value for `TWO_8V' not integer constant
/opt/tinyos-main/tos/platforms/shimmer/chips/msp430/PowerSupplyMonitor.h:48: 
`VLD_9' undeclared here (not in a function)
/opt/tinyos-main/tos/platforms/shimmer/chips/msp430/PowerSupplyMonitor.h:48: 
enumerator value for `TWO_9V' not integer constant
/opt/tinyos-main/tos/platforms/shimmer/chips/msp430/PowerSupplyMonitor.h:49: 
`VLD_10' undeclared here (not in a function)
/opt/tinyos-main/tos/platforms/shimmer/chips/msp430/PowerSupplyMonitor.h:49: 
enumerator value for `THREE_05V' not integer constant
/opt/tinyos-main/tos/platforms/shimmer/chips/msp430/PowerSupplyMonitor.h:50: 
`VLD_11' undeclared here (not in a function)
/opt/tinyos-main/tos/platforms/shimmer/chips/msp430/PowerSupplyMonitor.h:50: 
enumerator value for `THREE_2V' not integer constant
/opt/tinyos-main/tos/platforms/shimmer/chips/msp430/PowerSupplyMonitor.h:51: 
`VLD_12' undeclared here (not in a function)
/opt/tinyos-main/tos/platforms/shimmer/chips/msp430/PowerSupplyMonitor.h:51: 
enumerator value for `THREE_35V' not integer constant
/opt/tinyos-main/tos/platforms/shimmer/chips/msp430/PowerSupplyMonitor.h:52: 
`VLD_13' undeclared here (not in a function)
/opt/tinyos-main/tos/platforms/shimmer/chips/msp430/PowerSupplyMonitor.h:52: 
enumerator value for `THREE_5V' not integer constant
/opt/tinyos-main/tos/platforms/shimmer/chips/msp430/PowerSupplyMonitor.h:53: 
`VLD_14' undeclared here (not in a function)
/opt/tinyos-main/tos/platforms/shimmer/chips/msp430/PowerSupplyMonitor.h:53: 
enumerator value for `THREE_7V' not integer constant
/opt/tinyos-main/tos/platforms/shimmer/chips/msp430/PowerSupplyMonitor.h:55: 
`VLD_EXT' undeclared here (not in a function)
/opt/tinyos-main/tos/platforms/shimmer/chips/msp430/PowerSupplyMonitor.h:55: 
enumerator value for `EXTERNAL' not integer constant
In file included from /opt/tinyos-main/tos/chips/msp430/adc12/HplAdc12.nc:44:
/opt/tinyos-main/tos/chips/msp430/adc12/Msp430Adc12.h:181:2: warning: #warning 
"Accessing Adc12 registers via bitfield structures: this is discouraged mspgcc 
version >= 4 as it may result in faulty code!"
/opt/tinyos-main/tos/platforms/shimmer2r/chips/mma7361/Mma7361P.nc:45:2: 
warning: #warning "This accelerometer chipset supports only 1.5 and 6.0g; other 
settings will default to 1.5g"
In file included from JustFATLoggingC.nc:64:
In component `FatFsP':
/opt/tinyos-main/tos/platforms/shimmer/chips/sd/fatfs/FatFsP.nc: In function 
`f_mkfs':
/opt/tinyos-main/tos/platforms/shimmer/chips/sd/fatfs/FatFsP.nc:3150: warning: 
decimal constant is so large that it is unsigned
In file included from 
/opt/tinyos-main/tos/platforms/shimmer/chips/sd/fatfs/diskIOC.nc:50,
                 from JustFATLoggingC.nc:64:
In component `SDP':
/opt/tinyos-main/tos/platforms/shimmer/chips/sd/SDP.nc: In function 
`powerCycle':
/opt/tinyos-main/tos/platforms/shimmer/chips/sd/SDP.nc:142: warning: decimal 
constant is so large that it is unsigned
In file included from 
/opt/tinyos-main/tos/platforms/shimmer/chips/sd/fatfs/diskIOC.nc:55,
                 from JustFATLoggingC.nc:64:
In component `TimeP':
/opt/tinyos-main/tos/platforms/shimmer/TimeP.nc: In function `Time.setZoneInfo':
/opt/tinyos-main/tos/platforms/shimmer/TimeP.nc:121: warning: assignment of 
read-only variable `g_first_year'
In file included from 
/opt/tinyos-main/tos/platforms/shimmer/chips/msp430/PowerSupplyMonitorC.nc:44,
                 from JustFATLoggingC.nc:69:
In component `PowerSupplyMonitorP':
/opt/tinyos-main/tos/platforms/shimmer/chips/msp430/PowerSupplyMonitorP.nc: In 
function `StdControl.start':
/opt/tinyos-main/tos/platforms/shimmer/chips/msp430/PowerSupplyMonitorP.nc:79: 
`VLD_EXT' undeclared (first use in this function)
/opt/tinyos-main/tos/platforms/shimmer/chips/msp430/PowerSupplyMonitorP.nc:79: 
(Each undeclared identifier is reported only once
/opt/tinyos-main/tos/platforms/shimmer/chips/msp430/PowerSupplyMonitorP.nc:79: 
for each function it appears in.)
/opt/tinyos-main/tos/platforms/shimmer/chips/msp430/PowerSupplyMonitorP.nc: In 
function `spurious_test.runTask':
/opt/tinyos-main/tos/platforms/shimmer/chips/msp430/PowerSupplyMonitorP.nc:100: 
`VLD_EXT' undeclared (first use in this function)
/opt/tinyos-main/tos/platforms/shimmer/chips/msp430/PowerSupplyMonitorP.nc: In 
function `PowerSupplyMonitor.setVoltageThreshold':
/opt/tinyos-main/tos/platforms/shimmer/chips/msp430/PowerSupplyMonitorP.nc:141: 
`VLD_EXT' undeclared (first use in this function)
make: *** [exe0] Error 1

Original issue reported on code.google.com by kevdaly1...@gmail.com on 23 Aug 2011 at 7:45

GoogleCodeExporter commented 8 years ago

Original comment by philip.l...@gmail.com on 24 Aug 2011 at 3:37

GoogleCodeExporter commented 8 years ago
powersupplymonitor.h and powersupplymonitorp.nc were updated to reflect new 
toolchain macros and committed.  svn update in 
tos/platforms/shimmer/chips/msp430 will fix the problem.

Original comment by steveay...@gmail.com on 24 Aug 2011 at 4:20