ARMmbed / mbed-js-ble-example

BLE Example for JerryScript on mbed
7 stars 3 forks source link

The item “mbedos5.hex” can’t be copied because there isn’t enough free space. #2

Closed solancer closed 7 years ago

solancer commented 7 years ago

(dev) linuxsavvy-mbp:mbed-js-ble-example srinivas$ gulp --target=NRF52_DK [05:47:47] Using gulpfile ~/Desktop/mbed-js-ble-example/gulpfile.js [05:47:47] Starting 'make-build-dir'... [05:47:47] Finished 'make-build-dir' after 654 μs [05:47:47] Starting 'makefile'... [05:47:47] Starting 'bundle'... [05:47:47] Starting 'ignorefile'... [05:47:47] Finished 'makefile' after 111 ms [05:47:47] Starting 'get-jerryscript'... [05:47:47] Finished 'ignorefile' after 92 ms [05:47:47] Finished 'bundle' after 360 ms [05:48:05] Finished 'get-jerryscript' after 18 s [05:48:05] Starting 'getlibs'... $ git clone https://github.com/jerryscript-project/jerryscript; cd jerryscript; git checkout 8ebbfda996cf1dc27b64f84ec9122c19c6fb90f1; cd ..; pip install -r jerryscript/targets/mbedos5/tools/requirements.txt Cloning into 'jerryscript'... Note: checking out '8ebbfda996cf1dc27b64f84ec9122c19c6fb90f1'.

You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example:

git checkout -b

