Comments (7)
This looks different from the ones this firmware is for.
This firmware is for variants which drive individual 7 segment digits. Yours looks like maybe it has a 4x 7-segment display driven as a single unit, which probably has slightly different pinout.
The STC15F204EA and STC15W404AS/408AS are essentially same pinout, just the others have more ram, code, and peripherals
Do you have a schematic?
from stc_diyclock.
If you are sure it was working before with this firmware, perhaps it's one of the variants, e.g. HW_MODEL_C
review this issue: #20
and if it is, likely you could try building it with this option added to platformio.ini:
build_flags = -DHW_MODEL_C
from stc_diyclock.
Sorry for the delay but wanted to try it again to be sure. I had played around with the DHW_MODEL_C flag in the makefile before, tried it again, but 0 change.
The only thing that makes a difference is to swap digit and segment port in the code - still not readable but the readout changes.
Just in case below is a log of the last build in case you spot any dumb mistakes ...
`~/stc_diyclock$ make
sdcc -o build/ src/main.c --code-size 4089 --xram-size 0 --data-loc 0x30 --disable-warning 126 --disable-warning 59 -Dstc15f204ea -DWITH_ALT_LED9 -DWITHOUT_LEDTABLE_RELOC -DSHOW_TEMP_DATE_WEEKDAY -DHW_MODEL_C build/adc.rel build/ds1302.rel
Name Start End Size Max
ROM/EPROM/FLASH 0x0000 0x0dff 3584 4089
cp build/main.ihx main.hex
~/stc_diyclock$ STCGALPROT="stc15" make flash
stcgal/stcgal.py -p /dev/ttyUSB0 -P stc15 -t 11059 main.hex
Waiting for MCU, please cycle power: done
Target model:
Name: STC15W408AS
Magic: F51F
Code flash: 8.0 KB
EEPROM flash: 5.0 KB
Target frequency: 11.075 MHz
Target BSL version: 7.2.5T
Target wakeup frequency: 36.600 KHz
Target options:
reset_pin_enabled=False
clock_source=internal
clock_gain=high
watchdog_por_enabled=False
watchdog_stop_idle=True
watchdog_prescale=256
low_voltage_reset=True
low_voltage_threshold=3
eeprom_lvd_inhibit=True
eeprom_erase_enabled=False
bsl_pindetect_enabled=False
por_reset_delay=long
rstout_por_state=high
uart2_passthrough=False
uart2_pin_mode=normal
cpu_core_voltage=unknown
Loading flash: 3584 bytes (Intel HEX)
Trimming frequency: 11.057 MHz
Switching to 19200 baud: done
Erasing flash: done
Writing flash: 3648 Bytes [00:03, 1038.72 Bytes/s]
Finishing write: done
Setting options: done
Target UID: F51F44B103089C
Disconnected!
`
from stc_diyclock.
from stc_diyclock.
I have another one coming from banggood, will scan schematic once I have it. Is there a way to backup the original firmware or is this locked?
from stc_diyclock.
from stc_diyclock.
Hi there,
the new kit arrived.
Guess what - it is a different hardware altogether. I will close this issue here, the old clock has a hardware issue I am convinced now.
I will open a new one as also the new kit gives me trouble, this clock drives me crazy :)
from stc_diyclock.
Related Issues (20)
- "Waiting for MCU, please cycle power" HOT 3
- Maybe new model? Schematic Provided.. HOT 9
- 4 digit display models? HOT 3
- buttons don't work HOT 17
- Website for original maker of these kits
- Need help with make on windows HOT 1
- синхронизация времени с приемником GPS вывод последовательных данных NMEA HOT 8
- Time stops ticking when power is lost HOT 1
- Привет! HOT 3
- Dot-Matrix version? HOT 3
- hourly chime HOT 3
- New hardware version from Banggood w/ STC15W408AS? HOT 25
- My kit reset time to 00:00 01-01-2000 each power cycle HOT 2
- barebone firmware HOT 3
- Firmware for clock with voice HOT 3
- Worked for 10 minutes with new chips and then stopped... HOT 3
- Brightness level HOT 7
- Random slow downs. STC15W408AS HOT 2
- Makefile SDCCOPTS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stc_diyclock.