Seppo Takalo
a68eadd7cc
Document the .mbedignore file
2016-07-14 13:06:10 +03:00
Martin Kojtal
edd539b499
Merge pull request #2123 from jamike/remove_uARM_sys_cpp
...
[TARGET_STM] : remove sys.cpp not used in TOOLCHAIN_ARM_MICRO
2016-07-14 10:08:41 +01:00
0xc0170
9c3801b7b5
Config - fix - use basetring to check if a target is string
2016-07-13 14:59:48 +01:00
Bogdan Marinescu
d0d023ab58
Merge pull request #2122 from theotherjimmy/colorized-output
...
Colorized the short Warnings/Errors generated by the toolchains
2016-07-13 14:21:15 +03:00
Przemek Wirkus
bba13ddad2
Replace in memap CSV report fields
...
Changes:
* This change impacts #2047
* In code summary columns were shortened and names changed a bit,
see [here](https://github.com/mbedmicro/mbed/pull/2047/files?w=1#diff-f9cb941bde5647a5763e18fc220efc51R410 )
* There is a need to allign memap CSV report fields (summary columns) with what
is in code now. This discrapency may create problems when generating reports
in the future. All columns should have the same name.
* memap CSV sumamry fields names changes:
'total_static_ram' -> 'static_ram'
'allocated_heap' -> 'heap'
'allocated_stack' -> 'stack'
See example of discrepancy:
'total_static_ram' vs 'static_ram'
'allocated_heap' vs 'heap'
'allocated_stack' vs 'stack'
What is in code and presented with prettytable:
+----------------------------------------+--------+-----------+------------+-------+-------+-----------+-------------+
| name | target | toolchain | static_ram | stack | heap | total_ram | total_flash |
+----------------------------------------+--------+-----------+------------+-------+-------+-----------+-------------+
| tests-mbed_drivers-c_strings | K64F | GCC_ARM | 11468 | 32768 | 65540 | 109776 | 74182 |
| tests-mbed_drivers-callback | K64F | GCC_ARM | 11980 | 32768 | 65540 | 110288 | 88406 |
| tests-mbedmicro-rtos-mbed-threads | K64F | GCC_ARM | 11468 | 32768 | 65540 | 109776 | 75918 |
| tests-mbedmicro-rtos-mbed-timer | K64F | GCC_ARM | 10788 | 32768 | 65540 | 109096 | 68534 |
+----------------------------------------+--------+-----------+------------+-------+-------+-----------+-------------+
vs CSV:
```
total_static_ram,allocated_heap,allocated_stack,total_ram,total_flash
10788,65540,32768,109096,67486
```
vs memstats_map.JSON:
```json
[
{
"module": "Fill",
"size": {
".data": 4,
".bss": 2257,
".text": 173
}
},
{
"summary": {
"total_flash": 67486,
"allocated_stack": 32768,
"total_static_ram": 10788,
"total_ram": 109096,
"allocated_heap": 65540
}
}
]
```
2016-07-13 11:25:04 +01:00
jeromecoutant
616494bcc1
Minor updates after ST internal review
2016-07-13 11:35:27 +02:00
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
jeromecoutant
d32c215f4e
Add new NUCLEO_F207ZG (CMSIS)
...
source: STM32Cube_FW_F2_V1.4.0
- CMSIS v2.1.1 => v2.1.2
- HAL v1.1.2 => v1.1.3
2016-07-12 16:40:30 +02:00
jeromecoutant
4f579ecf7f
Add new NUCLEO_F207ZG (HAL)
2016-07-12 16:38:23 +02:00
jeromecoutant
7ab31e8524
Add new STM32F2 family (HAL)
2016-07-12 16:38:19 +02:00
jeromecoutant
680a1c2c6d
libraries update to add NUCLEO_F207ZG
2016-07-12 16:38:15 +02:00
jeromecoutant
8d3cdfea59
tools update to add NUCLEO_F207ZG
2016-07-12 16:38:11 +02:00
jeromecoutant
9fc0a625bd
rtos update to add NUCLEO_F207ZG
2016-07-12 16:38:07 +02:00
jeromecoutant
cc729709fb
Update targets.json to add NUCLEO_F207ZG
2016-07-12 16:38:02 +02: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
Jimmy Brisson
cebe292c5e
[Project.py] Make -i and -m optional
...
Resolves #2135
2016-07-11 10:38:50 -05:00
Jimmy Brisson
e2c88373ee
Replace color definitions with colorama constants
2016-07-11 09:41:23 -05:00
Jimmy Brisson
bac254c7a3
Add documentation of the notify parameter to mbedToolchain
2016-07-11 09:41:23 -05:00
Jimmy Brisson
12492c17b8
Call colorized notify when --color for build.py, make.py, test.py
2016-07-11 09:41:23 -05:00
Jimmy Brisson
6b8bde9471
Update event dict with toolchain, use toolchain for wrapping
2016-07-11 09:41:23 -05:00
Jimmy Brisson
21f025e601
Add a setting for colorization map so that it may be overwritten by the user
2016-07-11 09:41:23 -05:00
Jimmy Brisson
3aacdb4421
Implement colorization in it's own file
2016-07-11 09:41:23 -05:00
Jimmy Brisson
f4254c4fee
Add colorization option to default options parser
...
should be picked up by most cli's
2016-07-11 09:41:14 -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
jeromecoutant
72f4aa5e2b
Add new STMF2 family (CMSIS)
...
source: STM32Cube_FW_F2_V1.4.0
- CMSIS v2.1.1 => v2.1.2
- HAL v1.1.2 => v1.1.3
2016-07-11 15:24:02 +02: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
0xc0170
359d33cc16
Revert part of the FPU change
...
We keep target.core names, it defines if CPU contains FPU, as it's common - Cortex M4F/M7F.
We add Cortex M7FD for double precision FPU.
2016-07-11 10:39:23 +01: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
Sam Grove
254ae0e109
Remove macro for operators. Enable these as default behavior
2016-07-10 13:47:13 -05: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
0xc0170
9a7591f21f
rtos - add mbed lib version requirement
2016-07-08 13:07:38 +01:00
Michel JAOUEN
e29aa6a7fa
Fix issue #2124 : IAR no rtos
...
Remove the 2nd call of mbed_sdk_init in __iar_argc_argv
2016-07-08 13:45:52 +02:00