Coder Social home page Coder Social logo

Comments (7)

zerog2k avatar zerog2k commented on May 29, 2024

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.

zerog2k avatar zerog2k commented on May 29, 2024

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.

Kobbe1 avatar Kobbe1 commented on May 29, 2024

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.

zerog2k avatar zerog2k commented on May 29, 2024

from stc_diyclock.

Kobbe1 avatar Kobbe1 commented on May 29, 2024

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.

zerog2k avatar zerog2k commented on May 29, 2024

from stc_diyclock.

Kobbe1 avatar Kobbe1 commented on May 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.