osresearch / charliewatch Goto Github PK
View Code? Open in Web Editor NEWAn "analog" version of Travis Goodspeed's Goodwatch
An "analog" version of Travis Goodspeed's Goodwatch
Only once per hour, make it do two loops?
The hour LEDs are the wrong way around in the circuit painter output; the cathode and anode needs to be swapped.
What licence is this released under?
There should be something when the minute advances.
I'm seeing build errors in the latest Code Composer Studio and the GNU v8.3.0.16 compiler on Win10.
I'll keep trying to figure this out, but any suggestions or pointers appreciated.
Build output:
**** Build of configuration Release__GNU for project Charliewatch ****
"D:\\Apps\\ti\\cc920\\ccs\\utils\\bin\\gmake" -k -j 8 all -O
Building file: "../buildtime.c"
Invoking: GNU Compiler
"D:/Apps/ti/cc920/ccs/tools/compiler/msp430-gcc-8.3.0.16_win32/bin/msp430-elf-gcc-8.3.0.exe" -c -mmcu=cc430f5137 -mhwmult=f5series -I"D:/Apps/ti/cc920/ccs/ccs_base/msp430/include_gcc" -I"D:/Code/charliewatch/firmware" -I"D:/Apps/ti/cc920/ccs/tools/compiler/msp430-gcc-8.3.0.16_win32/msp430-elf/include" -Os -Wall -MMD -MP -MF"buildtime.d" -MT"buildtime.o" -o"buildtime.o" "../buildtime.c"
subdir_rules.mk:9: recipe for target 'buildtime.o' failed
../buildtime.c:4:33: error: 'BUILDTIME' undeclared here (not in a function)
const uint8_t romsavetime[] = { BUILDTIME };
^~~~~~~~~
../buildtime.c:5:28: error: 'BUILDSEC' undeclared here (not in a function)
const uint32_t buildtime = BUILDSEC;
^~~~~~~~
../buildtime.c:5:28: warning: initialization of 'uint32_t' {aka 'const long unsigned int'} from 'const uint8_t *' {aka 'const unsigned char *'} makes integer from pointer without a cast [-Wint-conversion]
../buildtime.c:5:28: error: initializer element is not constant
gmake: *** [buildtime.o] Error 1
Building file: "../adc.c"
Invoking: GNU Compiler
"D:/Apps/ti/cc920/ccs/tools/compiler/msp430-gcc-8.3.0.16_win32/bin/msp430-elf-gcc-8.3.0.exe" -c -mmcu=cc430f5137 -mhwmult=f5series -I"D:/Apps/ti/cc920/ccs/ccs_base/msp430/include_gcc" -I"D:/Code/charliewatch/firmware" -I"D:/Apps/ti/cc920/ccs/tools/compiler/msp430-gcc-8.3.0.16_win32/msp430-elf/include" -Os -Wall -MMD -MP -MF"adc.d" -MT"adc.o" -o"adc.o" "../adc.c"
Finished building: "../adc.c"
Building file: "../button.c"
Invoking: GNU Compiler
"D:/Apps/ti/cc920/ccs/tools/compiler/msp430-gcc-8.3.0.16_win32/bin/msp430-elf-gcc-8.3.0.exe" -c -mmcu=cc430f5137 -mhwmult=f5series -I"D:/Apps/ti/cc920/ccs/ccs_base/msp430/include_gcc" -I"D:/Code/charliewatch/firmware" -I"D:/Apps/ti/cc920/ccs/tools/compiler/msp430-gcc-8.3.0.16_win32/msp430-elf/include" -Os -Wall -MMD -MP -MF"button.d" -MT"button.o" -o"button.o" "../button.c"
Finished building: "../button.c"
Building file: "../animation.c"
Invoking: GNU Compiler
"D:/Apps/ti/cc920/ccs/tools/compiler/msp430-gcc-8.3.0.16_win32/bin/msp430-elf-gcc-8.3.0.exe" -c -mmcu=cc430f5137 -mhwmult=f5series -I"D:/Apps/ti/cc920/ccs/ccs_base/msp430/include_gcc" -I"D:/Code/charliewatch/firmware" -I"D:/Apps/ti/cc920/ccs/tools/compiler/msp430-gcc-8.3.0.16_win32/msp430-elf/include" -Os -Wall -MMD -MP -MF"animation.d" -MT"animation.o" -o"animation.o" "../animation.c"
Finished building: "../animation.c"
Building file: "../clockset.c"
Invoking: GNU Compiler
"D:/Apps/ti/cc920/ccs/tools/compiler/msp430-gcc-8.3.0.16_win32/bin/msp430-elf-gcc-8.3.0.exe" -c -mmcu=cc430f5137 -mhwmult=f5series -I"D:/Apps/ti/cc920/ccs/ccs_base/msp430/include_gcc" -I"D:/Code/charliewatch/firmware" -I"D:/Apps/ti/cc920/ccs/tools/compiler/msp430-gcc-8.3.0.16_win32/msp430-elf/include" -Os -Wall -MMD -MP -MF"clockset.d" -MT"clockset.o" -o"clockset.o" "../clockset.c"
Finished building: "../clockset.c"
Building file: "../led.c"
Invoking: GNU Compiler
"D:/Apps/ti/cc920/ccs/tools/compiler/msp430-gcc-8.3.0.16_win32/bin/msp430-elf-gcc-8.3.0.exe" -c -mmcu=cc430f5137 -mhwmult=f5series -I"D:/Apps/ti/cc920/ccs/ccs_base/msp430/include_gcc" -I"D:/Code/charliewatch/firmware" -I"D:/Apps/ti/cc920/ccs/tools/compiler/msp430-gcc-8.3.0.16_win32/msp430-elf/include" -Os -Wall -MMD -MP -MF"led.d" -MT"led.o" -o"led.o" "../led.c"
Finished building: "../led.c"
Building file: "../main.c"
Invoking: GNU Compiler
"D:/Apps/ti/cc920/ccs/tools/compiler/msp430-gcc-8.3.0.16_win32/bin/msp430-elf-gcc-8.3.0.exe" -c -mmcu=cc430f5137 -mhwmult=f5series -I"D:/Apps/ti/cc920/ccs/ccs_base/msp430/include_gcc" -I"D:/Code/charliewatch/firmware" -I"D:/Apps/ti/cc920/ccs/tools/compiler/msp430-gcc-8.3.0.16_win32/msp430-elf/include" -Os -Wall -MMD -MP -MF"main.d" -MT"main.o" -o"main.o" "../main.c"
Finished building: "../main.c"
Building file: "../power.c"
Invoking: GNU Compiler
"D:/Apps/ti/cc920/ccs/tools/compiler/msp430-gcc-8.3.0.16_win32/bin/msp430-elf-gcc-8.3.0.exe" -c -mmcu=cc430f5137 -mhwmult=f5series -I"D:/Apps/ti/cc920/ccs/ccs_base/msp430/include_gcc" -I"D:/Code/charliewatch/firmware" -I"D:/Apps/ti/cc920/ccs/tools/compiler/msp430-gcc-8.3.0.16_win32/msp430-elf/include" -Os -Wall -MMD -MP -MF"power.d" -MT"power.o" -o"power.o" "../power.c"
Finished building: "../power.c"
Building file: "../rtc.c"
Invoking: GNU Compiler
"D:/Apps/ti/cc920/ccs/tools/compiler/msp430-gcc-8.3.0.16_win32/bin/msp430-elf-gcc-8.3.0.exe" -c -mmcu=cc430f5137 -mhwmult=f5series -I"D:/Apps/ti/cc920/ccs/ccs_base/msp430/include_gcc" -I"D:/Code/charliewatch/firmware" -I"D:/Apps/ti/cc920/ccs/tools/compiler/msp430-gcc-8.3.0.16_win32/msp430-elf/include" -Os -Wall -MMD -MP -MF"rtc.d" -MT"rtc.o" -o"rtc.o" "../rtc.c"
Finished building: "../rtc.c"
Building file: "../ucs.c"
Invoking: GNU Compiler
"D:/Apps/ti/cc920/ccs/tools/compiler/msp430-gcc-8.3.0.16_win32/bin/msp430-elf-gcc-8.3.0.exe" -c -mmcu=cc430f5137 -mhwmult=f5series -I"D:/Apps/ti/cc920/ccs/ccs_base/msp430/include_gcc" -I"D:/Code/charliewatch/firmware" -I"D:/Apps/ti/cc920/ccs/tools/compiler/msp430-gcc-8.3.0.16_win32/msp430-elf/include" -Os -Wall -MMD -MP -MF"ucs.d" -MT"ucs.o" -o"ucs.o" "../ucs.c"
Finished building: "../ucs.c"
Building file: "../stopwatch.c"
Invoking: GNU Compiler
"D:/Apps/ti/cc920/ccs/tools/compiler/msp430-gcc-8.3.0.16_win32/bin/msp430-elf-gcc-8.3.0.exe" -c -mmcu=cc430f5137 -mhwmult=f5series -I"D:/Apps/ti/cc920/ccs/ccs_base/msp430/include_gcc" -I"D:/Code/charliewatch/firmware" -I"D:/Apps/ti/cc920/ccs/tools/compiler/msp430-gcc-8.3.0.16_win32/msp430-elf/include" -Os -Wall -MMD -MP -MF"stopwatch.d" -MT"stopwatch.o" -o"stopwatch.o" "../stopwatch.c"
Finished building: "../stopwatch.c"
Building file: "../rtcasm.S"
Invoking: GNU Compiler
"D:/Apps/ti/cc920/ccs/tools/compiler/msp430-gcc-8.3.0.16_win32/bin/msp430-elf-gcc-8.3.0.exe" -c -mmcu=cc430f5137 -mhwmult=f5series -I"D:/Apps/ti/cc920/ccs/ccs_base/msp430/include_gcc" -I"D:/Code/charliewatch/firmware" -I"D:/Apps/ti/cc920/ccs/tools/compiler/msp430-gcc-8.3.0.16_win32/msp430-elf/include" -Os -Wall -MMD -MP -MF"rtcasm.d" -MT"rtcasm.o" -x assembler-with-cpp -o"rtcasm.o" "../rtcasm.S"
../rtcasm.S: Assembler messages:
../rtcasm.S:60: Warning: a NOP might be needed here, before an interrupt enable instruction
../rtcasm.S:61: Warning: a NOP might be needed here, after an interrupt enable instruction
../rtcasm.S:85: Warning: a NOP might be needed here, after an interrupt enable instruction
../rtcasm.S:120: Warning: a NOP might be needed here, after an interrupt enable instruction
../rtcasm.S:141: Warning: a NOP might be needed here, after an interrupt enable instruction
../rtcasm.S:164: Warning: a NOP might be needed here, after an interrupt enable instruction
../rtcasm.S:185: Warning: a NOP might be needed here, after an interrupt enable instruction
../rtcasm.S:208: Warning: a NOP might be needed here, after an interrupt enable instruction
Finished building: "../rtcasm.S"
gmake: Target 'all' not remade because of errors.
**** Build Finished ****
Putting the charliewatch through an airport x-ray causes it to reset.
It looks weird to only sweep the hour.
Split the difference
9pF crystals were ordered, hopefully it will still start up.
Was able to compile and upload the firmware using Code Composer Studio on Windows (had to hardcode BUILDTIME & BUILDSEC as symbols but that is a different issue) and the watch runs and displays the time when powered from the debugger but when I power it from a CR2032 the power on/reset animation is displayed but the time is not shown.
Running on debugger: https://www.youtube.com/watch?v=5fcYsMnCnjc
Running on battery: https://youtu.be/F3Qw3fwuvRY
Have you seen this before? Any ideas why?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.