Git Product home page Git Product logo

Comments (2)

rogerclarkmelbourne avatar rogerclarkmelbourne commented on August 24, 2024

The option to upload to RAM was commented out from the boards.txt file a while ago, because even the bare minimum sketch would no longer fit.

We made a recent change to save 5k, so it may fit in again now, but the space for a sketch would be minimal.

Also if the link options are changed to use newlibnano instead of newlib would make the binary smaller, but with possible incompatibility issues.

I'm not sure why you would want to upload to RAM, can you elaborate ?

from arduino_stm32.

rogerclarkmelbourne avatar rogerclarkmelbourne commented on August 24, 2024

@snelweg

Note. I just had to revert a change suggested by @evq, which reduced the binary size, because without the whole-archive flag in platforms.txt, there were issues with the Hardware timers

The binary size is now too large to practically fit in RAM on most devices.

If you really want to try uploading to RAM on your board, just uncomment this section(s) in boards.txt

## F103CB USB to RAM upload
## -------------------------
#nano.menu.cpu_upload_menu.cbUsbRAM=F103CB(128k) USB->RAM
#nano.menu.cpu_upload_menu.cbUsbRAM.build.ldscript=ld/ram.ld
#nano.menu.cpu_upload_menu.cbUsbRAM.build.cpu_flags=-DMCU_STM32F103CB -DBOOTLOADER_maple 
#nano.menu.cpu_upload_menu.cbUsbRAM.build.vect=VECT_TAB_RAM
#
#nano.menu.cpu_upload_menu.cbUsbRAM.upload.maximum_size=17000
#nano.menu.cpu_upload_menu.cbUsbRAM.upload.ram.maximum_size=17000
#nano.menu.cpu_upload_menu.cbUsbRAM.upload.flash.maximum_size=108000
#nano.menu.cpu_upload_menu.cbUsbRAM.upload.altID=0
#nano.menu.cpu_upload_menu.cbUsbRAM.upload.protocol=maple_dfu

or

##############################################################
#maple_miniRAM.name=LeafLabs Maple Mini Rev 2 to RAM
#
#maple_miniRAM.upload.tool=maple_upload
#maple_miniRAM.upload.protocol=maple_dfu
#maple_miniRAM.upload.maximum_size=17000
#maple_miniRAM.upload.use_1200bps_touch=false
#maple_miniRAM.upload.file_type=bin
#maple_miniRAM.upload.ram.maximum_size=17000
#maple_miniRAM.upload.flash.maximum_size=108000
#maple_miniRAM.upload.usbID=1EAF:0003
#maple_miniRAM.upload.altID=0
#maple_miniRAM.upload.auto_reset=true
#
#maple_miniRAM.build.mcu=cortex-m3
#maple_miniRAM.build.f_cpu=72000000L
#maple_miniRAM.build.core=maple
#maple_miniRAM.build.extra_flags=-DMCU_STM32F103CB -mthumb -DSTM32_MEDIUM_DENSITY -DBOOTLOADER_maple -march=armv7-m -D__STM32F1XX__ 
#maple_miniRAM.build.ldscript=ld/ram.ld
#maple_miniRAM.build.variant=maple_mini
#maple_miniRAM.build.variant_system_lib=libmaple.a
#maple_miniRAM.build.vect=VECT_TAB_RAM
#maple_miniRAM.build.density=STM32_MEDIUM_DENSITY
#maple_miniRAM.build.error_led_port=GPIOB
#maple_miniRAM.build.error_led_pin=1
#maple_miniRAM.build.gcc_ver=gcc-arm-none-eabi-4.8.3-2014q1

And use the Generic mini maple board type and select the appropriate options

from arduino_stm32.

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.