Hi Team,
Did anybody ventured writing a new flash loader for the Cortex-M7 in
particular the http://www.st.com/web/catalog/mmc/FM141/SC1169/SS1858, or
does it need a new flash loader? Unfortunately not a savvy developer here,
just an experienced user :) Just checking if there are any attempts to
connect to a cortex-m7.
After a quick test and playing around with the source :
- Starting with the stm32f4x.cfg as a base and updating "set _CPUTAPID
0x5ba02477" , it has a new ID, and new device_id 0x449, and using stlink
v2-1 .
- Using the F2x as flash driver (they say it is pin compatible and
instruction compatible with the F4 (cortex-m4), assuming it is an F4X mcu,
and after trying to connect I get (note the algorithm error below).
- STLink Utility (newest version) introduced a new flash loader 449.stldr
for the new M7
- My quick observation, not sure why an M4 loader should not work, if it is
instruction backward compatible.
- It might need a new type of reset to enable flash download, for some
reason the PC gets stuck at 0xfffffffe
Anybody ventured into the new core?
Cheers,
==================================================
Open On-Chip Debugger 0.9.0-dev-00235-g1663a17-dirty (2015-01-25-19:47)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
jtag_ntrst_delay
Info : The selected transport took over low-level target control. The
results might differ compared to plain JTAG/SWD
adapter speed: 2000 kHz
adapter_nsrst_delay: 100
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : clock speed 1800 kHz
Info : STLINK v2 JTAG v23 API v2 SWIM v8 VID 0x0483 PID 0x374B
Info : using stlink api v2
Info : Target voltage: 3.214257
Info : Supported clock speeds are:
Info : 4000 kHz
Info : 1800 kHz
Info : 1200 kHz
Info : 950 kHz
Info : 480 kHz
Info : 240 kHz
Info : 125 kHz
Info : 100 kHz
Info : 50 kHz
Info : 25 kHz
Info : 15 kHz
Info : 5 kHz
Info : stm32f4x.cpu: hardware has 8 breakpoints, 0 watchpoints
Info : accepting 'gdb' connection on tcp/3333
Info : device id = 0x10006449
Warn : STM32 flash size failed, returned 0k, probe inaccurate - assuming
1024k flash
Info : flash size = 1024kbytes
undefined debug reason 7 - target needs reset
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc
semihosting is enabled
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc, semihosting
Error: flash write algorithm aborted by target
Error: error executing stm32x flash write algorithm
Error: flash write failed = 00000040
Error: error writing to flash at address 0x08000000 at offset 0x00000000
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc, semihosting
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc, semihosting
================================================
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel