Topic : OPI Driver Error

Forum : ARM

Original Post
Post Information Post
April 24, 2012 - 7:33pm
Guest

I am using the REva Starter kit with the STM32F107 Arm chip. I am having difficulty with loading a program where I get the following error:
OPI Driver Error (ARM) Timeout error when programming flash

Not sure if this is something in my code, the environment or the hardware. I validated the examples programs load and run fine, so I think hardware is fine. Any ideas?

Thanks

Bill

Replies
Post Information Post
+1
0
-1
April 25, 2012 - 10:15am
Raisonance Support Team

Hi,

Quote:
I am having difficulty with loading a program

Not sure what you mean by "loading", is this "flashing" or "debugging"?

Anyway, can you try to use a working example, and plug your code into the working project? If it works, this means that there is an invalid project setting. If it doesn't work, it means that your code is somewhat breaking the SWD interface.

Best Regards,

+1
0
-1
April 25, 2012 - 7:43pm
Guest

Thanks Bruno, I should have been clearer. I am attempting to debug a project. This is a new project which is a port of the freeRtos to the STM32F107 processor. I have taken a project which was written for the 103 device (I got this from STM32Circle.com) and changed the project settings to the 107 device. Apart from that, all the parameters I have seem to match working projects for other stuff I have successfully tested (I have the VCP USB working as an example). In looking at the code, there is a different startup file used which setups the IVT to point to the functions freeRtos uses to control the OS. I was wondering if this was the cause of the timeout, as I never get to main(). I tried placing a breakpoint at the start of the preamble, but this is never hit, so I am not sure what is going on...
I did not write any code, just trying to get this framework working so I can have something to develop on...

If there is a different RTOS Raisanance recommends to use with the STM32 family and Ride7 IDE (and is not too expensive), I would be happy to consider this, but all the OS vendors I found want ridiculous amounts for their software...

-Bill

+1
0
-1
April 26, 2012 - 9:18am
Raisonance Support Team

Hi,

Please first make sure that you are using the latest versions of both the Ride7 (7.38) and RKit-ARM (1.38) kits available on our Extranet.

Then if the problem appears with the latest versions, the best would be that you send us (support@raisonance.com) a hex or elf file showing the problem. (include a link to this forum thread in the email) Before that it would be worth trying to determine if the problem is related to the _previous_ or to the _new_ content of the flash. (even if it's the same, knowing this will help understand the problem) Make a few tests including Power-On cycles to check this.

I don't think it is related, but I suggest you check that you are using the latest version of the ST firmware library, and that it is correctly configured for 107, not 103. There are some settings there too. It's not only the Ride project and OS that needs adaptation when you change the device.

There are other OSes, but we did not try them and we will not advise for or against any of them.

Best Regards,

Vincent