Commit Graph

6622 Commits (e9d225bb9630947de7681fb4b9f790a669dea3e6)

Author SHA1 Message Date
Bogdan Marinescu e9d225bb96 Merge pull request #2151 from mbedmicro/verbose_json_errors
More verrbose errors for JSON parsing
2016-07-13 10:29:31 +03:00
Bogdan Marinescu 99dbc8be4c Merge pull request #2148 from mbedmicro/fix_targets_py
Fix targets py
2016-07-12 19:37:50 +03:00
Bogdan Marinescu 33dd3fe8ad More verrbose errors for JSON parsing
This commit adds information about the location of problematic JSON
files when reporting a JSON parsing error.

Before this commit:

```
[ERROR] Expecting property name: line 7 column 9 (char 188)
```

After this commit:

```
Error parsing 'core/mbed_lib.json':
[ERROR] Expecting property name: line 7 column 9 (char 188)
```
2016-07-12 18:52:34 +03:00
Bogdan Marinescu 9704edfca7 Fix add_py_targets and tests
Previously, add_py_targets assumed that it is not an error to add an
existing target if that target was previously added using
add_py_targets. This was done to aid testing, but it was weird, error
prone and broke with the latest changes to the caching mechanism. With
this commit:

- it is always an error to add a target that was previously added, which
  is much more consistent.
- tests for the configuration mechanism use the newly added
  'set_targets_json_location' function to clear the internal caches in
  targets.py (and thus all previously added custom targets). As a side
  effect, this commit also tests the 'set_targets_json_location'
  function itself.
2016-07-12 14:42:21 +03:00
Bogdan Marinescu 6f86064ece Merge pull request #2140 from mbedmicro/k64f_flow_control
Added flow control for K64F
2016-07-12 13:07:11 +03:00
Bogdan Marinescu 089b67cc79 Merge pull request #2144 from geky/stdio-baud-config
Add config option for stdio baud rate
2016-07-12 13:06:29 +03:00
Bogdan Marinescu 117b21df8f It's now possible to specify the location of targets.json
With this change, it becomes possible to use targets.py with any
targets.json, not just the default one in ../hal/targets.json.
targets.py will still be initialized with the default targets.json, but
the code can then call "set_targets_json_location" to specify the new
location of targets.json. set_targets_json_location modifies all the
data "in place"; that is, it doesn't create a new TARGET_MAP,
TARGET_NAMES or alike, but rather modified the existing ones. This is
important, because code using this construct:

from tools.targets import TARGET_MAP

can work unmodified with this change.
2016-07-12 13:03:47 +03:00
Jimmy Brisson 50dbce9e74 Fixes to function caching in targets.py
Now funnctions are looked up in the cache using a (function name,
arguments) key, which makes it possible to cache different invocations
of the functions (with different arguments).
Also applied the @cached attribute to get_target.
2016-07-12 13:03:40 +03:00
Martin Kojtal 4b441c9e9e Merge pull request #2121 from rgrover/develop
introduce a context structure to encompass global state in the K64F Storage driver
2016-07-12 10:22:36 +01:00
Martin Kojtal c6b9ace54d Merge pull request #2146 from c1728p9/fix_ksdk2_adc
KSDK2 - set ADC mux before taking measurement
2016-07-12 09:35:17 +01:00
Hasnain Virk a4475a0cf8 Use correct mask for CTS flow control 2016-07-12 11:31:58 +03:00
Russ Butler 0343ad2674 KSDK2 - set ADC mux before taking measurement
Set the channel mux before taking a reading rather than on
initialization.  This allows ADC pins on both mux A and B to be used in
the same application.
2016-07-11 20:34:58 -05:00
Christopher Haster 126de5b07a Added config option for stdio baud rate 2016-07-11 18:42:44 -05:00
Bogdan Marinescu 998af81092 Added flow control for K64F
This commit adds hardware flow control capabilities for the K64F family
of MCUs. This is a backport of these commits:

9bfcfd0572
77042cc945

with a few changes:

- since the current version of KSDK doesn't seem to have APIs for
  manipulating the flow control settings, we change the peripheral
  registers directly.
- updated pin maps for RTS/CTS in accordance to the K64F datasheet.
2016-07-11 16:41:07 +03:00
Martin Kojtal 967b45a3ec Merge pull request #2029 from adustm/b_fix_MBED_16_STM32F4
Fix #2027 Add timeinfo.tm_isdst = -1 to pass MBED_16 test with IAR.
2016-07-11 11:07:40 +01:00
Bogdan Marinescu 2d41d9b013 Merge pull request #2138 from ohagendorf/progen_correction
[target.json - progen] changing a wrong config
2016-07-11 12:54:22 +03:00
Olaf Hagendorf 4b94e726c4 adding project_generator_definitions to setup.py and requirements.txt 2016-07-11 10:55:02 +02:00
Martin Kojtal 8188684cab Merge pull request #2136 from lrks/fix_i2c_slave_addr_ksdk2
[KSDK2_MCUS] Fix I2C slave address
2016-07-11 09:50:57 +01:00
Martin Kojtal 0b56c3e276 Merge pull request #2131 from geky/fix-core-util-atomic-incr-ptr
Fixed typo in incr/decr function
2016-07-11 09:22:10 +01:00
ohagendorf 7388b446d4 [target.json - progen] changing a wrong config
ARCH_MAX has a STM32F407 mcu
2016-07-10 20:58:35 +02:00
lrks 4b77054940 Fix I2C slave address
Remove the needless bit shift for I2C slave address.
2016-07-10 10:34:13 +09:00
Christopher Haster 98d55e71d8 Moved core_util_atomic_*_ptr functions out of cortex switch 2016-07-09 11:14:16 -05:00
Christopher Haster 70013d03b6 Fixed casts around calls to atomic u32 functions
- uint32_t -> void *
- void ** -> uint32_t *