HEAD is now at 8ebbfda... target: mbedos5: mbed CLI refuses to build if no .mbed file present (#1512) Requirement already satisfied: pycparser in /Users/srinivas/.virtualenvs/dev/lib/python2.7/site-packages (from -r jerryscript/targets/mbedos5/tools/requirements.txt (line 1)) Requirement already satisfied: simpleeval in /Users/srinivas/.virtualenvs/dev/lib/python2.7/site-packages (from -r jerryscript/targets/mbedos5/tools/requirements.txt (line 2)) Requirement already satisfied: pycparserext in /Users/srinivas/.virtualenvs/dev/lib/python2.7/site-packages (from -r jerryscript/targets/mbedos5/tools/requirements.txt (line 3)) Requirement already satisfied: ply>=3.4 in /Users/srinivas/.virtualenvs/dev/lib/python2.7/site-packages (from pycparserext->-r jerryscript/targets/mbedos5/tools/requirements.txt (line 3)) [05:48:57] Finished 'getlibs' after 53 s [05:48:57] Starting 'cppify'... $ make getlibs [mbed] ERROR: Could not find mbed program in current path "/Users/srinivas/Desktop/mbed-js-ble-example/build/jerryscript/targets/mbedos5". [mbed] ERROR: Change the current directory to a valid mbed program or use the '--global' option to set global configuration.

echo 'ROOT=.' > .mbed mbed config root . [mbed] . now set as default root in program "mbedos5" mbed toolchain GCC_ARM [mbed] GCC_ARM now set as default toolchain in program "mbedos5" mbed target [mbed] No default target set in program "mbedos5" mbed deploy [mbed] WARNING: Program "mbedos5" in "/Users/srinivas/Desktop/mbed-js-ble-example/build/jerryscript/targets/mbedos5" does not use source control management. [mbed] WARNING: To fix this you should use "mbed new ." in the root of your program.

[mbed] Adding library "mbed-os" from "https://github.com/ARMmbed/mbed-os" at rev #d5de476f74dd [05:48:57] Finished 'cppify' after 70 ms [05:48:57] Starting 'build'... [05:49:01] Found native packages: mbed-js-ble $ make BOARD=NRF52_DK EXTRAS=/Users/srinivas/Desktop/mbed-js-ble-example/node_modules/mbed-js-ble/. [05:49:01] build/make [05:49:01] Finished 'build' after 3.23 s [05:49:01] Starting 'default'... [05:49:01] Finished 'default' after 75 μs cd jerryscript/targets/mbedos5 && pip install -r tools/requirements.txt && rm -f source/js_encoded.cpp && rm -f source/pins.cpp && rm -f source/main.cpp && make BOARD=NRF52_DK EXTRA_SRC="/Users/srinivas/Desktop/mbed-js-ble-example/node_modules/mbed-js-ble/.:../../../source" EXTERN_BUILD_DIR=../../../out/NRF52_DK NO_JS=1 Requirement already satisfied: pycparser in /Users/srinivas/.virtualenvs/dev/lib/python2.7/site-packages (from -r tools/requirements.txt (line 1)) Requirement already satisfied: simpleeval in /Users/srinivas/.virtualenvs/dev/lib/python2.7/site-packages (from -r tools/requirements.txt (line 2)) Requirement already satisfied: pycparserext in /Users/srinivas/.virtualenvs/dev/lib/python2.7/site-packages (from -r tools/requirements.txt (line 3)) Requirement already satisfied: ply>=3.4 in /Users/srinivas/.virtualenvs/dev/lib/python2.7/site-packages (from pycparserext->-r tools/requirements.txt (line 3)) python tools/generate_pins.py NRF52_DK cp ./template-mbedignore.txt ../../.mbedignore mbed target NRF52_DK [mbed] NRF52_DK now set as default target in program "mbedos5" mbed compile -j0 --source . --source ../../ --source /Users/srinivas/Desktop/mbed-js-ble-example/node_modules/mbed-js-ble/. --source ../../../source --build ../../../out/NRF52_DK -D "CONFIG_MEM_HEAP_AREA_SIZE=(1024*16)" -t GCC_ARM Building project mbedos5 (NRF52_DK, GCC_ARM) Scan: . Scan: FEATURE_BLE Scan: FEATURE_COMMON_PAL Scan: FEATURE_LWIP Scan: FEATURE_UVISOR Scan: FEATURE_LOWPAN_BORDER_ROUTER Scan: FEATURE_LOWPAN_HOST Scan: FEATURE_LOWPAN_ROUTER Scan: FEATURE_NANOSTACK Scan: FEATURE_NANOSTACK_FULL Scan: FEATURE_THREAD_BORDER_ROUTER Scan: FEATURE_THREAD_END_DEVICE Scan: FEATURE_THREAD_ROUTER Scan: FEATURE_STORAGE Scan: Scan: . Scan: source Scan: mbed Scan: env Compile [ 0.2%]: ecma-alloc.c Compile [ 0.5%]: ecma-gc.c Compile [ 0.7%]: ecma-helpers-conversion.c Compile [ 1.0%]: ecma-helpers-errol.c Compile [ 1.2%]: ecma-helpers-external-pointers.c Compile [ 1.5%]: ecma-helpers-number.c [Warning] ecma-helpers-number.c@295,1: always_inline function might not be inlinable [-Wattributes] [Warning] ecma-helpers-number.c@242,1: always_inline function might not be inlinable [-Wattributes] Compile [ 1.7%]: ecma-helpers-value.c Compile [ 2.0%]: ecma-helpers-values-collection.c Compile [ 2.2%]: ecma-init-finalize.c Compile [ 2.5%]: main.cpp Compile [ 2.7%]: ecma-helpers-string.c [Warning] ecma-helpers-string.c@1301,1: always_inline function might not be inlinable [-Wattributes] [Warning] ecma-helpers-string.c@921,1: always_inline function might not be inlinable [-Wattributes] Compile [ 3.0%]: ecma-lcache.c Compile [ 3.2%]: ecma-literal-storage.c Compile [ 3.5%]: ecma-property-hashmap.c Compile [ 3.7%]: ecma-helpers.c Compile [ 4.0%]: ecma-builtin-array.c Compile [ 4.2%]: ecma-builtin-arraybuffer.c Compile [ 4.5%]: ecma-builtin-arraybuffer-prototype.c Compile [ 4.7%]: ecma-builtin-boolean-prototype.c Compile [ 5.0%]: ecma-builtin-boolean.c Compile [ 5.2%]: ecma-builtin-date-prototype.c Compile [ 5.5%]: ecma-builtin-error-prototype.c Compile [ 5.7%]: ecma-builtin-date.c Compile [ 6.0%]: ecma-builtin-error.c Compile [ 6.2%]: ecma-builtin-evalerror-prototype.c Compile [ 6.5%]: ecma-builtin-evalerror.c Compile [ 6.7%]: ecma-builtin-function.c Compile [ 6.9%]: ecma-builtin-function-prototype.c Compile [ 7.2%]: ecma-builtin-helpers-error.c Compile [ 7.4%]: ecma-builtin-helpers-json.c Compile [ 7.7%]: ecma-builtin-global.c Compile [ 7.9%]: ecma-builtin-helpers-date.c Compile [ 8.2%]: ecma-builtin-array-prototype.c Compile [ 8.4%]: ecma-builtin-helpers.c Compile [ 8.7%]: ecma-builtin-number.c Compile [ 8.9%]: ecma-builtin-math.c Compile [ 9.2%]: ecma-builtin-object-prototype.c Compile [ 9.4%]: ecma-builtin-rangeerror-prototype.c Compile [ 9.7%]: ecma-builtin-number-prototype.c Compile [ 9.9%]: ecma-builtin-object.c Compile [ 10.2%]: ecma-builtin-json.c Compile [ 10.4%]: ecma-builtin-rangeerror.c Compile [ 10.7%]: ecma-builtin-referenceerror-prototype.c Compile [ 10.9%]: ecma-builtin-referenceerror.c Compile [ 11.2%]: ecma-builtin-regexp.c Compile [ 11.4%]: ecma-builtin-string.c Compile [ 11.7%]: ecma-builtin-regexp-prototype.c Compile [ 11.9%]: ecma-builtin-syntaxerror-prototype.c Compile [ 12.2%]: ecma-builtin-syntaxerror.c Compile [ 12.4%]: ecma-builtin-type-error-thrower.c Compile [ 12.7%]: ecma-builtin-typeerror-prototype.c Compile [ 12.9%]: ecma-builtin-typeerror.c Compile [ 13.2%]: ecma-builtin-urierror-prototype.c Compile [ 13.4%]: ecma-builtin-urierror.c Compile [ 13.6%]: ecma-arraybuffer-object.c Compile [ 13.9%]: ecma-array-object.c Compile [ 14.1%]: ecma-boolean-object.c Compile [ 14.4%]: ecma-comparison.c Compile [ 14.6%]: ecma-eval.c Compile [ 14.9%]: ecma-conversion.c Compile [ 15.1%]: ecma-builtins.c Compile [ 15.4%]: ecma-exceptions.c Compile [ 15.6%]: ecma-get-put-value.c Compile [ 15.9%]: ecma-builtin-string-prototype.c Compile [ 16.1%]: ecma-number-arithmetic.c Compile [ 16.4%]: ecma-lex-env.c Compile [ 16.6%]: ecma-function-object.c Compile [ 16.9%]: ecma-number-object.c Compile [ 17.1%]: ecma-reference.c Compile [ 17.4%]: ecma-objects-arguments.c Compile [ 17.6%]: ecma-objects-general.c Compile [ 17.9%]: ecma-string-object.c Compile [ 18.1%]: jcontext.c Compile [ 18.4%]: jerry-snapshot.c Compile [ 18.6%]: jmem-allocator.c Compile [ 18.9%]: ecma-objects.c Compile [ 19.1%]: jmem-poolman.c Compile [ 19.4%]: jmem-heap.c [Warning] jmem-heap.c@408,1: always_inline function might not be inlinable [-Wattributes] [Warning] jmem-heap.c@392,1: always_inline function might not be inlinable [-Wattributes] Compile [ 19.6%]: ecma-regexp-object.c Compile [ 19.9%]: jrt-fatals.c Compile [ 20.1%]: lit-char-helpers.c Compile [ 20.3%]: lit-magic-strings.c Compile [ 20.6%]: jerry.c Compile [ 20.8%]: lit-strings.c Compile [ 21.1%]: common.c Compile [ 21.3%]: byte-code.c Compile [ 21.6%]: js-parser-scanner.c Compile [ 21.8%]: js-parser-mem.c Compile [ 22.1%]: js-parser-util.c Compile [ 22.3%]: js-parser-expr.c Compile [ 22.6%]: re-bytecode.c [Warning] re-bytecode.c@166,1: always_inline function might not be inlinable [-Wattributes] [Warning] re-bytecode.c@153,1: always_inline function might not be inlinable [-Wattributes] [Warning] re-bytecode.c@140,1: always_inline function might not be inlinable [-Wattributes] [Warning] re-bytecode.c@127,1: always_inline function might not be inlinable [-Wattributes] Compile [ 22.8%]: js-parser-statm.c Compile [ 23.1%]: re-compiler.c Compile [ 23.3%]: js-lexer.c Compile [ 23.6%]: re-parser.c Compile [ 23.8%]: js-parser.c Compile [ 24.1%]: opcodes-ecma-arithmetics.c Compile [ 24.3%]: opcodes-ecma-bitwise.c Compile [ 24.6%]: opcodes-ecma-equality.c Compile [ 24.8%]: opcodes-ecma-relational.c Compile [ 25.1%]: opcodes.c Compile [ 25.3%]: acos.c [Warning] acos.c@80,5: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] [Warning] acos.c@120,5: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] Compile [ 25.6%]: vm-stack.c Compile [ 25.8%]: atan.c [Warning] atan.c@92,5: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] Compile [ 26.1%]: asin.c [Warning] asin.c@87,5: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] [Warning] asin.c@122,5: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] Compile [ 26.3%]: atan2.c [Warning] atan2.c@73,3: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] [Warning] atan2.c@76,3: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] Compile [ 26.6%]: copysign.c Compile [ 26.8%]: ceil.c [Warning] ceil.c@49,3: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] [Warning] ceil.c@116,17: comparison between signed and unsigned integer expressions [-Wsign-compare] [Warning] ceil.c@127,3: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] Compile [ 27.0%]: exp.c [Warning] exp.c@136,7: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] Compile [ 27.3%]: fabs.c Compile [ 27.5%]: finite.c Compile [ 27.8%]: floor.c [Warning] floor.c@49,3: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] [Warning] floor.c@115,17: comparison between signed and unsigned integer expressions [-Wsign-compare] [Warning] floor.c@126,3: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] Compile [ 28.0%]: isnan.c [Warning] isnan.c@40,3: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] Compile [ 28.3%]: fmod.c [Warning] fmod.c@47,3: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] [Warning] fmod.c@49,3: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] [Warning] fmod.c@208,5: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] [Warning] fmod.c@229,5: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] Compile [ 28.5%]: nextafter.c [Warning] nextafter.c@38,3: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] [Warning] nextafter.c@40,3: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] [Warning] nextafter.c@58,5: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] [Warning] nextafter.c@126,7: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] [Warning] nextafter.c@132,3: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] Compile [ 28.8%]: log.c [Warning] log.c@101,3: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] Compile [ 29.0%]: scalbn.c [Warning] scalbn.c@46,3: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] Compile [ 29.3%]: sqrt.c [Warning] sqrt.c@113,3: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] [Warning] sqrt.c@187,24: comparison between signed and unsigned integer expressions [-Wsign-compare] [Warning] sqrt.c@238,3: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] Compile [ 29.5%]: pow.c [Warning] pow.c@130,3: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] [Warning] pow.c@132,3: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] [Warning] pow.c@172,29: comparison between signed and unsigned integer expressions [-Wsign-compare] [Warning] pow.c@300,5: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] [Warning] pow.c@340,5: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] [Warning] pow.c@352,5: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] [Warning] pow.c@359,5: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] [Warning] pow.c@366,5: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] [Warning] pow.c@372,3: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] [Warning] pow.c@377,3: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] [Warning] pow.c@426,3: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] Compile [ 29.8%]: trig.c [Warning] trig.c@580,3: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] [Warning] trig.c@580,0: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] [Warning] trig.c@737,7: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] [Warning] trig.c@806,7: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] [Warning] trig.c@821,11: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] [Warning] trig.c@824,11: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] [Warning] trig.c@875,5: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] [Warning] trig.c@878,5: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] Compile [ 30.0%]: vm.c Compile [ 30.3%]: AnalogIn-js.cpp Compile [ 30.5%]: DigitalOut-js.cpp Compile [ 30.8%]: assert-js.cpp Compile [ 31.0%]: gc-js.cpp Compile [ 31.3%]: I2C-js.cpp Compile [ 31.5%]: PwmOut-js.cpp Compile [ 31.8%]: setInterval-js.cpp Compile [ 32.0%]: setTimeout-js.cpp Compile [ 32.3%]: setup.cpp Compile [ 32.5%]: InterruptIn-js.cpp Compile [ 32.8%]: registry.cpp Compile [ 33.0%]: wrap_tools.cpp Compile [ 33.3%]: EventLoop.cpp Compile [ 33.5%]: AnalogIn.cpp Compile [ 33.7%]: BusIn.cpp Compile [ 34.0%]: BusInOut.cpp Compile [ 34.2%]: CAN.cpp Compile [ 34.5%]: BusOut.cpp Compile [ 34.7%]: launcher.cpp Compile [ 35.0%]: Ethernet.cpp Compile [ 35.2%]: FileLike.cpp Compile [ 35.5%]: FileBase.cpp Compile [ 35.7%]: FilePath.cpp Compile [ 36.0%]: FileSystemLike.cpp Compile [ 36.2%]: I2CSlave.cpp Compile [ 36.5%]: InterruptIn.cpp Compile [ 36.7%]: I2C.cpp Compile [ 37.0%]: LocalFileSystem.cpp Compile [ 37.2%]: InterruptManager.cpp Compile [ 37.5%]: RawSerial.cpp Compile [ 37.7%]: SPI.cpp Compile [ 38.0%]: Serial.cpp Compile [ 38.2%]: SPISlave.cpp Compile [ 38.5%]: Ticker.cpp Compile [ 38.7%]: Stream.cpp Compile [ 39.0%]: SerialBase.cpp Compile [ 39.2%]: TimerEvent.cpp Compile [ 39.5%]: Timeout.cpp Compile [ 39.7%]: Timer.cpp Compile [ 40.0%]: equeue_posix.c Compile [ 40.2%]: equeue.c Compile [ 40.4%]: BLEInstanceBase.cpp Compile [ 40.7%]: EventQueue.cpp Compile [ 40.9%]: BLE.cpp Compile [ 41.2%]: equeue_mbed.cpp [Warning] equeue_mbed.cpp@51,13: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] Compile [ 41.4%]: DFUService.cpp Compile [ 41.7%]: GapScanningParams.cpp Compile [ 41.9%]: DiscoveredCharacteristic.cpp Compile [ 42.2%]: btle_advertising.cpp Compile [ 42.4%]: UARTService.cpp Compile [ 42.7%]: URIBeaconConfigService.cpp Compile [ 42.9%]: btle_security.cpp Compile [ 43.2%]: btle_gap.cpp Compile [ 43.4%]: btle.cpp Compile [ 43.7%]: custom_helper.cpp Compile [ 43.9%]: btle_discovery.cpp Compile [ 44.2%]: nRF5xDiscoveredCharacteristic.cpp Compile [ 44.4%]: nRF5xCharacteristicDescriptorDiscoverer.cpp Compile [ 44.7%]: btle_security_pm.cpp Compile [ 44.9%]: nRF5xGattClient.cpp Compile [ 45.2%]: nRF5xServiceDiscovery.cpp Compile [ 45.4%]: nRF5xGap.cpp Compile [ 45.7%]: nRF5xGattServer.cpp Compile [ 45.9%]: greentea_metrics.cpp Compile [ 46.2%]: greentea_serial.cpp Compile [ 46.4%]: unity.c Compile [ 46.7%]: nRF5xn.cpp Compile [ 46.9%]: test_env.cpp Compile [ 47.1%]: mbed-utest-shim.cpp Compile [ 47.4%]: unity_handler.cpp Compile [ 47.6%]: utest_case.cpp Compile [ 47.9%]: utest_default_handlers.cpp Compile [ 48.1%]: utest_greentea_handlers.cpp Compile [ 48.4%]: utest_stack_trace.cpp Compile [ 48.6%]: mbed_trng.c Compile [ 48.9%]: aes.c Compile [ 49.1%]: utest_shim.cpp Compile [ 49.4%]: aesni.c Compile [ 49.6%]: arc4.c Compile [ 49.9%]: utest_harness.cpp Compile [ 50.1%]: utest_types.cpp Compile [ 50.4%]: asn1parse.c Compile [ 50.6%]: asn1write.c Compile [ 50.9%]: base64.c Compile [ 51.1%]: blowfish.c Compile [ 51.4%]: camellia.c Compile [ 51.6%]: certs.c Compile [ 51.9%]: ccm.c Compile [ 52.1%]: cmac.c Compile [ 52.4%]: cipher_wrap.c Compile [ 52.6%]: ctr_drbg.c Compile [ 52.9%]: bignum.c Compile [ 53.1%]: debug.c Compile [ 53.3%]: des.c Compile [ 53.6%]: dhm.c Compile [ 53.8%]: ecdh.c Compile [ 54.1%]: ecjpake.c Compile [ 54.3%]: cipher.c Compile [ 54.6%]: entropy.c Compile [ 54.8%]: ecdsa.c Compile [ 55.1%]: entropy_poll.c Compile [ 55.3%]: ecp_curves.c Compile [ 55.6%]: error.c Compile [ 55.8%]: havege.c Compile [ 56.1%]: gcm.c Compile [ 56.3%]: hmac_drbg.c Compile [ 56.6%]: md2.c Compile [ 56.8%]: md4.c Compile [ 57.1%]: md.c Compile [ 57.3%]: md5.c Compile [ 57.6%]: memory_buffer_alloc.c Compile [ 57.8%]: net_sockets.c Compile [ 58.1%]: padlock.c Compile [ 58.3%]: md_wrap.c Compile [ 58.6%]: pem.c Compile [ 58.8%]: oid.c Compile [ 59.1%]: pk.c Compile [ 59.3%]: pkcs11.c Compile [ 59.6%]: ecp.c Compile [ 59.8%]: pkcs12.c Compile [ 60.0%]: pkcs5.c Compile [ 60.3%]: platform.c Compile [ 60.5%]: pk_wrap.c Compile [ 60.8%]: ripemd160.c Compile [ 61.0%]: pkwrite.c Compile [ 61.3%]: sha1.c Compile [ 61.5%]: pkparse.c Compile [ 61.8%]: ssl_cache.c Compile [ 62.0%]: ssl_ciphersuites.c Compile [ 62.3%]: ssl_cli.c Compile [ 62.5%]: ssl_cookie.c Compile [ 62.8%]: sha256.c Compile [ 63.0%]: ssl_srv.c Compile [ 63.3%]: sha512.c Compile [ 63.5%]: ssl_ticket.c Compile [ 63.8%]: ssl_tls.c Compile [ 64.0%]: threading.c Compile [ 64.3%]: timing.c Compile [ 64.5%]: version.c Compile [ 64.8%]: rsa.c Compile [ 65.0%]: version_features.c Compile [ 65.3%]: x509_create.c Compile [ 65.5%]: x509_csr.c Compile [ 65.8%]: x509write_crt.c Compile [ 66.0%]: x509write_csr.c Compile [ 66.3%]: xtea.c Compile [ 66.5%]: x509_crl.c Compile [ 66.7%]: x509.c Compile [ 67.0%]: NetworkInterface.cpp Compile [ 67.2%]: x509_crt.c Compile [ 67.5%]: Socket.cpp Compile [ 67.7%]: NetworkStack.cpp Compile [ 68.0%]: SocketAddress.cpp Compile [ 68.2%]: WiFiAccessPoint.cpp Compile [ 68.5%]: TCPSocket.cpp Compile [ 68.7%]: UDPSocket.cpp Compile [ 69.0%]: mbed_gpio.c Compile [ 69.2%]: TCPServer.cpp Compile [ 69.5%]: mbed_lp_ticker_api.c Compile [ 69.7%]: nsapi_dns.cpp Compile [ 70.0%]: mbed_pinmap_common.c Compile [ 70.2%]: mbed_ticker_api.c Compile [ 70.5%]: mbed_us_ticker_api.c Compile [ 70.7%]: mbed_alloc_wrappers.cpp Compile [ 71.0%]: mbed_assert.c Compile [ 71.2%]: mbed_board.c Compile [ 71.5%]: mbed_error.c Compile [ 71.7%]: CallChain.cpp Compile [ 72.0%]: mbed_critical.c Compile [ 72.2%]: mbed_interface.c Compile [ 72.5%]: mbed_wait_api_no_rtos.c Compile [ 72.7%]: mbed_mem_trace.c Compile [ 73.0%]: mbed_semihost_api.c Compile [ 73.2%]: mbed_rtc_time.cpp Compile [ 73.4%]: Mutex.cpp Compile [ 73.7%]: Semaphore.cpp Compile [ 73.9%]: retarget.cpp Compile [ 74.2%]: rtos_idle.c Compile [ 74.4%]: mbed_wait_api_rtos.cpp Compile [ 74.7%]: HAL_CM.c Compile [ 74.9%]: HAL_CM4.S Compile [ 75.2%]: RTX_Conf_CM.c Compile [ 75.4%]: SVC_Table.S Compile [ 75.7%]: RtosTimer.cpp Compile [ 75.9%]: rt_Event.c Compile [ 76.2%]: rt_List.c Compile [ 76.4%]: rt_Mailbox.c Compile [ 76.7%]: rt_MemBox.c Compile [ 76.9%]: Thread.cpp Compile [ 77.2%]: rt_Memory.c Compile [ 77.4%]: rt_OsEventObserver.c Compile [ 77.7%]: rt_Robin.c Compile [ 77.9%]: rt_Mutex.c Compile [ 78.2%]: rt_Semaphore.c Compile [ 78.4%]: rt_System.c Compile [ 78.7%]: rt_Time.c Compile [ 78.9%]: rt_Timer.c Compile [ 79.2%]: rt_Task.c Compile [ 79.4%]: startup_NRF52832.S Compile [ 79.7%]: cmsis_nvic.c Compile [ 79.9%]: analogin_api.c Compile [ 80.1%]: system_nrf52.c Compile [ 80.4%]: rt_CMSIS.c Compile [ 80.6%]: pwmout_api.c Compile [ 80.9%]: gpio_api.c Compile [ 81.1%]: nrf_drv_pwm.c Compile [ 81.4%]: nrf_drv_saadc.c Compile [ 81.6%]: nordic_critical.c Compile [ 81.9%]: lp_ticker.c Compile [ 82.1%]: pinmap.c Compile [ 82.4%]: i2c_api.c Compile [ 82.6%]: reloc_vector_table.c Compile [ 82.9%]: port_api.c Compile [ 83.1%]: rtc_api.c Compile [ 83.4%]: ble_debug_assert_handler.c Compile [ 83.6%]: ble_advertising.c Compile [ 83.9%]: ble_racp.c Compile [ 84.1%]: ble_dtm.c Compile [ 84.4%]: ble_db_discovery.c Compile [ 84.6%]: ble_radio_notification.c Compile [ 84.9%]: ble_dfu.c Compile [ 85.1%]: ble_conn_state.c Compile [ 85.4%]: ble_advdata.c Compile [ 85.6%]: ble_srv_common.c Compile [ 85.9%]: gattc_cache_manager.c Compile [ 86.1%]: gatts_cache_manager.c Compile [ 86.4%]: gatt_cache_manager.c Compile [ 86.6%]: peer_data.c Compile [ 86.8%]: device_manager_peripheral.c Compile [ 87.1%]: id_manager.c Compile [ 87.3%]: peer_data_storage.c Compile [ 87.6%]: pm_buffer.c Compile [ 87.8%]: peer_id.c Compile [ 88.1%]: peer_database.c Compile [ 88.3%]: pm_mutex.c Compile [ 88.6%]: peer_manager.c Compile [ 88.8%]: ble_flash.c Compile [ 89.1%]: security_dispatcher.c Compile [ 89.3%]: security_manager.c Compile [ 89.6%]: nrf_delay.c Compile [ 89.8%]: nrf_drv_clock.c Compile [ 90.1%]: nrf_drv_common.c Compile [ 90.3%]: nrf_adc.c Compile [ 90.6%]: nrf_nvmc.c Compile [ 90.8%]: nrf_ecb.c Compile [ 91.1%]: nrf_drv_gpiote.c Compile [ 91.3%]: nrf_saadc.c Compile [ 91.6%]: nrf_drv_ppi.c Compile [ 91.8%]: nrf_drv_spi.c Compile [ 92.1%]: nrf_drv_spis.c Compile [ 92.3%]: bootloader_util.c Compile [ 92.6%]: pstorage.c Compile [ 92.8%]: nrf_drv_timer.c Compile [ 93.1%]: crc16.c Compile [ 93.3%]: dfu_init_template.c Compile [ 93.5%]: dfu_app_handler.c Compile [ 93.8%]: nrf_drv_twi.c Compile [ 94.0%]: fstorage_nosd.c Compile [ 94.3%]: hci_mem_pool.c Compile [ 94.5%]: fstorage.c Compile [ 94.8%]: app_trace.c Compile [ 95.0%]: app_scheduler.c Compile [ 95.3%]: app_pwm.c Compile [ 95.5%]: app_error.c Compile [ 95.8%]: app_error_weak.c Compile [ 96.0%]: fds.c Compile [ 96.3%]: app_util_platform.c Compile [ 96.5%]: nrf_assert.c Compile [ 96.8%]: nrf_log.c Compile [ 97.0%]: sdk_mapped_flags.c Compile [ 97.3%]: softdevice_handler_appsh.c Compile [ 97.5%]: softdevice_handler.c Compile [ 97.8%]: sleep.c Compile [ 98.0%]: serial_api.c Compile [ 98.3%]: us_ticker.c Compile [ 98.5%]: pins.cpp [Warning] pins.cpp@205,5: this decimal constant is unsigned only in ISO C90 Compile [ 98.8%]: jerry_port_mbed.c [Warning] jerry_port_mbed.c@38,7: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] Compile [ 99.0%]: spi_api.c Compile [ 99.3%]: test_env.cpp Compile [ 99.5%]: bleService.cpp Compile [ 99.8%]: bleCharacteristic.cpp Compile [100.0%]: ble.cpp Link: mbedos5 Elf2Bin: mbedos5 +-----------------------+--------+-------+-------+ | Module | .text | .data | .bss | +-----------------------+--------+-------+-------+ | Fill | 457 | 3 | 37 | | Misc | 312676 | 3904 | 19040 | | drivers | 3389 | 0 | 92 | | events | 52 | 0 | 0 | | events/equeue | 1404 | 0 | 61 | | features/FEATURE_BLE | 15680 | 5 | 540 | | hal | 550 | 0 | 16 | | platform | 1875 | 4 | 292 | | rtos | 757 | 4 | 4 | | rtos/rtx | 6717 | 20 | 4278 | | targets/TARGET_NORDIC | 29510 | 140 | 2504 | | Subtotals | 373067 | 4080 | 26864 | +-----------------------+--------+-------+-------+ Allocated Heap: 20304 bytes Allocated Stack: 2048 bytes Total Static RAM memory (data + bss): 30944 bytes Total RAM memory (data + bss + heap + stack): 53296 bytes Total Flash memory (text + data + misc): 377147 bytes

Object file test_env.o is not unique! It could be made from: ./mbed-os/features/frameworks/greentea-client/source/test_env.cpp /Users/srinivas/Desktop/mbed-js-ble-example/build/jerryscript/targets/mbedos5/mbed-os/features/unsupported/tests/mbed/env/test_env.cpp Image: ../../../out/NRF52_DK/mbedos5.hex

solancer commented 7 years ago

the hex file is about 1.3 MB in size!

janjongboom commented 7 years ago

I think I mentioned it in mbed-js-example repo as well, but update the nRF52-DK bootloader to JLINK interface firmware.