Commit Graph

24193 Commits (mbed-os-5.12)

Author SHA1 Message Date
Brian Daniels af73a39440 Make files call the linker from the build dir, so correct the path 2019-04-24 13:37:42 +01:00
Brian Daniels 9c7175fa8f Correct call to add_file_ref 2019-04-24 13:37:42 +01:00
Brian Daniels c10528b5d5 Only store references to one linker script in a resources object.
Projects have only ever made use of one linker script per compiler.
However, the tools would store references to multiple linker scripts in
a project and select one in a non-deterministic way. Now we clear out
any existing linker script when we add a new one to a project. This way,
the last added linker script is always used.
2019-04-24 13:37:42 +01:00
Brian Daniels 6774caf6d8 Test to ensure only the last linker file is used in a project 2019-04-24 13:37:42 +01:00
Naveen Kaje c3fa5252e5 tools: fix the path generated to the sct file
The sct file path generated in the online compiler
is incorrect. Fix that by changing the correct_scatter_shebang
API to accept a FileRef object instead and use the path.

This change should go with change in online compiler that removes
the override for correct_scatter_shebang.
2019-04-24 13:37:42 +01:00
Hasnain Virk b2e0110eb5 Marking TX and RX pins for UARTSerial as NC
For default construction of the driver, it would be necessary to define
the pins. However as we don't know the correct pins, until/unless user
sets them up for us. So it makes sense to mark the pins as NC. It would
be easier to debug if the pins are set to NC if user forgot to set them
up.
2019-04-24 13:37:42 +01:00
Hasnain Virk f54decef87 Adding pin polarity and changing the constructor
To make this driver more useful, we needed to do some changes. The
wirings for the modem can differ on the board so we also need to be
flexible in our approach.
It is now mandatory to provide the power pin and pin polarity in the
constructor alongwith the file handle. Reset pin is optional.
2019-04-24 13:37:42 +01:00
Hasnain Virk 2b6f65495d Tidying up the boiler plate code
A little tidying up was needed as there was some boiler plate code that
could be shoved into a corner and reused.
2019-04-24 13:37:42 +01:00
Hasnain Virk 356d8cd61e AT+CGSN with EC2X does not take parameter
Standard 3GPP TS27.007 states that the AT+CGSN command can optionally
have type parameter that determines the output. However Quiectel EC2X
series doesn't accept parameters. We need to reflect that in the
cellular properties setup.
2019-04-24 13:37:42 +01:00
Hasnain Virk 99fcf65a95 CREG can handle lac/ci/lat
AT+CREG command can also provide information regarding lac/ci/lat etc so
we should set the mode correctly in cellular properties structure.
2019-04-24 13:37:42 +01:00
Hasnain Virk b59c26468c Removing left over tracing
A test trace was left lurking around. Removed in this commit.
2019-04-24 13:37:42 +01:00
Hasnain Virk f2b44f5f51 Basic driver for Quectel EC25/EC21
Provides basic power up / power down sequences for Quectel EC2X series
modems. Can be used in PPP mode. For using the on-board IP stack, we
will need to add and implement classes that provide context.

Driver constructor takes power and reset control pins along with the
FileHandle. A default construction is provided which can be chosen by
the application in its mbed_app.json. Otherwise the user is free to
construct as per demand.
2019-04-24 13:37:42 +01:00
Hasnain Virk 9b90f52e46 Using new rather than malloc in debug_print
Using malloc will require us to add stdlib.h somewhere in the path for
the application. Maybe the CI apps are adding stdlib.h and that's why
the code would have worked. In a custom app, it can happen that the
header is not included. Using new avoids the need to add stdlib.h
anywhere and it is more in line with C++.
2019-04-24 13:37:42 +01:00
Leszek Rusinowicz 87c50f245d FUTURE SEQUANA: Fixed linker scripts for ARMC6
Also enabled ARMC6 compiler for FUTURE_SEQUANA family of targets.
2019-04-24 13:37:42 +01:00
Leszek Rusinowicz 3a149aa3a4 FUTURE_SEQUANA: Fixed ARMC6 compiler errors and warnings 2019-04-24 13:37:42 +01:00
Leszek Rusinowicz 492ead2fdb FUTURE_SEQUANA: Flatten PDL library paths
This change moves all PDL drivers into common source and include
directories to alleviate issue with Windows version of GNU Make 4.x
maximum command line length limit.
2019-04-24 13:37:42 +01:00
Mirela Chirica 1680d07442 Cellular: Check for URC during AT response stop 2019-04-24 13:37:42 +01:00
Brian Daniels 5251ec69ac Remove outdated projectfiles case for makefiles 2019-04-24 13:37:42 +01:00
Brian Daniels 5ceedf11ec Fixing zipped makefile exports.
When zipping up projects, the makefile exporter brings every directory
supplied as --source under the same directory, even if they are in a
parent directory. There was some code that was clearing the leading
"../" components. This lead to an empty string ("") being supplied to
the "into_path" arg for "resources.add_directory". Since "" is not None,
the default behavior to place it in the same directory was not being
used. The extra "" caused a leading "/" to be added, making everything
placed a the absolute root of the filesystem ("/").

