Git Product home page Git Product logo

Comments (2)

aw avatar aw commented on June 3, 2024 1

Thanks for the quick reply. Indeed I was looking at the ELF. I typically use gdb-multiarch to upload manually, but I forgot to use arm-none-eabi-objcopy to convert to hex. The output size is fine now, but I guess I can give probe-run a try since it seems much simpler than my current manual approach. Cheers!

from pinetime-rs.

jonlamb-gh avatar jonlamb-gh commented on June 3, 2024

👋

I'm guessing this is still a work in progress

Yep. Currently the project has no clear direction yet, just a thing I've been hacking on in my spare time for fun.

I compiled the firmware but the pinetime binary is 1.5MB. Just wondering how to flash this to the watch since there isn't enough space.

I suspect your looking at the size of the ELF file (i.e. target/thumbv7em-none-eabihf/release/pinetime).
I like to keep debug symbols around, even on release builds since they don't actually end up in the target binary which is around 112 KiB currently.

cargo size --release 
   text    data     bss     dec     hex filename
 112280     196    1448  113924   1bd04 pinetime

cargo size --release -- -A 
pinetime  :
section               size        addr
.vector_table          220         0x0        
.text                50804        0xdc        
.rodata              61256      0xc750        
.data                  196  0x2000f990        
.bss                  1304  0x2000fa54        
.uninit                144  0x2000ff6c        
.debug_loc          127038         0x0                              
.debug_abbrev         3605         0x0                              
.debug_info         353459         0x0                              
.debug_aranges        2288         0x0                              
.debug_ranges        86208         0x0                              
.debug_str          350502         0x0                              
.debug_pubnames     135115         0x0                              
.debug_pubtypes     107540         0x0                              
.ARM.attributes         58         0x0
.debug_frame          5060         0x0
.debug_line          79668         0x0
.comment               109         0x0
Total              1364574

I'm using cargo-embed for general flashing & debugging, but the runner is setup to use probe-run as well.

runner = "probe-run --chip nrf52832_xxAA"

Also, do you have a LICENSE

Not at the moment, mostly because I'm still grabbing random resources/fonts/icons/etc from the internet which probably will affect licensing, but also wasn't expecting anyone to notice this project yet :)

If this thing ever makes it past the randomly-hacked-together-pile-of-ideas stage, I'll collect some design goals and get setup for contributions. Otherwise, feel free to fork and/or comment on things.

from pinetime-rs.

Related Issues (1)

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.