My code has finally grown over 512k. I am programming the nrf52840_mdk board:
When attempting to program the nrf52840 the flash operation fails because the -t parameter emitted by west is incorrect. West flash does the following:
runners.pyocd: pyocd flash -e sector -a 0xc000 -t nrf52 <path>/build/zephyr/zephyr.bin
as you can see west sets “-t nrf52”, this works great as long as you don’t overrun the 512k of code (the nrf52832 limit) into the flash, beyond which pyocd (or nrfjprog) will complain that there is too much code.
West should set the -t parameter to “-t nrf52840” for nrf52840 boards.
Current workaround is to manually run pyocd or nrfjprog with the correct -t parameter.
Connected Transport Market Unit
CONFIDENTIAL: This e-mail and any attachments are confidential and intended solely for the use of the individual(s) to whom it is addressed. It can contain proprietary confidential information and be subject to legal privilege and/or subject to a non-disclosure Agreement. Unauthorized use, disclosure or copying is strictly prohibited. If you are not the/an addressee and are in possession of this e-mail, please delete the message and notify us immediately. Please consider the environment before printing this e-mail. Thank you.