Skip to content

Commit 305f5c4

Browse files
authored
Merge pull request #3882 from ARMmbed/release-candidate
Release candidate for mbed-os-5.4.0-rc2
2 parents 3a27568 + 57b4d80 commit 305f5c4

File tree

11 files changed

+30
-19
lines changed

11 files changed

+30
-19
lines changed

drivers/FileLike.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#ifndef MBED_FILELIKE_H
1717
#define MBED_FILELIKE_H
1818

19-
#include "platform/toolchain.h"
19+
#include "platform/mbed_toolchain.h"
2020
#include "drivers/FileBase.h"
2121

2222
namespace mbed {

features/TESTS/filesystem/fat_filesystem/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include "HeapBlockDevice.h"
2222
#include "FATFileSystem.h"
2323
#include <stdlib.h>
24-
#include "retarget.h"
24+
#include "mbed_retarget.h"
2525

2626
using namespace utest::v1;
2727

mbed.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
#ifndef MBED_H
1717
#define MBED_H
1818

19-
#define MBED_LIBRARY_VERSION 123
19+
#define MBED_LIBRARY_VERSION 138
2020

2121
#if MBED_CONF_RTOS_PRESENT
2222
// RTOS present, this is valid only for mbed OS 5
2323
#define MBED_MAJOR_VERSION 5
24-
#define MBED_MINOR_VERSION 2
25-
#define MBED_PATCH_VERSION 1
24+
#define MBED_MINOR_VERSION 4
25+
#define MBED_PATCH_VERSION 0
2626

2727
#else
2828
// mbed 2

platform/mbed_retarget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#include <stdio.h>
3535
#endif
3636
#include <errno.h>
37-
#include "platform/retarget.h"
37+
#include "platform/mbed_retarget.h"
3838

3939

4040
#if defined(__ARMCC_VERSION)
File renamed without changes.

platform/platform.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
#include <cstdio>
2525
#include <cstring>
2626

27-
#include "platform/retarget.h"
28-
#include "platform/toolchain.h"
27+
#include "platform/mbed_retarget.h"
28+
#include "platform/mbed_toolchain.h"
2929
#include "device.h"
3030
#include "PinNames.h"
3131
#include "PeripheralNames.h"

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F429xI/device/TOOLCHAIN_IAR/stm32f429xx_flash.icf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ define symbol __ICFEDIT_region_RAM_end__ = 0x2002FFFF;
1515
define symbol __ICFEDIT_region_CCMRAM_start__ = 0x10000000;
1616
define symbol __ICFEDIT_region_CCMRAM_end__ = 0x1000FFFF;
1717
/*-Sizes-*/
18-
/*Heap 1/4 of ram and stack 1/8*/
18+
/*Heap 1/2 of ram and stack 1/8*/
1919
define symbol __ICFEDIT_size_cstack__ = 0x6000;
20-
define symbol __ICFEDIT_size_heap__ = 0xC000;
20+
define symbol __ICFEDIT_size_heap__ = 0x18000;
2121
/**** End of ICF editor section. ###ICF###*/
2222

2323

@@ -36,4 +36,4 @@ place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
3636

3737
place in ROM_region { readonly };
3838
place in RAM_region { readwrite,
39-
block CSTACK, block HEAP };
39+
block CSTACK, block HEAP };

targets/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/device/TOOLCHAIN_IAR/stm32f439xx_flash.icf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ define symbol __ICFEDIT_region_RAM_end__ = 0x2002FFFF;
1515
define symbol __ICFEDIT_region_CCMRAM_start__ = 0x10000000;
1616
define symbol __ICFEDIT_region_CCMRAM_end__ = 0x1000FFFF;
1717
/*-Sizes-*/
18-
/*Heap 1/4 of ram and stack 1/8*/
18+
/*Heap 1/2 of ram and stack 1/8*/
1919
define symbol __ICFEDIT_size_cstack__ = 0x6000;
20-
define symbol __ICFEDIT_size_heap__ = 0xC000;
20+
define symbol __ICFEDIT_size_heap__ = 0x18000;
2121
/**** End of ICF editor section. ###ICF###*/
2222

2323

@@ -36,4 +36,4 @@ place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
3636

3737
place in ROM_region { readonly };
3838
place in RAM_region { readwrite,
39-
block CSTACK, block HEAP };
39+
block CSTACK, block HEAP };

tools/export/iar/ewd.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@
348348
</option>
349349
<option>
350350
<name>CMSISDAPInterfaceRadio</name>
351-
<state>0</state>
351+
<state>1</state>
352352
</option>
353353
<option>
354354
<name>CMSISDAPInterfaceCmdLine</name>

tools/export/uvision/__init__.py

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,16 @@ def format_src(self, srcs):
178178
key=lambda (_, __, name): name.lower())
179179
return grouped
180180

181+
@staticmethod
182+
def format_fpu(core):
183+
"""Generate a core's FPU string"""
184+
if core.endswith("FD"):
185+
return "FPU3(DFPU)"
186+
elif core.endswith("F"):
187+
return "FPU2"
188+
else:
189+
return ""
190+
181191
def generate(self):
182192
"""Generate the .uvproj file"""
183193
cache = Cache(True, False)
@@ -197,10 +207,11 @@ def generate(self):
197207
'include_paths': '; '.join(self.resources.inc_dirs).encode('utf-8'),
198208
'device': DeviceUvision(self.target),
199209
}
200-
ctx['cputype'] = ctx['device'].core.rstrip("FD")
210+
core = ctx['device'].core
211+
ctx['cputype'] = core.rstrip("FD")
201212
# Turn on FPU optimizations if the core has an FPU
202-
ctx['fpu_setting'] = 1 if 'f' not in ctx['device'].core.lower() \
203-
or 'd' in ctx['device'].core.lower() else 2
213+
ctx['fpu_setting'] = 1 if 'F' not in core or 'D' in core else 2
214+
ctx['fputype'] = self.format_fpu(core)
204215
ctx.update(self.format_flags())
205216
self.gen_file('uvision/uvision.tmpl', ctx, self.project_name+".uvprojx")
206217
self.gen_file('uvision/uvision_debug.tmpl', ctx, self.project_name + ".uvoptx")

tools/export/uvision/uvision.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<Vendor>{{device.dvendor}}</Vendor>
1717
<PackID>{{device.pack_id}}</PackID>
1818
<PackURL>{{device.pack_url}}</PackURL>
19-
<Cpu>CPUTYPE("{{cputype}}")</Cpu>
19+
<Cpu>CPUTYPE("{{cputype}}") {{fputype}}</Cpu>
2020
<FlashUtilSpec></FlashUtilSpec>
2121
<StartupFile></StartupFile>
2222
<FlashDriverDll>{{device.flash_dll}}</FlashDriverDll>

0 commit comments

Comments
 (0)