This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

code is getting stuck printing a character to UART

I have Rezence SDK working well with Keil uversion with wired and wireless debug without any issues on either nRF51 and nrf51822 DKs. When I port the project to Eclipse with GNU ARM, the code is getting stuck at printing a single character using either simple_uart_put or app_uart_put API infinite times. Occasionally when I step through the simple_uart_put code, it starts to work properly.

softdevice used: s110_nrf51822_7.0.0-3.alpha_softdevice.hex excerpt from the makefile:

// Tool invocations EMF.elf: $(OBJS) $(USER_OBJS) arm-none-eabi-gcc -mcpu=cortex-m0 -march=armv6-m -mthumb -O3 -fno-builtin -Wall -g3 -T "C:\Users\yy\workspace\EMF\gcc\gcc_nrf51_s110_xxaa.ld" -Xlinker --gc-sections -Xlinker --print-gc-sections -L"C:\Users\yy\workspace\EMF\Lib" -L"C:\Users\yy\workspace\EMF\gcc" -Wl,-Map,"EMF.map" --specs=nano.specs -mfloat-abi=soft -mabi=aapcs -o "EMF.elf" $(OBJS) $(USER_OBJS) $(LIBS) $(MAKE) --no-print-directory post-build

Am I missing anything? Thanks and best regards.

Related