[En-Nut-Discussion] Problems programming Ethernut3 (cfi primary command set 0 unsupported)

José Vallet jose.vallet at hut.fi
Thu Jun 11 11:29:41 CEST 2009


Hello all.

I am trying to program the flash of the Ethernut3 for the fist time. I
am trying to store the application in flash and run it from RAM. I am
trying to use "make burn", so I use jtagomat + OpenOCD + turtelizer2.

What I do:
1-Rebuild NutOS with the linker script at91_boot
2-Create the sample directory selecting Makeburn.arm-jom
3-Rebuild my application
4-Connect the turtelizer2 and run OpenOCD from nut/tools/linux
5-"make burn"

After this is completed the Ethernut does nothing. After resetting it I
can see that bootmon is still there.

My settings:
Kubuntu  8.04
NutOS version 4.6.4
OpenOCD straight from Ubuntu repos (0.0+r211-1)
jtagomat version 1.2.8
My Makeburn.arm-jom
--------------------
BURN=jtagomat_openocd
BURNMEMORY=FLASH
BURNFLAGS=-DDEVICE=0x1F0F0F0F -DIMAGE=./$(ITARG) BATCH at91-upl.jom
$(BURNMEMORY)
---------------------

The outputs of the openocd and "make burn"
----------------------------------------------
jose at Aut-019:~/ethernut/nut-app/httpd$ make burn
jtagomat_openocd -DDEVICE=0x1F0F0F0F -DIMAGE=./httpserv.bin BATCH
at91-upl.jom FLASH
Reset OK, uploading flasher...
Upload OK, starting flasher...
Flasher running and flashing ./httpserv.bin
--------------------
jose at Aut-019:~/ethernut/nut/tools/linux$ sudo openocd -f ./enut3ocd.cfg
Info:    openocd.c:93 main(): Open On-Chip Debugger (2007-09-05 09:00 CEST)
Warning: arm7_9_common.c:734 arm7_9_assert_reset(): srst resets test
logic, too
Info:    target.c:233 target_init_handler(): executing reset script
'enut3ocd.ini'
Info:    configuration.c:50 configuration_output_handler(): waiting for
target halted...
Info:    configuration.c:50 configuration_output_handler(): target halted
Info:    configuration.c:50 configuration_output_handler(): target
state: halted
Info:    configuration.c:50 configuration_output_handler(): target
halted in ARM state due to debug request, current mode: Supervisor
Info:    configuration.c:50 configuration_output_handler(): cpsr:
0x200000d3 pc: 0x100021e0
Info:    server.c:67 add_connection(): accepted 'telnet' connection from 0
Warning: arm7_9_common.c:734 arm7_9_assert_reset(): srst resets test
logic, too
Warning: arm7_9_common.c:745 arm7_9_assert_reset(): srst resets test
logic, too
Warning: arm7_9_common.c:1929 arm7_9_write_memory(): target not halted
Warning: arm7_9_common.c:1929 arm7_9_write_memory(): target not halted
Warning: arm7_9_common.c:1929 arm7_9_write_memory(): target not halted
Warning: arm7_9_common.c:1783 arm7_9_read_memory(): target not halted
Warning: arm7_9_common.c:1783 arm7_9_read_memory(): target not halted
Warning: arm7_9_common.c:1929 arm7_9_write_memory(): target not halted
Warning: arm7_9_common.c:1929 arm7_9_write_memory(): target not halted
Warning: arm7_9_common.c:1929 arm7_9_write_memory(): target not halted
Warning: arm7_9_common.c:1783 arm7_9_read_memory(): target not halted
Warning: arm7_9_common.c:1783 arm7_9_read_memory(): target not halted
Warning: arm7_9_common.c:1783 arm7_9_read_memory(): target not halted
Warning: arm7_9_common.c:1929 arm7_9_write_memory(): target not halted
Warning: arm7_9_common.c:1929 arm7_9_write_memory(): target not halted
Warning: arm7_9_common.c:1929 arm7_9_write_memory(): target not halted
Error:   cfi.c:2101 cfi_info(): cfi primary command set 0 unsupported
Info:    server.c:360 server_loop(): dropped 'telnet' connection

-----------------------------

The cfi error looks suspicious to me, but after some googling I am still
lost. Any hints are welcomed.


Thanks!
José









More information about the En-Nut-Discussion mailing list