[Openocd-development] stm32f2xxx flash support
FYI, I'm working on stm32f2xxx flash support. I've got basic erase + programming up and running, including block programming so performance will should be tolerable. Does anyone have hardware to test on out there? I'll keep pushing my work-in-progress to oharboe/stm32 until it's ready for review. http://repo.or.cz/w/openocd/oharboe.git/shortlog/refs/heads/stm32 -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 87 40 27 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development
Re: [Openocd-development] stm32f2xxx flash support
I have one STM32F207, but PCB will be available at end of this month. I'll go to ST this month for some STM32F205s if available. I can do the test if I can get the samples, but only for SWD, because there is only SWD available in my PCB. 2011/2/2 Øyvind Harboe > FYI, I'm working on stm32f2xxx flash support. I've got > basic erase + programming up and running, including > block programming so performance will should be > tolerable. > > Does anyone have hardware to test on out there? > > I'll keep pushing my work-in-progress to oharboe/stm32 > until it's ready for review. > > http://repo.or.cz/w/openocd/oharboe.git/shortlog/refs/heads/stm32 > > -- > Øyvind Harboe > > Can Zylin Consulting help on your project? > > US toll free 1-866-980-3434 / International +47 51 87 40 27 > > http://www.zylin.com/zy1000.html > ARM7 ARM9 ARM11 XScale Cortex > JTAG debugger and flash programmer > ___ > Openocd-development mailing list > Openocd-development@lists.berlios.de > https://lists.berlios.de/mailman/listinfo/openocd-development > -- Best Regards, SimonQian http://www.SimonQian.com ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development
Re: [Openocd-development] stm32f2xxx flash support
On Wed, Feb 2, 2011 at 7:53 PM, simon qian wrote: > I have one STM32F207, but PCB will be available at end of this month. > I'll go to ST this month for some STM32F205s if available. > I can do the test if I can get the samples, but only for SWD, because there > is only SWD available in my PCB. That's great! In my first tests I'm seeing 27kBytes/s for flash + erase. 128kBytes sectors takes as much as 1000ms to erase(per the datasheet). I was able to clean up the branch, but I want to let it cool off before I merge it. -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 87 40 27 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development
Re: [Openocd-development] stm32f2xxx flash support
It's fast for 27kBytes/s for flash + erase. STM32F200 has 16M internal RC, so the JTAG can run at 2.5M. As I test for STM32F100, flash programming is usually at 13KBytes/s under OpenOCD. ST website is not available in China, I don't know the state of STM32F200. I have placed an sample order of 20 STM32F205 1M/64Pin, and they only give the price, but not sure about when I can get it. The PCB will be sent to factory next week. 2011/2/3 Øyvind Harboe > On Wed, Feb 2, 2011 at 7:53 PM, simon qian > wrote: > > I have one STM32F207, but PCB will be available at end of this month. > > I'll go to ST this month for some STM32F205s if available. > > I can do the test if I can get the samples, but only for SWD, because > there > > is only SWD available in my PCB. > > That's great! > > In my first tests I'm seeing 27kBytes/s for flash + erase. 128kBytes > sectors takes > as much as 1000ms to erase(per the datasheet). > > I was able to clean up the branch, but I want to let it cool off > before I merge it. > > -- > Øyvind Harboe > > Can Zylin Consulting help on your project? > > US toll free 1-866-980-3434 / International +47 51 87 40 27 > > http://www.zylin.com/zy1000.html > ARM7 ARM9 ARM11 XScale Cortex > JTAG debugger and flash programmer > -- Best Regards, SimonQian http://www.SimonQian.com ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development
Re: [Openocd-development] stm32f2xxx flash support
> FYI, I'm working on stm32f2xxx flash support. I've got > basic erase + programming up and running, including > block programming so performance will should be tolerable. > > Does anyone have hardware to test on out there? Hi, I have done some testing on a custom STM32F217ZGT (Rev Z) board using Olimex ARM-USB-OCD JTAG. Everything I've tried works well... Individual sector erase, multiple sector erase up to the full device, image writes, image writes with auto-erase, gdb debugging through Eclipse. Thanks for your work on this! Mike Lake ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development
Re: [Openocd-development] stm32f2xxx flash support
Everything I've tried works well... Individual sector erase, multiple sector erase up to the full device, image writes, image writes with auto-erase, gdb debugging through Eclipse. Thanks for your work on this! Mike Lake What version of OpenOCD do you use ? Regards, Laurent Gauch http://www.amontec.com Amontec JTAGkey-3 Generic USB JTAG on the road and coming with bus transport bonus as CJTAG SWD SWV I2C 1-wire ... ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development
Re: [Openocd-development] stm32f2xxx flash support
>> Everything I've tried works well... Individual sector erase, >> multiple sector erase up to the full device, image writes, image >> writes with auto-erase, gdb debugging through Eclipse. >What version of OpenOCD do you use ? I was working with Øyvind Harboe's WIP git here: http://repo.or.cz/w/openocd/oharboe.git/shortlog/refs/heads/stm32 But this looks to be the same as what he's now committed to the main git. I think there is just some extra header comments. Mike Lake ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development
Re: [Openocd-development] stm32f2xxx flash support
These changes have indeed been merged with the master branch. OpenOCD could need some good configuration scripts for these STM32 parts and eval boards... Patches gladly accepted! -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 87 40 27 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development
Re: [Openocd-development] stm32f2xxx flash support
simon qian writes: > > > It's fast for 27kBytes/s for flash + erase. STM32F200 has 16M internal RC, so > the JTAG can run at 2.5M. > > As I test for STM32F100, flash programming is usually at 13KBytes/s under > OpenOCD. > > > ST website is not available in China, I don't know the state of STM32F200. > I have placed an sample order of 20 STM32F205 1M/64Pin, and they only give > the price, but not sure about when I can get it. > > The PCB will be sent to factory next week.2011/2/3 Øyvind Harboe > > On Wed, Feb 2, 2011 at 7:53 PM, simon qian > wrote: > > > I have one STM32F207, but PCB will be available at end of this month. > > I'll go to ST this month for some STM32F205s if available. > > I can do the test if I can get the samples, but only for SWD, because there > > is only SWD available in my PCB. > That's great! > In my first tests I'm seeing 27kBytes/s for flash + erase. 128kBytes > sectors takes > as much as 1000ms to erase(per the datasheet). > I was able to clean up the branch, but I want to let it cool off > before I merge it. > -- > > Øyvind Harboe > Can Zylin Consulting help on your project? > US toll free 1-866-980-3434 / International +47 51 87 40 > 27http://www.zylin.com/zy1000.html > ARM7 ARM9 ARM11 XScale Cortex > JTAG debugger and flash programmer > > > > > -- Best Regards, SimonQianhttp://www.SimonQian.com > > > > ___ > Openocd-development mailing list > Openocd-development@... > https://lists.berlios.de/mailman/listinfo/openocd-development > The driver works great. Here is my experience with it. I went to openocd, Downloaded the get repo, built. The first time I flashed code, everything worked great. The second time, I ran into issues. When I was trying to flash, I got the follow: Error: JTAG-DP STICKY ERROR Error: MEM_AP_CSW 0x2352, MEM_AP_TAR 0x40023c08 Error: JTAG-DP STICKY ERROR Error: MEM_AP_CSW 0x2352, MEM_AP_TAR 0x40023c08 Finally I got a fix. First, ensure the blocks aren't write protected Inside gdb, run this: monitor mdw 0x40023c14 should yield 0x0fffaaec If you don't get 0x0fff, do the following: reboot the board monitor mww 0x40023c08 0x08192A3B monitor mww 0x40023c08 0x4C5D6E7F monitor mww 0x40023c14 0x0fffaaec reboot the board monitor mdw 0x40023c14 should yield 0x0fffaaec Second, here is my program script, the key is that you must clear any error bits at 0x40023c0c: #Get the system ready to run these commands init #flash a program halt sleep 10 #Clear any flash errors REQUIRED! sleep 10 mww 0x40023c0c 0xf3 #Flash my code sleep 10 flash probe 0 flash write_bank 0 /tmp/target.bin 0 # get thsi thing started again reset init reset run shutdown Great job on the stm32F207 driver, thanks! -Orbital_sFear ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development
Re: [Openocd-development] stm32f2xxx flash support
The driver works great. Here is my experience with it. I went to openocd, Downloaded the get repo, built. The first time I flashed code, everything Worked great. The second time, I ran into issues. When I was trying to flash, I got the follow: Error: JTAG-DP STICKY ERROR Error: MEM_AP_CSW 0x2352, MEM_AP_TAR 0x40023c08 Error: JTAG-DP STICKY ERROR Error: MEM_AP_CSW 0x2352, MEM_AP_TAR 0x40023c08 Finally I got a fix. First, ensure the blocks aren't write protected Inside gdb, run this: monitor mdw 0x40023c14 should yield 0x0fffaaec If you don't get 0x0fff, do the following: reboot the board monitor mww 0x40023c08 0x08192A3B monitor mww 0x40023c08 0x4C5D6E7F monitor mww 0x40023c14 0x0fffaaec reboot the board monitor mdw 0x40023c14 should yield 0x0fffaaec Second, here is my program script, the key is that you must clear any error bits at 0x40023c0c: #Get the system ready to run these commands init #flash a program halt sleep 10 #Clear any flash errors REQUIRED! sleep 10 mww 0x40023c0c 0xf3 #Flash my code sleep 10 flash probe 0 flash write_bank 0 /tmp/target.bin 0 # get thsi thing started again reset init reset run shutdown Great job on the stm32F207 driver, thanks! -Orbital_sFear ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development