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

BleNano: compile peripheral/pwm example

I am programming a Ble Nano device using Nordic SDK. So far I have been using examples from the ble_peripheral and ble_central directories. Now I want to run an example that isn't BLE (peripheral/pwm). Normally when I want to compile I run the following commands:
make all SOFTDEVICE=~/BleNano/components/softdevice/s120/hex/s120_softdevice.hex OUTPUT=_build/output.hex INPUT=_build/nrf51422_xxac_s120.hex srec_cat $SOFTDEVICE -intel $INPUT -intel -o $OUTPUT -intel --line-length=44
I am unable to compile the peripheral/pwm because when I try to run the srec_cat $SOFTDEVICE -intel $INPUT -intel -o $OUTPUT -intel --line-length=44 command I get the following error: "srec_cat: _build/nrf51422_xxac_s120.hex: open: No such file or directory". I tried switching the INPUT to _build/nrf51422_xxac.hex because that file existed, but when I run the srec command I get the following error: "srec_cat: _build/nrf51422_xxac.hex: 1: contradictory 0x00000000 value (previous = 0xC0, this one = 0x00)"

Related