Forum : ARM
Original Post
Post Information | Post |
---|---|
April 3, 2007 - 9:53pm
|
Dear Sir, I found that using too slow speed for HCLK cause the Rlink Pro to behave erratically. REVA V2.0, STR750FV2, HCLK = 2MHz. I want to use 32MHz for all of the internal clocks: CK_SYS, HCLK, PCLK, CK_TIM. At start, the CPU is clocked by FREEOSC (circa 5MHz). Then, following ST guidelines, I switch on the 4M crystal osc, then I select 4M as the CK_SYS, then I should set HCLK/PCLK/CK_TIM dividers BEFORE turning on the PLL (as per your examples, btw). The PLL will work at 64MHz, so I need at least a / 2 divisor for HCLK...but, before turning on PLL, the HCLK will be set to 2MHz and the RLink will constantly hang if Stepped. This happens with your examples, too, so I am quite sure it's not my fault. Any idea? Thank you Romano |
Hi,
Please give us more information on the way to reproduce the problem with our examples...
Which Build Number of RIDE are you using?
Which board are you using?
If it's a custom board, can we have the schematic?
Which example project are you using?
How do you configure it? (boot mode, etc.)
At which point does it fail?
What operations (go, stop, step, breakpoints, etc.) do you perform before that?
Best Regards,
Vincent
REVA v2.0 with STR750F module
RIDE Version 06.10.22 BN746-ST7-ARM-80C51-P1-STR750
ARM mode, OPT = 0
If I put the above code in a subroutine, and I avoid to Step Into, all is ok. If I step into the subroutine, I get several messages:
"Memory bus stalled.." "Out of range" or simply crash.
Regards
Romano
Hi,
You said that the problem was occurring with one of our examples. Can you tell me which one?
Vincent
Try c:\ride\lib\strx\str75x_lib\examples\tb\example1
in main.c, there is the following subroutine:
Modify last line to:
MRCC_HCLKConfig(MRCC_CKSYS_Div2);
since I cannot go to 64MHz (outside FLASH limit).
Then step over it.
However, I found that stepping IN the MRCC_DeInit(); found some lines above,produces the same result.
Regards
No news?
Hi,
Sorry for the late answer. I thought you had answered yourself. (which if fact you have)
The STR750 JTAG TAP uses the CPU clock. Therefore, it's not surprising that the RLink loses the com while you are changing the clock, because when doing this, there is probably a period of time during which there is no clock at all.
So I'm afraid there is nothing we can do. You'll have to step over it and trust the ST library for this particular part of the application, sorry.
Best Regards,
Vincent