Cruz Monrreal
8292affb53
Merge pull request #7609 from bremoran/patch-2
...
Make location meaningful in print_error_report
2018-07-26 22:07:22 -05:00
Cruz Monrreal
639285a0e2
Merge pull request #7608 from theotherjimmy/fix-make
...
Tools: Correct `win_to_unix` path handling
2018-07-26 15:53:23 -05:00
Cruz Monrreal
cc506eed14
Merge pull request #7603 from OpenNuvoton/nuvoton_override_gcc_sbrk
...
Nuvoton: Replace __wrap__sbrk with overriding _sbrk
2018-07-26 12:54:45 -05:00
Cruz Monrreal
8755e56fd6
Merge pull request #7567 from theotherjimmy/managed-update-image
...
Tools: Generate update images with managed bl mode
2018-07-26 10:51:40 -05:00
Cruz Monrreal
5d4f636bb1
Merge pull request #7578 from VeijoPesonen/conn_failure_tolerance
...
Makes Greentea TCP test cases to timeout less in connection errors
2018-07-26 10:29:48 -05:00
Cruz Monrreal
dcd358f3e7
Merge pull request #7558 from theotherjimmy/tc-arm-v8m
...
Tools: Select compiler based on arch version
2018-07-26 10:27:21 -05:00
Cruz Monrreal
c5680b5b9d
Merge pull request #7584 from SenRamakri/sen_wait_us_Enhancement
...
Minor enhancement to wait_us
2018-07-26 10:26:17 -05:00
Brendan Moran
96fbd02f8c
Make location meaningful in print_error_report
...
`handle_error` calls `MBED_CALLER_ADDR()`, but this is always a location from within platform/mbed_error.c. This is because `handle_error` is declared static. This does not cause the function to be inlined however. Instead, it is called by each function within mbed_error.c. For example, mbed_error yields this code:
```
000625c8 <mbed_error>:
625c8: b510 push {r4, lr}
625ca: 460c mov r4, r1
625cc: 4611 mov r1, r2
625ce: 461a mov r2, r3
625d0: 9b02 ldr r3, [sp, #8 ]
625d2: f7ff feff bl 623d4 <handle_error>
625d6: b968 cbnz r0, 625f4 <mbed_error+0x2c>
625d8: 4620 mov r0, r4
625da: f7ff ff67 bl 624ac <print_error_report.constprop.0>
625de: f7ff fea8 bl 62332 <core_util_is_isr_active>
625e2: b910 cbnz r0, 625ea <mbed_error+0x22>
625e4: f7ff fe9f bl 62326 <core_util_are_interrupts_enabled>
625e8: b908 cbnz r0, 625ee <mbed_error+0x26>
625ea: bf30 wfi
625ec: e7fd b.n 625ea <mbed_error+0x22>
625ee: 2001 movs r0, #1
625f0: f000 f948 bl 62884 <__wrap_exit>
625f4: 4800 ldr r0, [pc, #0 ] ; (625f8 <mbed_error+0x30>)
625f6: bd10 pop {r4, pc}
625f8: 80ff010f .word 0x80ff010f
```
Note that at `625d2` there is a bl to handle error. That replaces the LR, which means that ALL calls to mbed_error will report a location of 0x625d6 or 0x625d7 (user vs. supervisor). I do not expect that this was the intention of the code. The simplest fix is to change line 99:
```C
static inline mbed_error_status_t handle_error(mbed_error_status_t error_status, unsigned int error_value, const char *filename, int line_number)
```
Since `handle_error()` will be inlined, the link register will be kept the same, so `MBED_CALLER_ADDR()` will yield the expected result. However, there is no guarantee that the compiler will respect the `inline` keyword in all circumstances.
The result is that each function that wishes to report its caller must extract its caller. This code cannot be centralised.
I have modified `mbed_error.c` to report the caller of each error reporting function, rather than the error reporting function itself.
2018-07-26 16:21:17 +01:00
Jimmy Brisson
35498dc54c
Correct abspath handling
2018-07-26 10:19:23 -05:00
Jimmy Brisson
f9c6f21f2e
Correct path handling after calls to `win_to_unix`
2018-07-26 09:51:18 -05:00
ccli8
313f322cf7
[Nuvoton] Replace __wrap__sbrk with overriding _sbrk
...
With _sbrk being weak, we can override it directly rather than #if to support heap with
two-region model.
2018-07-26 15:47:25 +08:00
Veijo Pesonen
dd6ec037d7
Makes Greentea TCP test cases to timeout less in connection errors
...
Made to prevent timeout if a single test case fails. The goal is that
each test case might wait only half of the remaining time reserved for
running TCP test cases.
2018-07-26 09:39:04 +03:00
Senthil Ramakrishnan
7cedccc488
Improved logic in wait_us to avoid division operation in sub-millisec case
2018-07-25 15:04:06 -05:00
Jimmy Brisson
76078f6a50
Include `-t ARM` support for v8m, armc6 targets
2018-07-25 11:48:14 -05:00
Jimmy Brisson
8be6a03a4b
Correct test_api usage of build_project
2018-07-25 11:29:59 -05:00
Jimmy Brisson
ac14e37a77
Correct result usage in reporting infra
2018-07-25 10:04:18 -05:00
Martin Kojtal
b170e1c44d
Merge pull request #7587 from SeppoTakalo/fix-tpcserver-warning
...
Allow legacy TCPServer::accept() to override inherited Socket::accept()
2018-07-25 14:20:05 +02:00
Martin Kojtal
7adfcbef71
Merge pull request #7551 from M-ichae-l/realtek-rtl8195am-remove-DEVICE_EMAC
...
realtek rtl8195am remove DEVICE_EMAC
2018-07-25 14:18:57 +02:00
Cruz Monrreal
0df9e15e4e
Merge pull request #7549 from TomoYamanaka/improve_ether
...
Revise heap and stack size for Ethernet of GR-PEACH
2018-07-24 11:47:45 -05:00
Cruz Monrreal
e4108b5842
Merge pull request #7554 from jamesbeyond/fm_flash
...
Enable HAL Flash API on Fast Models MPS2 targets
2018-07-24 11:47:00 -05:00
Seppo Takalo
96a90c2f2f
Allow legacy TCPServer::accept() to override inherited Socket::accept()
2018-07-24 18:06:04 +03:00
Cruz Monrreal
5d5ca62a5e
Merge pull request #7553 from bcostm/fix_L496_sct
...
STM32L496: fix RAM size in ARM scatter file
2018-07-23 10:14:05 -05:00
Cruz Monrreal
a252e5ed96
Merge pull request #7530 from jeromecoutant/PR_RTOS_TICKLESS
...
RTOS SYSTIMER test error in TICKLESS mode
2018-07-23 10:13:50 -05:00
Cruz Monrreal
0c2ffe5e58
Merge pull request #7519 from Wiznet/master
...
Wiznet: fix us_ticker & gpio bug
2018-07-23 10:13:10 -05:00
Cruz Monrreal
21dbbc5e8b
Merge pull request #7510 from mattbrown015/fix_stm32_gpio_irq_deepsleep
...
STM32: Improve GPIO IRQ edge detection when waking from deepsleep
2018-07-23 10:12:49 -05:00
Cruz Monrreal
25bb200586
Merge pull request #7480 from klaas019/master
...
Add MTS Dragonfly bootloader back after accidental removal from pr #7131
2018-07-23 10:12:31 -05:00
Cruz Monrreal
057138c2a0
Merge pull request #7536 from ganesh-ramachandran/master
...
Add Support for Toshiba TMPM3H6
2018-07-20 12:38:25 -05:00
Jimmy Brisson
24df8f89bf
Correct MockNotifier construction in test
2018-07-20 11:43:56 -05:00
Jimmy Brisson
69203d30f1
Create update images with managed bl mode
2018-07-20 10:53:00 -05:00
Jimmy Brisson
3f684113b0
Warn with ARMC6 and not v8m
2018-07-20 10:12:56 -05:00
Cruz Monrreal
4bcca894ae
Merge pull request #7061 from TTornblom/master
...
Tools: Include configuration in ASM
2018-07-20 08:02:44 -05:00
Cruz Monrreal
eeee6e5e9a
Merge pull request #7556 from SenRamakri/sen_FixTypoinFaultHandler
...
Fix spelling in error message in fault handler
2018-07-20 08:02:12 -05:00
Cruz Monrreal
bb7b97cadc
Merge pull request #7491 from evva-sfw/feature/EFM32_make_PeripheralPins_overridable
...
EFM32: fix weak PeripheralPins configuration
2018-07-20 08:01:39 -05:00
Cruz Monrreal
541fc1f28b
Merge pull request #7539 from jeromecoutant/PR_LL_API
...
STM32F2/F4/F7 : LL API is now available for IRQ
2018-07-19 20:43:28 -05:00
Cruz Monrreal
c1c5d89bdf
Merge pull request #7548 from OpenNuvoton/nuvoton_fix_ticker_overflow
...
Fix some targets fail to pass ticker overflow test
2018-07-19 20:43:12 -05:00
Cruz Monrreal
d91d3a6e4c
Merge pull request #7520 from hasnainvirk/cont_join_issue
...
LoRaWAN: Wrong return code for JoinRequest retry
2018-07-19 13:06:57 -05:00
Cruz Monrreal
218811024f
Merge pull request #7479 from SiliconLabs/feature/crc
...
Silicon Labs: Add support for hardware CRC
2018-07-19 13:06:42 -05:00
Jimmy Brisson
ae033da12f
Use mapping of core->arch ver. for tc picking
2018-07-19 10:55:35 -05:00
Jimmy Brisson
c030c6a52b
Use `-t ARM` for v8m targets
...
And pick the correct compiler
2018-07-19 10:48:35 -05:00
Senthil Ramakrishnan
577844d3d3
Fix spelling in error message in fault handler
2018-07-19 10:31:34 -05:00
klaas019
b368ec8f21
Add MTS Dragonfly bootloader back after accidental removal from pr #7131
2018-07-19 10:19:39 -05:00
Jimmy Brisson
14c2eff8ee
Re-indent IAR ewp temptate
2018-07-19 10:19:31 -05:00
Jimmy Brisson
d6b0f80438
Condense exported IAR project file
2018-07-19 10:18:34 -05:00
Cruz Monrreal
49ae504d97
Merge pull request #7544 from cmonr/fix-make.py
...
Remove extra ARMc6 instance in unique mapping
2018-07-19 09:16:55 -05:00
jeromecoutant
2550f3d09e
Systimer test : compilation error with MBED_TICKLESS
...
Issue occurs when "MBED_TICKLESS" is added in mbed_app.json,
not when "MBED_TICKLESS" is added in targets.json
2018-07-19 15:50:16 +02:00
Qinghao Shi
f207944341
enable HAL FLASH API on Fast Models MPS2 targets
2018-07-19 14:41:21 +01:00
bcostm
bf8587ed50
STM32L496: fix RAM size in ARM scatter file
2018-07-19 14:02:05 +02:00
Ganesh Ramachandran
8673286100
Resolved conflict in targets/targets.json
2018-07-19 16:32:51 +05:30
Ganesh Ramachandran
bfcfe9cc4b
Added Support for Toshiba TMPM3H6
2018-07-19 16:31:11 +05:30
zzw
b6a67c103b
realtek rtl8195am remove DEVICE_EMAC
...
1, remove DEVICE_EMAC for wifi feature
2018-07-19 18:07:18 +08:00