Now we check to see if the "into_path" is an empty string and ignore it
if that's the case.
2019-04-24 13:37:42 +01:00
Brian Daniels a21c0611da Fixing copying of static filerefs 2019-04-24 13:37:42 +01:00
Brian Daniels 286a3690bf Add c_cpp_properties file to gen_files for zipping 2019-04-24 13:37:42 +01:00
Brian Daniels e29f9838f3 Create template for missing generated vscode file
This file was being dumped to the filesystem without going through the
"gen_file" mechanism, thus it was missed when being zipped up.
2019-04-24 13:37:42 +01:00
Brian Daniels dac6e3c1be Fix incorrect reference to a filetype 2019-04-24 13:37:42 +01:00
Brian Daniels 44fad8467d Move all generated file paths to FileRefs in the exporters.
The FileRefs allow you to preserve the correct file paths in the online
compiler. It also allows you to preserve the correct file paths for
generated files.
2019-04-24 13:37:42 +01:00
Brian Daniels 7ec8ce4445 Fixing path comparisons on Windows 2019-04-24 13:37:42 +01:00
Aleksi Klasila 8786f4c692 rm ["python", "-m"] from build_command 2019-04-24 13:37:42 +01:00
alekla01 c923ae3eac examples test compile optional verbose 2019-04-24 13:37:42 +01:00
Kari Haapalehto 770bc91fe8 Crash with MTB_MXCHIP_EMW3166 has been corrected. There was undined pin, which was causing EMW3166 to crash. Correction has been done and new binaries genearated 2019-04-24 13:37:42 +01:00
Michal Paszta 4069781677 Relax TLSSOCKET_RECV_TIMEOUT sigio timeout 2019-04-24 13:37:42 +01:00
Michal Paszta d75000de26 Test udpsocket_recv_timeout does not check packet reception ratio 2019-04-24 13:37:42 +01:00
Brian Daniels b8ed898642 Break up large prints from --supported 2019-04-24 13:37:42 +01:00
Brian Daniels 39205aed8b Allow toolchain paths to be wrapped in quotes 2019-04-24 13:37:42 +01:00
Oren Cohen 69ee1efa9d Check that required toolchains are in PATH 2019-04-24 13:37:42 +01:00
Teppo Järvelin e4aa999d48 Cellular: Fix deleting of state machine to correct class 2019-04-24 13:37:42 +01:00
paul-szczepanek-arm a9115c36d6 missing default impl 2019-04-24 13:37:42 +01:00
paul-szczepanek-arm 7994484a90 fix missing implementation call 2019-04-24 13:37:42 +01:00
Vincent Veron 5c872a4c06 TARGET_STM32F7: Reset QSPI in default mode on abort for all versions.
This patch is missing in F7 HAL.
Fix #10049

Signed-off-by: Vincent Veron <vincent.veron@st.com>
2019-04-24 13:37:42 +01:00
Qinghao Shi 452b295fde FastModel: Add SPDX License Identifier 2019-04-24 13:37:42 +01:00
Qinghao Shi 724c0bc79a FastModel: Enable low-power ticker and sleep 2019-04-24 13:37:42 +01:00
Qinghao Shi b36c32de34 FastModel: Skip low-power ticker time drifting test for models
FastModels are a software simulator for Arm platform/cores.
They mean to be used as a tool for testing or early prototype stage development.
Due to the nature of software simulator can't grantee the timing accuracy like HW.
So time drifting test is skipped for software models.
2019-04-24 13:37:42 +01:00
Qinghao Shi 9e1a4787a1 FastModel: refactor us_ticker code, make names intuitive
- reanme US_TICKER_TIMER1 to US_TICKER_COUNTER
 - reanme US_TICKER_TIMER2 to US_TICKER_INTERRUPT
2019-04-24 13:37:42 +01:00
Qinghao Shi c4726f9d8f FastModel: add HAL sleep implementation 2019-04-24 13:37:42 +01:00
Qinghao Shi f6f92d73e7 Fastmodel: add HAL low-power ticker implementation 2019-04-24 13:37:42 +01:00
Jan Jongboom 60b524b73e test_soap_connection_handler leaks memory when open_connection fails
sckt_data is not free'd when `coap_connection_handler_open_connection` fails.
2019-04-24 13:37:42 +01:00
RFulchiero bf95f43a24 Fix single-threaded apps for IAR v8 builds
For single-threaded apps __iar_Initlocks() is not required and must
not be called because the proper IAR library is brought in only if
"--threaded_lib" is defined in the linker command.
2019-04-24 13:37:42 +01:00
Martin Kojtal 0063e5de32
Merge pull request #10326 from ARMmbed/release-candidate
Release candidate for mbed-os-5.12.1
2019-04-08 12:59:25 +02:00
adbridge 869028cf79 "Update secure binaries for LPC55S69_S" 2019-04-05 18:12:53 +01:00
adbridge 3aca6d8ae5 "Update secure binaries for FUTURE_SEQUANA_M0_PSA" 2019-04-05 16:33:23 +01:00
adbridge 4af9124e36 "Update secure binaries for CY8CKIT_062_WIFI_BT_M0_PSA" 2019-04-05 16:19:34 +01:00
Michal Paszta 51bc848c62 Add INTERRUPTIN compilation guard for ESP8266 2019-04-05 15:55:56 +01:00