yh Tang
/
NuMaker-mbed-AWS-IoT-example
NuMaker connection with AWS IoT thru MQTT/HTTPS
mbed_app.json@28:4c196d0b769b, 2019-09-24 (annotated)
- Committer:
- ccli8
- Date:
- Tue Sep 24 17:59:51 2019 +0800
- Revision:
- 28:4c196d0b769b
- Parent:
- 27:b12add202b88
- Child:
- 29:e890b0fdce53
Update to mbe-os 5.14.0 and modifications accordingly
1. Update to mbed-os 5.14.0
2. Update for M2351 (incompatible with mbed-os 5.13.0 and earlier)
(1) Rename target:
- NU_PFM_M2351_NPSA_S: Target name for building M2351 non-PSA secure code
- NU_PFM_M2351_NPSA_NS: Target name for building M2351 non-PSA non-secure code
(2) Substitute 'NU_PREBUILD_SECURE' for .mbedignore file for excluding pre-built secure image/lib in mbe-os.
(3) Change memory partition:
- ROM: 64KiB/448KiB
- RAM: 8KiB/88KiB
3. Support new target NUMAKER_IOT_M263A
4. Refine ESP8266 configuration
(1) NetworkInterfaceDefaults.cpp gets unneeded, so removed.
(2) Change back UARTSerial tx/rx buffer size from 1024/1024 to default 256/256. This can reduce
memory footprint by (1024 - 256) * 2 = 1.5KiB. Because this configuration influences
both ESP8266 and default console (platfrom/mbed_retarget.cpp), memory reduction can
achieve 1.5KiB x 2 = 3KiB.
5. NUMAKER_IOT_M487 and on-board ESP8266
Compared to V1.2, V1.3 adds ESP8266 RTS/CTS/RST wiring. This code is incompatible with V1.2 on ESP8266.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ccli8 |
1:5ffad9f24d63 | 1 | { |
ccli8 |
1:5ffad9f24d63 | 2 | "macros": [ |
ccli8 |
1:5ffad9f24d63 | 3 | "MBED_CONF_APP_MAIN_STACK_SIZE=4096", |
ccli8 |
12:97762a6f55e9 | 4 | "MBEDTLS_USER_CONFIG_FILE=\"mbedtls_user_config.h\"" |
ccli8 |
1:5ffad9f24d63 | 5 | ], |
ccli8 |
1:5ffad9f24d63 | 6 | "target_overrides": { |
ccli8 |
1:5ffad9f24d63 | 7 | "*": { |
ccli8 |
13:8114b540d342 | 8 | "platform.stdio-baud-rate" : 115200, |
ccli8 |
12:97762a6f55e9 | 9 | "platform.stdio-convert-newlines" : true, |
ccli8 |
12:97762a6f55e9 | 10 | "platform.heap-stats-enabled" : 1, |
ccli8 |
23:5111e398e651 | 11 | "platform.stack-stats-enabled" : 1, |
ccli8 |
12:97762a6f55e9 | 12 | "mbed-trace.enable" : null, |
ccli8 |
12:97762a6f55e9 | 13 | "nsapi.default-wifi-security" : "WPA_WPA2", |
ccli8 |
12:97762a6f55e9 | 14 | "nsapi.default-wifi-ssid" : "\"SSID\"", |
ccli8 |
28:4c196d0b769b | 15 | "nsapi.default-wifi-password" : "\"Password\"" |
ccli8 |
1:5ffad9f24d63 | 16 | }, |
ccli8 |
1:5ffad9f24d63 | 17 | "NUMAKER_PFM_NUC472": { |
ccli8 |
21:0903065795a0 | 18 | "target.network-default-interface-type" : "ETHERNET", |
ccli8 |
28:4c196d0b769b | 19 | "my-tlssocket.tls-max-frag-len" : 4 |
ccli8 |
1:5ffad9f24d63 | 20 | }, |
ccli8 |
1:5ffad9f24d63 | 21 | "NUMAKER_PFM_M487": { |
ccli8 |
21:0903065795a0 | 22 | "target.network-default-interface-type" : "ETHERNET", |
ccli8 |
28:4c196d0b769b | 23 | "my-tlssocket.tls-max-frag-len" : 4 |
ccli8 |
15:47ab2fe3a0fc | 24 | }, |
ccli8 |
15:47ab2fe3a0fc | 25 | "NUMAKER_IOT_M487": { |
ccli8 |
15:47ab2fe3a0fc | 26 | "target.network-default-interface-type" : "WIFI", |
ccli8 |
26:e5cfc2628e84 | 27 | "my-tlssocket.tls-max-frag-len" : 4, |
ccli8 |
28:4c196d0b769b | 28 | |
ccli8 |
28:4c196d0b769b | 29 | "esp8266.tx" : "PH_8", |
ccli8 |
28:4c196d0b769b | 30 | "esp8266.rx" : "PH_9", |
ccli8 |
28:4c196d0b769b | 31 | "esp8266.rts" : "A2", |
ccli8 |
28:4c196d0b769b | 32 | "esp8266.cts" : "A3", |
ccli8 |
28:4c196d0b769b | 33 | "esp8266.rst" : "PH_3", |
ccli8 |
28:4c196d0b769b | 34 | "esp8266.provide-default" : true |
ccli8 |
27:b12add202b88 | 35 | }, |
ccli8 |
28:4c196d0b769b | 36 | "NU_PFM_M2351_NPSA_NS": { |
ccli8 |
27:b12add202b88 | 37 | "target.network-default-interface-type" : "WIFI", |
ccli8 |
27:b12add202b88 | 38 | "my-tlssocket.tls-max-frag-len" : 4, |
ccli8 |
27:b12add202b88 | 39 | |
ccli8 |
28:4c196d0b769b | 40 | "esp8266.tx" : "PD_1", |
ccli8 |
28:4c196d0b769b | 41 | "esp8266.rx" : "PD_0", |
ccli8 |
28:4c196d0b769b | 42 | "esp8266.rts" : "PD_3", |
ccli8 |
28:4c196d0b769b | 43 | "esp8266.cts" : "PD_2", |
ccli8 |
28:4c196d0b769b | 44 | "esp8266.rst" : "NC", |
ccli8 |
28:4c196d0b769b | 45 | "esp8266.pwr" : "PD_7", |
ccli8 |
28:4c196d0b769b | 46 | "esp8266.provide-default" : true, |
ccli8 |
28:4c196d0b769b | 47 | |
ccli8 |
28:4c196d0b769b | 48 | "target.extra_labels_remove" : ["NU_PREBUILD_SECURE"], |
ccli8 |
27:b12add202b88 | 49 | |
ccli8 |
28:4c196d0b769b | 50 | "target.mbed_rom_start" : "0x10010000", |
ccli8 |
28:4c196d0b769b | 51 | "target.mbed_rom_size" : "0x70000", |
ccli8 |
28:4c196d0b769b | 52 | "target.mbed_ram_start" : "0x30002000", |
ccli8 |
28:4c196d0b769b | 53 | "target.mbed_ram_size" : "0x16000" |
ccli8 |
28:4c196d0b769b | 54 | }, |
ccli8 |
28:4c196d0b769b | 55 | "NUMAKER_IOT_M263A": { |
ccli8 |
28:4c196d0b769b | 56 | "target.network-default-interface-type" : "WIFI", |
ccli8 |
28:4c196d0b769b | 57 | "my-tlssocket.tls-max-frag-len" : 4, |
ccli8 |
28:4c196d0b769b | 58 | |
ccli8 |
28:4c196d0b769b | 59 | "esp8266.tx" : "PC_7", |
ccli8 |
28:4c196d0b769b | 60 | "esp8266.rx" : "PC_6", |
ccli8 |
28:4c196d0b769b | 61 | "esp8266.rts" : "PE_13", |
ccli8 |
28:4c196d0b769b | 62 | "esp8266.cts" : "PC_8", |
ccli8 |
28:4c196d0b769b | 63 | "esp8266.rst" : "PE_12", |
ccli8 |
28:4c196d0b769b | 64 | "esp8266.provide-default" : true |
ccli8 |
1:5ffad9f24d63 | 65 | } |
ccli8 |
1:5ffad9f24d63 | 66 | } |
ccli8 |
1:5ffad9f24d63 | 67 | } |