如何"migrate"从皮质M3到皮质M4

how to "migrate" from cortexM3 to cortexM4

我有一个旧项目,即 运行 on SAM3S( cortex-m3) ,我需要将其用作新项目的基础,该项目应该 运行 on Sam4S cortex-M4 。更改 oopeocd.cfg 后出现此错误,但我不明白它们的真正含义:

Error: Target not examined yet
in procedure 'halt'

Error: JTAG scan chain interrogation failed: all zeroes
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: at91sam3s4.cpu: IR capture error; saw 0x00 not 0x01
Error: Target not examined yet

这里有人可以提示我应该看哪里吗?

更新

现在我得到这个错误:

Error: SAM4 ChipID 0x28ab07e0 not found in table (perhaps you can ID this chip?)
         Version:     0 [0x0000] 
           EPROC:     7 [0x0007] cortex-m4
         NVPSIZE:     7 [0x0007] 128K bytes
        NVPSIZE2:     0 [0x0000] none
        SRAMSIZE:    11 [0x000b] 64K Bytes
            ARCH:   138 [0x008a] ATSAM3S/SAM4S xC Series (100-pin version)
          NVPTYP:     2 [0x0002] embedded flash memory
           EXTID:     0 [0x0000] (exists: NO)
Error: auto_probe fail

知道现在有什么问题吗

编辑

Error: at91sam3s4.cpu: IR capture error; saw 0x00 not 0x01

您需要 cortex-M4 的体系结构和 BSP 文件。然后就可以合并你已有的项目到cortex M4的BSP中了。

at91sam3s4.cpu 好像属于M3皮质。所以,它不会在那里。

但是,您会在 atmel 网站上获得更多答案 http://www.atmel.com/tools/SAM4S-EK.aspx