Hi.
I am on compiling business now. Last days i tried to do GCC compiling and quite go well. But as always on last part i find an error.
My process:
- Wrote code on keil. Compiled on GCC with MSYS on Windows. (I have hex file now)
- Edited makefile with path, lib etc. (added spi_master)
- I turned an ST-Link V2 programmer to J-Link Programmer.
- Opened NRFGo Studio and programmed the Softdevice to the flash.
- try to burned application (.hex file) to the flash. It is okey also.
6. Nothing Works.
I think maybe something wrong with linker file and i tried my another code which dont have soft device. I edited linker file ( RAM Length 6000 --> 2000) and program it to the flash. BUM. It has worked very well. But my main program which has softdevice does not work with this linker.
So I think my problem is linker memory areas. i have nrf51822aa version on my chip i think. (Beacon module)
Can somebody help me with RAM area arrangements ? (ble_app_uart examples which i am using)
Linker File
/* Linker script to configure memory regions. */
SEARCH_DIR(.)
GROUP(-lgcc -lc -lnosys)
MEMORY
{
FLASH (rx) : ORIGIN = 0x1c000, LENGTH = 0x24000
RAM (rwx) : ORIGIN = 0x20002800, LENGTH = 0x5800
}
INCLUDE "gcc_nrf51_common.ld"
UPDATE : Correct Adress Map for S130 SDK8.1 Ble_app_uart Example (in Linker File)
MEMORY
{
FLASH (rx) : ORIGIN = 0x1c000, LENGTH = 0x24000
RAM (rwx) : ORIGIN = 0x20002800, LENGTH = 0x1800
}
This is worked for me. Cheers. (Thanks to Sigurd)