Page 1 of 1

Makefile Modification to upload application using openocd command.

Posted: Tue Jun 04, 2019 9:05 am
by dhananjay.sutariya
Hi all,

I want to make a provision in my project.mk file such that when i enter a command
For ex: make jnfw_flash .

In the background my openocd utility runs which is :
bin/openocd -s share/openocd/scripts -f interface/ftdi/esp32_devkitj_v1.cfg -f board/esp-wroom-32.cfg -c "program_esp32 filename.bin 0x10000 verify exit"

A particular jnfw from a particular fixed location will be written to its respective offset.
I'm aware with what changes i have to make in that particular script to make this happen. I cant figure out what sort of changes i've to make in project.mk file such that my make command works.
Newbie to make file's apologies if the question is too easy.

Thanks,
Dhananjay Sutariya