Commit Graph

24184 Commits (15d0a9422daf6a4cbcd574ee91cdaf464fad8c7f)

Author SHA1 Message Date
Jimmy Brisson 98d076d1b2 Correct Python 3 errors and lint warnings in build_release.py
### Description

I think this file is still used, and it's about time we updated it for
compatibility with python3. While I was in there, I fixed all of the
linter warnings, so that it's easier to spot bad code.

### Pull request type

    [x] Fix
    [ ] Refactor
    [ ] Target update
    [ ] Functionality change
    [ ] Docs update
    [ ] Test update
    [ ] Breaking change
2019-04-24 13:37:42 +01:00
Shrikant Tudavekar fb5c9545b8 removed the redundant RW_IRAM1 region 2019-04-24 13:37:42 +01:00
Shrikant Tudavekar 0ad756c9c7 crash data support for NUC472 with gcc_arm 2019-04-24 13:37:42 +01:00
Shrikant Tudavekar c7ef343ece crash data support for NUC472 with armcc 2019-04-24 13:37:42 +01:00
Shrikant Tudavekar c1df6ea5fa place crash data region at end of IRAM 2019-04-24 13:37:42 +01:00
Shrikant Tudavekar b35d7bad6f remove unused __CRASH_DATA_RAM_SIZE__ 2019-04-24 13:37:42 +01:00
Shrikant Tudavekar cf67aff1f2 enable crash capture for NUMAKER_PFM_NUC472 2019-04-24 13:37:42 +01:00
Shrikant Tudavekar bc99864086 create a region instead of a block for crash data 2019-04-24 13:37:42 +01:00
Kevin Bracey b0526f8177 LPC55S69: Cast to cope with const mismatch 2019-04-24 13:37:42 +01:00
Kevin Bracey 73eb1c95de LPC55S69: Fix APB bridge security programming
Spotted in compiler warnings - code was trying to access a non-existent
second security control block, rather than access the settings for the
second APB bridge in the first and only security control block.
2019-04-24 13:37:42 +01:00
Tymoteusz Bloch 6c8a93d478 L3IP input now use tcpip_input instead of ip_input 2019-04-24 13:37:42 +01:00
Oren Cohen 619fc05318 Configure PS with tdbstore 2019-04-24 13:37:42 +01:00
itayzafrir 62905b1dc3 Add message context cleanup helper function 2019-04-24 13:37:42 +01:00
itayzafrir 34aa2288f0 Rename internal function destroy_hash_clone to clear_hash_clone 2019-04-24 13:37:42 +01:00
itayzafrir 60c9f54810 Do not allocate zero sized buffers - generators 2019-04-24 13:37:42 +01:00
itayzafrir 10c36c781c Do not allocate zero sized buffers - rng 2019-04-24 13:37:42 +01:00
itayzafrir 12cd1b1ff6 Do not allocate zero sized buffers - entropy 2019-04-24 13:37:42 +01:00
itayzafrir b2731f100a Do not allocate zero sized buffers - keys 2019-04-24 13:37:42 +01:00
itayzafrir e3f9a7b93c Do not allocate zero sized buffers - cipher 2019-04-24 13:37:42 +01:00
itayzafrir 3d8ea169ca Do not allocate zero sized buffers - aead 2019-04-24 13:37:42 +01:00
itayzafrir bbf7e77b2c Do not allocate zero sized buffers - asymmetric 2019-04-24 13:37:42 +01:00
itayzafrir 0807687966 Do not allocate zero sized buffers - hash 2019-04-24 13:37:42 +01:00
itayzafrir 36265a5d47 Do not allocate zero sized buffers - mac 2019-04-24 13:37:42 +01:00
itayzafrir 5f997c2dc2 Fix crypto service abort functionality - generators 2019-04-24 13:37:42 +01:00
itayzafrir 28775e1c7a Fix crypto service abort functionality - mac 2019-04-24 13:37:42 +01:00
itayzafrir 3085e7188c Fix crypto service abort functionality - hash 2019-04-24 13:37:42 +01:00
itayzafrir 3233820b83 Fix crypto service abort functionality - cipher
Also refactor cipher setup function to one common function.
2019-04-24 13:37:42 +01:00
Hasnain Virk 805f35f145 Flagging WEAK method implementation for default construction
CellularDevice::get_default_instance() is a weak method and is overriden
by either a default construction provided in the code or by application
at some stage. This method needs to be flagged otherwise using another
driver will be hindered by the default overriding of this driver.
2019-04-24 13:37:42 +01:00
Vivek Pallantla 22f3eddb10 PSoC uart: Setup RTS and TX lines in deepsleep
When PSoC enters deepsleep, in uart driver
  - deassert RTS, set RTS to output high
  - set TX to output high
2019-04-24 13:37:42 +01:00
Brian Daniels 958394d13b Force SAMD21 and SAMR21 targets to ARMC5 due to incompatibility.
The hal code for this target uses "const volatile" types inside of
structs, which are non-trivially copyable in clang (used by ARMC6). This
causes the build to fail.

Here's the commit that changed this in clang:
a3d727ba77

It seems this was reverteed some time ago in clang, but ARMC6 may not
be up to date.
2019-04-24 13:37:42 +01:00
Brian Daniels f594860c4f Fix detection of supported targets for mbed 2 builds 2019-04-24 13:37:42 +01:00
Jimmy Brisson ed72b448c4 Fix the bug that travis caught 2019-04-24 13:37:42 +01:00
Jimmy Brisson d9b3de3584 Parse section starts beginning with whitespace 2019-04-24 13:37:42 +01:00
Jimmy Brisson 9efccffa02 Correct all linting errors 2019-04-24 13:37:42 +01:00
Russ Butler 5eba40774a Fix doxygen comment in USBDevice
Update the doxygen to correctly describe the return value of
endpoint_read_result.
2019-04-24 13:37:42 +01:00
ccli8 d252d30778 Add license header 2019-04-24 13:37:42 +01:00
ccli8 ec9598a2f3 Override CMSIS ROM/RAM spec in targets.json
Old M2351 CMSIS pack reports single secure ROM/RAM spec. It is updated in new
version which reports secure/non-secure ROM/RAM spec. Override this memory spec
in targets.json regardless of CMSIS.
2019-04-24 13:37:42 +01:00
ccli8 746b5835c7 Refactor for memory partittion support
Add partition_M2351_mem.h/partition_M2351_mem.icf to centralize memory partition
2019-04-24 13:37:42 +01:00
ccli8 3c833b1b24 Fix preprocessor command line in ARMC6 .sct file 2019-04-24 13:37:42 +01:00
ccli8 90e5dc7096 Rename TOOLCHAIN_ARM_STD TOOLCHAIN_ARMC6
This is to express ARMC6 toolchain support more explicitly.
2019-04-24 13:37:42 +01:00
ccli8 db8bb4d639 Remove unnecessary toolchain directory TOOLCHAIN_ARM_MICRO 2019-04-24 13:37:42 +01:00
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