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

nRF52810 minimal project example with makefile for arm-gcc

Hi, Just porting an old project from nrf52832 to a nrf52810.
I've had trouble finding a bare-bones project (arg-gcc), basically just main + log for the 52810.

I understand I can generate this using the keil mdk, but I prefer not to install (I only drink Java).

I've modified my arm_Makefile based on the infocenter instructs, i.e. new .ld and ram/rom addresses.
Just guessed the compiler flags, so removed some fpu stuff..
seems though that it doesn't seem to execute as I just toggle a pin + log via SWD, without getting any action.

Tested Jlinkexe and getting this, maybe a clue (I probably missed some compiler flags..)

Device "NRF52810_XXAA" selected.

Connecting to target via SWD
...

AP[0]: Core found
AP[0]: AHB-AP ROM base: 0xE00FF000
CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)
Found Cortex-M4 r0p1, Little endian.
FPUnit: 6 code (BP) slots and 2 literal slots
CoreSight components:
ROMTbl[0] @ E00FF000
ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB000 SCS
ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT
ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB
Cortex-M4 identified.

Maybe there is a hidden git-repo or zip somewhere with a clean build-tree / template.

Please advice. Thx! 

Related