West flashing very large images to nrf52840


Lawrence King
 

My code has finally grown over 512k. I am programming the nrf52840_mdk board:

              BOARD=nrf52840_mdk

 

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.

 

Lawrence King

Principal Developer

Connected Transport Market Unit

https://www.Irdeto.com

+1(416)627-7302

 

1  2 - linkedin  3 - instagram  4 - youtube  6 - facebook  7

            

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.

 

 

 

Join users@lists.zephyrproject.org to automatically receive all group messages.