Makefile Modification to upload application using openocd command.

dhananjay.sutariya
Posts: 41
Joined: Thu Feb 28, 2019 12:21 pm

Makefile Modification to upload application using openocd command.

Postby dhananjay.sutariya » Tue Jun 04, 2019 9:05 am

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

Who is online

Users browsing this forum: baotd_innova and 58 guests