For whatever reason `uintptr_t` and `uint32_t` expand to incompatible
types `unsigned int` and `unsigned long int`. This is implicitely casted
when passed by value, but causes a warning in gcc and error in iar when
passed by pointer.

This issue is not present on x86_32 gcc
2016-07-09 11:13:20 -05:00
Sam Grove 9e5a7794ab Merge pull request #2010 from theotherjimmy/flag-handling
Fix bug that killed the BOT when argument validation was on
2016-07-08 17:58:10 -05:00
Martin Kojtal 57c28a9fdf Merge pull request #2120 from TomoYamanaka/master
Modify the timing at which mbed_main() is called in IAR compiler.
2016-07-08 07:51:19 +01:00
Christopher Haster 2c78dca69c Fixed typo in incr/decr function
Result of last minute change, interestingly only emits a
warning in gcc.
2016-07-07 22:51:31 -05:00
Sam Grove c55c07a890 Merge pull request #2054 from geky/critical-cas-ptr
Added cas instrinsics for pointer values
2016-07-07 16:59:56 -05:00
Jimmy Brisson 61c63b3789 Argument error when memap's input file does not exist 2016-07-07 15:29:36 -05:00
Jimmy Brisson 122fa93a70 Allow make.py to accpet just --source 2016-07-07 15:29:36 -05:00
Jimmy Brisson 6d0716c69b Ignore extra MCUs and toolchains in get_config.py 2016-07-07 15:29:36 -05:00
Jimmy Brisson 254dccdad3 Remove checking for existance of build directory 2016-07-07 15:29:36 -05:00
Jimmy Brisson 7a4bee8c0e nargs="*" -> action="append" 2016-07-07 15:29:36 -05:00
Jimmy Brisson bca12206f1 Allow --source to be specified more than once 2016-07-07 15:29:36 -05:00
Jimmy Brisson 4c5bfaa3d8 Allow --source with -n and -p, or alone; name projects conditionally 2016-07-07 15:29:36 -05:00
Jimmy Brisson 5f18943641 Revert parsing of mutiple ides on command line 2016-07-07 15:29:36 -05:00
Jimmy Brisson 9040d27967 Rework the force types to match case
for example, argparse_force_uppercase_type will now correctly parse uARM to uARM
2016-07-07 15:29:36 -05:00
Jimmy Brisson b4b514ea2f Correct test_name_known, now use argparse_many for lists
also updated all consumers of test_name_known
2016-07-07 15:29:36 -05:00
Jimmy Brisson 5052e97b17 Force conversion of all -i, -m, -t to the correct case 2016-07-07 15:29:36 -05:00
Jimmy Brisson 6fda53b8b8 Add documentation for the argparser utilities 2016-07-07 15:29:36 -05:00
Jimmy Brisson 59ae690f9b Correct style in tests.py 2016-07-07 15:29:36 -05:00
Jimmy Brisson d6bee561ab Squash weird import bug 2016-07-07 15:29:36 -05:00
Jimmy Brisson 0ec8199c55 Revert "Revert "Generalize flag handling""
This reverts commit 33cec194c6.
2016-07-07 15:29:36 -05:00
Sam Grove 0bc7622126 Merge pull request #2094 from mlnx/mlnx-requirements
Install correct version of tools
2016-07-07 11:42:20 -05:00
Rohit Grover 887aa833b3 rename CONFIG_HARDWARE... to have a prefix of DEVICE_STORAGE_ 2016-07-07 14:55:56 +01:00
tomoyuki yamanaka 8331d5641c Modify the timing at which mbed_main() is called in IAR compiler.
Renesas modified the timing at which mbed_main() is called in IAR compiler.
Because we fail about test "mbed call before main" in IAR compiler.
2016-07-07 21:58:01 +09:00
Martin Kojtal 9f33ba87b0 Merge pull request #2047 from PrzemekWirkus/devel_mmap_proj
[Tools] Add summary for test building
2016-07-07 09:35:19 +01:00
Rohit Grover 14a14a07dc make compile-time decision about async. vs. sync. operation 2016-07-07 08:53:36 +01:00
Rohit Grover a2b683677d introduce a context structure to encompass global state 2016-07-07 08:53:36 +01:00
Rohit Grover 53def56426 get rid of an un-necessary call to NVIC_ClearPendingIRQ 2016-07-07 08:53:36 +01:00
Rohit Grover d60021ca3e remove the call to FLASH_Init() 2016-07-07 08:53:35 +01:00