Setting REGOUT0 in merged.hex

Hi there,

Our firmware is built on NCS 2.6.1 (soon to be ported to 2.7.0) and uses MCUboot.

I want to set REGOUT0 to 5 (which corresponds to 3.3V) and the `nrfjprog --memwr 0x10001304 --val 5` command works for this purpose.

However, I want this REGOUT0 value to be put into merged.hex during the build procedure. I've read numerous related forum threads, but none explains exactly how to achieve this. To the best of my knowledge, a linker script is the solution.

Please provide exact instructions.

Thanks in advance!

- Laci

Related