File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
libraries/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s110_nrf51822_7_0_0/s110_nrf51822_7.0.0_API/include Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 16
16
{ \
17
17
__asm( \
18
18
"svc %0\n" \
19
- "bx r14" : : "I" (number) : "r0" \
19
+ "bx r14" : : "I" ((uint32_t) number) : "r0" \
20
20
); \
21
21
}
22
22
#elif defined (__ICCARM__ )
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ INCLUDE_PATHS = {% for p in include_paths %}-I{{p}} {% endfor %}
9
9
LIBRARY_PATHS = {% for p in library_paths %}-L{{p}} {% endfor %}
10
10
LIBRARIES = {% for lib in libraries %}-l{{lib}} {% endfor %}
11
11
LINKER_SCRIPT = {{linker_script}}
12
- SOFTDEVICE = mbed/TARGET_NRF51822 /TARGET_NORDIC/TARGET_NRF51822 /Lib/s110_nrf51822_6_0_0/s110_nrf51822_6 .0.0_softdevice.hex
12
+ SOFTDEVICE = mbed/TARGET_ARCH_BLE /TARGET_NORDIC/TARGET_MCU_NRF51822 /Lib/s110_nrf51822_7_0_0/s110_nrf51822_7 .0.0_softdevice.hex
13
13
14
14
###############################################################################
15
15
AS = $(GCC_BIN)arm-none-eabi-as
@@ -23,7 +23,7 @@ CPU = -mcpu=cortex-m0 -mthumb
23
23
CC_FLAGS = $(CPU) -c -g -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections
24
24
CC_SYMBOLS = {% for s in symbols %}-D{{s}} {% endfor %}
25
25
26
- LD_FLAGS = -mcpu=cortex-m0 -mthumb -Wl,--gc-sections --specs=nano.specs -u _printf_float -u _scanf_float
26
+ LD_FLAGS = -mcpu=cortex-m0 -mthumb -Wl,--gc-sections -Wl,--wrap=main - -specs=nano.specs -u _printf_float -u _scanf_float
27
27
LD_SYS_LIBS = -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys
28
28
29
29
ifeq ($(DEBUG), 1)
32
32
CC_FLAGS += -DNDEBUG -Os
33
33
endif
34
34
35
- all: $(PROJECT).hex merge
35
+ all: $(PROJECT).hex
36
36
37
37
clean:
38
38
rm -f $(PROJECT).hex $(PROJECT).elf $(OBJECTS)
@@ -54,4 +54,4 @@ $(PROJECT).hex: $(PROJECT).elf
54
54
$(OBJCOPY) -O ihex $< $@
55
55
56
56
merge:
57
- $(SREC_CAT) $(SOFTDEVICE) -intel $(PROJECT).hex -binary --offset 0x14000 - o combined.hex -intel --line-length=46
57
+ $(SREC_CAT) $(SOFTDEVICE) -intel $(PROJECT).hex -intel - o combined.hex -intel --line-length=44
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ INCLUDE_PATHS = {% for p in include_paths %}-I{{p}} {% endfor %}
9
9
LIBRARY_PATHS = {% for p in library_paths %}-L{{p}} {% endfor %}
10
10
LIBRARIES = {% for lib in libraries %}-l{{lib}} {% endfor %}
11
11
LINKER_SCRIPT = {{linker_script}}
12
- SOFTDEVICE = mbed/TARGET_NRF51822/TARGET_NORDIC/TARGET_NRF51822 /Lib/s110_nrf51822_7_0_0/s110_nrf51822_7.0.0_softdevice.hex
12
+ SOFTDEVICE = mbed/TARGET_NRF51822/TARGET_NORDIC/TARGET_MCU_NRF51822 /Lib/s110_nrf51822_7_0_0/s110_nrf51822_7.0.0_softdevice.hex
13
13
14
14
###############################################################################
15
15
AS = $(GCC_BIN)arm-none-eabi-as
32
32
CC_FLAGS += -DNDEBUG -Os
33
33
endif
34
34
35
- all: $(PROJECT).hex merge
35
+ all: $(PROJECT).hex
36
36
37
37
clean:
38
38
rm -f $(PROJECT).hex $(PROJECT).elf $(OBJECTS)
@@ -54,4 +54,4 @@ $(PROJECT).hex: $(PROJECT).elf
54
54
$(OBJCOPY) -O ihex $< $@
55
55
56
56
merge:
57
- $(SREC_CAT) $(SOFTDEVICE) -intel $(PROJECT).hex -intel --offset 0x16000 - o combined.hex -intel --line-length=46
57
+ $(SREC_CAT) $(SOFTDEVICE) -intel $(PROJECT).hex -intel -o combined.hex -intel --line-length=44
You can’t perform that action at this time.
0 commit comments