Problems programming Ethernut3 (cfi primary command set 0 unsupported)

View: New views
2 Messages — Rating Filter:   Alert me  

Problems programming Ethernut3 (cfi primary command set 0 unsupported)

by jvallet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@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@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é






_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion

Re: Problems programming Ethernut3 (cfi primary command set 0 unsupported)

by jvallet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Going a bit forward...

I installed the revision 717 of OpenOCD (as specified at
http://www.ethernut.de/en/hardware/enut3/openocd.html).

In order to live with the FTDI library installed by default in Kubuntu I
had to configure it with
./configure --enable-ft2232_libftdi

then the cfi error disspapears, but instead I get the following error
----------------------------
jose@Aut-019:~/ethernut/nut/toojose@Aut-019:~/ethernut/nut-app/httpd$
make burn
jtagomat_openocd -DDEVICE=0x1F0F0F0F -DIMAGE=./httpserv.bin BATCH
at91-upl.jom FLASH
ERROR: Halt failed.
-----------------------------
ls/linux$ sudo openocd -f ./enut3ocd.cfg
Open On-Chip Debugger 1.0 (2009-06-11-12:33) svn:717
$URL: svn://svn.berlios.de/openocd/trunk/src/openocd.c $
Info:    options.c:50 configuration_output_handler(): Open On-Chip
Debugger 1.0 (2009-06-11-12:33) svn:717
Info:    options.c:50 configuration_output_handler(): jtag_speed: 0, 0
Info:    jtag.c:1389 jtag_examine_chain(): JTAG device found: 0x1f0f0f0f
(Manufacturer: 0x787, Part: 0xf0f0, Version: 0x1)
Info:    jtag.c:1389 jtag_examine_chain(): JTAG device found: 0x1f0f0f0f
(Manufacturer: 0x787, Part: 0xf0f0, Version: 0x1)
Info:    target.c:237 target_init_handler(): executing reset script
'enut3ocd.ini'
User:    target.c:957 target_arch_state(): target state: halted
User:    armv4_5.c:307 armv4_5_arch_state(): target halted in ARM state
due to debug request, current mode: Supervisor
cpsr: 0x200000d3 pc: 0x100023d8
Info:    server.c:78 add_connection(): accepting 'telnet' connection from 0
Info:    jtag.c:1389 jtag_examine_chain(): JTAG device found: 0x1f0f0f0f
(Manufacturer: 0x787, Part: 0xf0f0, Version: 0x1)
User:    target.c:957 target_arch_state(): target state: running
Info:    jtag.c:1389 jtag_examine_chain(): JTAG device found: 0x1f0f0f0f
(Manufacturer: 0x787, Part: 0xf0f0, Version: 0x1)
User:    target.c:957 target_arch_state(): target state: running
User:    target.c:957 target_arch_state(): target state: halted
User:    armv4_5.c:307 armv4_5_arch_state(): target halted in ARM state
due to debug request, current mode: Supervisor
cpsr: 0x200000d3 pc: 0x100023e0
Info:    server.c:395 server_loop(): dropped 'telnet' connection
-------------------------


I also tried
-------------------------
jose@Aut-019:~/ethernut/nut-app/httpd$ jtagomat_openocd -v HALT
JTAG-O-MAT 1.2.8
Open On-Chip Debugger 1.0 (2009-06-11-12:33) svn:717
ERROR: Halt failed.
-------------------------


Any suggestions?

Thanks!
José
_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion