最新日志

发表于:2008-4-23 9:05:13
标签:无标签

1

【心情】【STM32团队】2008-04-23

      看着STM32团队越来越壮大,队里的朋友也越来越活跃,心里感到很是欣慰,是自己第一次建立的团队这么活跃的。但同时也有些担心,担心自己不能为着那么多朋友排忧解难,心里很是着急,所以我需要一直的Fighting

点击此处查看原文 >>

系统分类: 自由话题   |    用户分类:    |    来源: 无分类

评论(0) | 阅读(144)
发表于:2008-4-21 12:08:04
标签:无标签

1

【心情】【stm32團隊】stm32禮品收到

stm32的禮品收到

是一個stm32的最小系統板+ulink2+一顆stm32F103的芯片

自己可以擴展一些電路

先感謝下ST能夠送我這個禮品

終於可以開始stm32的工作了

点击此处查看原文 >>

系统分类: ARM   |    用户分类:    |    来源: 原创

评论(0) | 阅读(259)
发表于:2008-4-17 0:14:45
标签:无标签

1

【转】ADS1.2使用说明_经典工程模板使用说明

 

本模板用于使44B0运行C程序
一般说来汇编用来初始化 之后跳到C入口MAIN函数处

一、关于工程文件

1、本目录下建工程文件(.MCP)
2、工程文件至少包含3个文件44binit.s 44blib_a.s *.c(自己的c文件)
3、44binit.s中开头部分INCLUDE两个文件MEMCFG.S Option.s用于基本设置
注意这两个文件的存放目录,即让INCLUDE找到它们
4、以上文件除自己的c文件之外均为三星公版,不需修改

二、关于CodeWarrior设置
1、DebugRel Setting里一般设置几项
1)Target Setting->Linker里选ARMLinker
用于设置连接
2)Target Setting->Post-Linker选ARM fromELF
用于生成FLASH烧录代码(只在RAM里运行 而不烧录则不用)
3)ARM Linker->RO BASE里添地址
根据板子来,这板子上RAM接的NSCS6,地址0XC000000-0XC7FFFFF;
FLASH接的NSCS0,地址0X00000-0XFFFFF
地址分配原理见44B0数据手册内存管理那章的内存分配图

想在RAM里调试就添0XC000000(比如0XC008000)的地址
但是注意的是地址不要添过界,比如想在RAM里调试却添0X00000000 程序可以 进入C代码 但没法运行

再有 想生成用于烧写得FLASH代码 RO地址就需要设置为0X0000000开始的 而且LAYOUT中也必须设置44BINIT.O为初始加载文件 以上FLASH测试结论经FLASHPGM测试 而且FLASHPGM不支持BIN文件 只支持INTEL得HEX文件
4)RW可以添 可以不添 一般RO解释为数据段,RW解释为数据段
有时高兴了就添上0XC100000(RAM调试时)
5)ARM Linker->OPTION->Image entry point选择0xc000000(RAM调试时)
6)ARM Linker->Layout->Object/Symbol里可以添工程起始程序44BINIT.O 注意是.O不是.S和.0(零)也可以不添

三、AXD设置
1)按照BANYANGT或者ARM7正确设置调试代理 BANYANGT、ARM7、H-JTAG都是代理,装哪个无所谓,一般认为BANYANGT好,但无论哪个调试之前必须运行代理
2)在option->configure interface里 在session file 选择 44b0.ini 这个文件是初始化44b0寄存器的,必须运行
3)Options->Configue Target里本来有两项,上面上是硬件调试,下面是软件仿真(在电脑上仿真) 用ARM7就改第一项(按照ARM7说明改),用BANYANGT就按照BANYANGT说明在下面再加个BANYANGT的驱动
4)在general标签页选择attach,然后确定,最后在file->save session,关闭AXD(在CodeWarrior里一DEBUG就自动打开)

四、关于JTAG
1)JTAG一般有几种 SDT和WIGGLER 我的是WIGGLER的,两者区别主要在并口25针定义不一样(不算复位脚),与板子上JTAG相连的脚不是区分JTAG类型的标志
只要和44B0对上就行
2)JTAG小板上与44B0大板上JTAH跳线RAM调试时都不用接 烧FLASH才用到
3)网上流传的JTAG小板上也有不用RST信号的版本,无所谓,RST信号不是标准的

点击此处查看原文 >>

系统分类: ARM   |    用户分类:    |    来源: 转贴

评论(0) | 阅读(285)
发表于:2008-4-14 21:48:15
标签:无标签

3

【转帖】【STM32团队】STM32 vs AVR mega benchmarks and such

 

ThomasScherrer
Member
From: Denmark
Registered: 2007-10-29
Posts: 61
E-mail  Website

STM32 vs AVR mega benchmarks and such

I have been looking on the new cool ARM7 Cortex from ST for awhile,
now got my latest dev board up and running.
----------------
Benchmark test1:
I have a nice 3rd order lowpass filter with floating point calculations,

float filter(float s)
{
  Z[3]=Z[2];
  Z[2]=Z[1];
  Z[1]=Z[0]; // the rolling buffer
  Z[0]= s - (D[1]*Z[1] + D[2]*Z[2] + D[3]*Z[3]);
  return Z[0]*N[0] + Z[1]*N[1] + Z[2]*N[2] + Z[3]*N[3];
}

here are the filter constants used:
float N[]={1.67e-02, 5.01e-02, 5.01e-02, 1.67e-02};
float D[]={1, -1.798, 1.221, -.2898};
float Z[4]={200.001,200.001,200.001,200.001};

This code is made and tested for AVR,
but this exactly same C code compile and run just fine on the STM32 !

AVR at 8 MHz time = 2200uS (244uS at 72MHz caluculated) GCC compiler for AVR
STM32 at 72MHz time = 12-14uS (126uS at 8MHz caluculated) KEIL compiler
STM32 at 72MHz time = 16-41uS (with GCC compiler)
STM32 at 72MHz time = 12-15uS (with IAR compiler)

the STR32 is 157-183 times faster.
but the clock is also 9 times faster.
so at SAME clock the STR32 is 17-20 times faster than AVR.

uptimizer changed from none to max speed: 14uS to 12uS

if you call the filter routine with zero it is known to be a bit faster, but I called it with
a variable number and saw almost same result all the time.

--------------------------------------------------

Benchmark test2:
Pin toggle, the STM32 can toogle a pin with 20.8MHz on port b,
the port B bridge setup to 50MHz, and 72MHz core.
so if you set a bit hi and then lo, the pulse will be only 24nS wide !! KEIL compiler

Pin toggle, the STM32 can toogle a pin with 7.3MHz on port b,
the port B bridge setup to 50MHz, and 72MHz core.
so if you set a bit hi and then lo, the pulse will be 68nS wide GCC compiler

Pin toggle, the STM32 can toogle a pin with 19.2MHz on port b,
the port B bridge setup to 50MHz, and 72MHz core.
so if you set a bit hi and then lo, the pulse will be only 26nS-109nS wide !! IAR compiler, time depends on uptimize

An AVR MEGA type, can toogle a pin at halve its core frequency,
pin 10MHz, core 20MHz.
so if you set a bit hi and then lo, the pulse will be only 125nS wide at 8MHz (50nS wide, at 20MHz clock)
so an 20MHz clocked AVR will outperform STM32 only with GCC compiler in bit banging applications
-----------------------------------------------------

code size test floats:

STM32 this filter and init of the floats needed: (KEIL compiler microvision)
O0: 1108 bytes
O3: 1068 bytes
--
STM32 this filter and init of the floats needed: (GCC compiler)
NO: 896 bytes
O3:  896 bytes
MAX: 896 bytes
funny the uptimizer levels dont change a thing in size or speed of this filter.
GCC wins on smallest code, looses on speed
--
STM32 this filter and init of the floats needed: (IAR compiler)
None: 1000 bytes
medium: 926 bytes
High : 918 bytes
several optimizer options exist, rather complex.
--
AVR this filter and init of the floats needed: (GCC compiler here)
O0: 2046 bytes
O3: 2248 bytes
-S: 1838 bytes
(all optimized results where tested to function, the filter call takes same time to execute)
it is a known fact that is IAR compiler can make code size much smaller for normal AVR programs.
I have seen 50% code size with IAR, and the program still worked, on another project.
--------------------------------------------------
code size test chars and integers:
needs to be done
--------------------------------------------------

Price:
ok it is crasy cheap with STM32 !! you get so much internal features
and so much code space for so much less compared to avr 128kb vs 128kb !!

-----------------

ADC:
The AVR have 10 bit internal ADC and normally we see 1 LSB jitter with no extra software filter added.
On the STR32 dev board from KEIL I have here I see 4-5 LSB jitter,
ok it is 12bit resolution os I say it is the same internal digital noise,
the STM32 can run at 1MS !! so it can handle plenty of oversampling and digital noise filters = much better resolution and still much faster ADC result.
I made a normal running avarage like this on the STM32:
adcfiltered=((adcfiltered*0.9)+(newadc*0.1)); // this gives 12 bits useable resolution 0-4000
this is a 10 cycle filter, now I have the full 12 bits resolution with under 1 LSB jitter.
I have proved by lab test if the runing avarage is changed a bit, so it accumulate the noise,
and the output is therefore a calculated higher value = more bits resolution due to the noise,
this gives a much lower speed, but ok it can handle 1 MEGA samples/pr sec at 12bit this converter !
adc13bits = ((adc13bits*0.99)+((float)ADC_ConvertedValue*0.02) ); // this gives 13 bits useable resolution 0-8000
adc14bits = ((adc14bits*0.99)+((float)ADC_ConvertedValue*0.03) ); // this gives 14 bits useable resolution 0-12000
-------------------

Upgradeablility:
The STM32 exist in 48 - 64 - 100 pin LQFP pakages,
easy to hand solder and works fine on even 2 layer boards
also they exist from 32-64-128kb flash, the cheapest is 1.8$ and the biggest 3.6$
they exist in pin compatible slow and cheaper versions also.
they will release 256kb and 512kb soon.
__________________

Last edited by ThomasScherrer (2008-01-15 18:10:31)


Thomas Scherrer Denmark webx.dk

Offline

# 2   2008-01-04 22:33:47 STM32 vs AVR mega benchmarks and such

ThomasScherrer
Member
From: Denmark
Registered: 2007-10-29
Posts: 61
E-mail  Website

Re: STM32 vs AVR mega benchmarks and such

latest news :
this gives you 16 bit resolution !!!
adc16bits = ((adc16bits*0.999)+((float)ADC_ConvertedValue*0.016));     // 16 bit
it is still nice and lineary, no shit try it !
ok I had to add one more potentiometer 10k and 1Meg resistor to the first pot to really prove I have a useable 16 bit resolution.

Last edited by ThomasScherrer (2008-01-04 22:43:42)


Thomas Scherrer Denmark webx.dk

Offline

# 3   2008-01-05 00:53:17 STM32 vs AVR mega benchmarks and such

Stewee
Member
From: Dorset/England
Registered: 2007-10-11
Posts: 40
E-mail

Re: STM32 vs AVR mega benchmarks and such

Thankyou for sharing your findings and your filter. Very useful and interesting.

ThomasScherrer wrote:

adc13bits = ((adc13bits*0.99)+((float)ADC_ConvertedValue*0.02) ); // this gives 13 bits useable resolution 0-8000
adc14bits = ((adc14bits*0.99)+((float)ADC_ConvertedValue*0.03) ); // this gives 14 bits useable resolution 0-12000
__________________

If every reading was identical, then
Surely if you take 99% of something and add 2% you get 101%?
Not an extra bit resolution.

Last edited by Stewee (2008-01-05 01:23:42)

Offline

# 4   2008-01-05 03:59:02 STM32 vs AVR mega benchmarks and such

ThomasScherrer
Member
From: Denmark
Registered: 2007-10-29
Posts: 61
E-mail  Website

Re: STM32 vs AVR mega benchmarks and such

no no stewee the whole idea of oversampling only works IF the input is not stable,
as I said in this case the ADC generate actually 4-5 LSB of internal noise, that is actually perfect,
with oversampling and aditive filtering you will infact be able to see input signals that is 16 times under one LSB
of the original 12 bit adc !! equals a 16 bit resolution with a full scale analog voltage making a result that go from 0 to 65535, and you can actually use every count as a final result, I have tried it today so I know this works !


Thomas Scherrer Denmark webx.dk

Offline

# 5   2008-01-05 14:49:49 STM32 vs AVR mega benchmarks and such

Mark Harris
New member
Registered: 2007-11-13
Posts: 1
E-mail

Re: STM32 vs AVR mega benchmarks and such

Very impressive Thomas!

Offline

# 6   2008-01-05 22:11:36 STM32 vs AVR mega benchmarks and such

Francis
Moderator
From: France-Grenoble
Registered: 2007-07-09
Posts: 173
E-mail

Re: STM32 vs AVR mega benchmarks and such

I believe that it worls only if the noise is white, i.e. purely random. In the case of a microcontroller the noise comes from Vcc, the CPU consumption (interrupt,...), and the other peripherals (IOs, USB, etc...). Therefore, the result would depend a lot on the activity of the close environment.
Anyway, it's sure that filtering will improve the result.

Offline

# 7   2008-01-05 22:39:52 STM32 vs AVR mega benchmarks and such

ThomasScherrer
Member
From: Denmark
Registered: 2007-10-29
Posts: 61
E-mail  Website

Re: STM32 vs AVR mega benchmarks and such

exactly Francis, I have made extensively testing on this issue, and too me the noise is random.


Thomas Scherrer Denmark webx.dk

Offline

# 8   2008-01-07 06:11:41 STM32 vs AVR mega benchmarks and such

Stewee
Member
From: Dorset/England
Registered: 2007-10-11
Posts: 40
E-mail

Re: STM32 vs AVR mega benchmarks and such

;-) Nobody is saying oversampling is homeopathy, or that you are wrong, indeed it is 'VERY' helpful. Let me clarify:

My concern is that we 'ONLY' need to AVERAGE  MORE noisy samples to get MORE resolution - NOT use coefficients that add up to more than 1.   e.g. .99 and .02   .

The more samples you average the more bits of resolution you can assume - if the noise is white. Every 64 samples averaged can give one more bit of resolution so the expression for 16bit resolution would be;
average = average * 255/256  +   sample * 1/256;  (pretty much what you had. Thanks.)

If the coefficients do not add up to 1, your tests will still give better resolution, as you found, if their RATIO is about right, but an offset will grow in the final measurement over a VERY long time.

I am concerned readers under pressure might cut and paste your excellent benchmark expressions into long running applications that could suffer from an offset problem. That is all.

---

Other interesting notes;

Wiki Oversampling; http://en.wikipedia.org/wiki/Oversampling

The step response for the pseudo average is different to a true rolling average.
It takes longer for the pseudo average to arrive at the new reading after a step change in the signal measured.
The step response for a true rolling average is a straight incline.
The step response for the pseudo rolling average is a curve that starts shallow, steepest midway, ends shallow.

Last edited by Stewee (2008-01-07 06:14:15)

Offline

# 9   2008-01-07 06:23:47 STM32 vs AVR mega benchmarks and such

ThomasScherrer
Member
From: Denmark
Registered: 2007-10-29
Posts: 61
E-mail  Website

Re: STM32 vs AVR mega benchmarks and such

You are right ! that is why I have combined first avaraging and then 3rd order low pass,
to give me a fast reacting and nice noise free result :-)

from 12 to 16 bits ADC resolution I see only 16 times over sampling needed,
but if you also want to stable the noise 64 to 128 times is more likely to be used.

it is also right I have a few calculations errors, the:
((adc16bits*0.999)+((float)ADC_ConvertedValue*0.016));     // 16 bit
this gives not exactly 16 times the ADC value, but more like 15.782
but it is a constant error, so i am still happy.


Thomas Scherrer Denmark webx.dk

Offline

# 10   2008-01-18 18:08:48 STM32 vs AVR mega benchmarks and such

ikdor
New member
From: Netherlands
Registered: 2007-08-17
Posts: 3
E-mail

Re: STM32 vs AVR mega benchmarks and such

Thomas,

When going from 12 to 16 bits you will need 256x oversampling like Stewee said above.
Also when making a program, it's much faster to use shifts of integers instead of using floats. The 256x oversampling is exactly a shift of one byte.  Better to try something like this:
Sum = Sum - Sum>>8 + AdcValue;
Value16bit = Sum  >> 4;

Small problem (depending on your application) is that this will creep slowly toward the right value. For a fast response you will need to use a 256 value buffer instead of an IIR filter like the one above.

Igor

Offline

# 11   2008-01-18 19:08:43 STM32 vs AVR mega benchmarks and such

Francis
Moderator
From: France-Grenoble
Registered: 2007-07-09
Posts: 173
E-mail

Re: STM32 vs AVR mega benchmarks and such

I believe some parenthesis are missing:   Sum = Sum - ( Sum>>8 ) + AdcValue;

Offline

点击此处查看原文 >>

系统分类: ARM   |    用户分类:    |    来源: 转贴

评论(0) | 阅读(190)
发表于:2008-4-14 21:44:48
标签:无标签

1

【转帖】【STM32团队】STM32 bootloading with UART1

ThomasScherrer
STM32 bootloading with UART1

download the PC software application UM0462 and documentation 13916

the BOOT0 and BOOT1 pins are normally pulled low for normal run.

To activate uart1 bootloader, pull BOOT0 HI, press reset,
now the PC sw will connect as discribed,
to make your STM32 run the uploaded program, pull BOOT0 low again and press reset.

I would be happy if the PC program could remember all settings, like comport, device type and file names,
but it can not at this moment.


Thomas Scherrer Denmark webx.dk

# 2   2008-01-08 20:17:32 STM32 bootloading with UART1

Stewee
Re: STM32 bootloading with UART1

Hi Thomas, I experimented with ST Flash Loader Demonstrator 1.0 with the STM32 Primer to investigate possible alternate upload times on a virgin part. Some temporary hardware mods were needed. Here is what I found.

1) The STM32 chip must be a revision B - for the system boot mode code to be present at 1fffff000-1fffff800.
2) Some Primers are fitted with revision A others with revision B.  the chip is marked ARM A  or ARM B.
3) J3 is not a Jtag connector for the STM32.
4) The STM32 JTAG is hard-wired to the rlink DONGLE.
5) I could not get the Flash Loader Demonstrator to run faster than 9600 or 19200 baud, yet UART1 worked fine at 115200 in my circleos Application. See question below?
6) I could not get Flash Loader Demonstrator to work at all on a desktop PC, it only worked on my laptop.
7) ST will not release the source for the system-boot-mode code
8) The System boot mode code memory is not reprogrammable by users.
9) The Flash Loader Demonstator programmed quicker than it read because it had an option to not reprogram ff's

Does the Flash Loader Demonstator work OK at 115200 BAUD on your Keil board???????
(I suspect my RS232 level converter may be the problem - but its more likely a timing problem at the PC end).

This capability could useful in the field as a last resort reprogramming method for devices with a UART1 interface because it does not require the end user to have development tools.

From past experience with other chip makers it is possible ST may change this system boot mode facility. It may be unwise to assume it stays compatible with revision B. Especially since it appears it does not work at 115200 with my hardware.

Last edited by Stewee (2008-01-08 21:01:48)

# 3   2008-01-15 18:57:15 STM32 bootloading with UART1
ThomasScherrer
Re: STM32 bootloading with UART1

yes on my KEIL board MCBSTM32 I always and only run at 115200
did not know it was possible to change it :-)
I was thinking the part was hardwired to 115200 ? in its bootloader ?
it is actually quite slow a few kb pr sec, I am a bit disapointed about the speed,
and also the PC program dont remember ALL settings, like comport and file extension, is a real pain !
I use comport 4 and have to scroll down to select, same with the .hex

The version A or B is only written on 64 pin parts !
I have checked all my 48 and 100 pin parts I just got for new project testings,
they dont have this A or B next to the ARM logo

Last edited by ThomasScherrer (2008-01-15 18:59:56)


Thomas Scherrer Denmark webx.dk
# 4   2008-01-16 02:21:05 STM32 bootloading with UART1
Stewee
Re: STM32 bootloading with UART1

System Bootloader documentation says the STM32 system boot loader autobauds, the PC starts by sending 0x7F, the STM32 bootloader detects the baud rate from this right at the start after boot.

Its disappointing that 115k does not solve the speed problem.

There probably are no revision A 48pin and 100pin chips because revision A is an early engineering samples release.

References;-
System boot mode specification; http://www.st.com/stonline/products/lit … /13801.pdf
Flash loader demonstrator is listed here;   http://www.st.com/mcu/familiesdocs-110.html
Download the demonstrator here;  http://www.st.com/stonline/products/sup … um0462.zip
Get the documentation here; http://www.st.com/stonline/products/lit … /13916.pdf

Last edited by Stewee (2008-01-16 04:08:06)

# 5   2008-01-28 12:25:19 STM32 bootloading with UART1

dalewheat
Re: STM32 bootloading with UART1

I, too, am getting tired of the Flash Demonstrator program.  I use it with the STM3210B-EVAL board at 115200 baud.  To speed things up, I connected COM1 instead of COM2 (because the default is COM1) and use a binary format instead of the Intel hex format, again because that is the program default and it saves me some mouse clicks every time I start up the program.

Some brace soul needs to write a new flash downloader!  I'll start the donations with US$1.  smile

Thanks,

Dale  Wheat

# 6   2008-01-28 20:47:06 STM32 bootloading with UART1
Microfun
Re: STM32 bootloading with UART1

I m using the flash loader with an STM32 eval board and it works fine, the only pain is to activate or desactivate  the read/write protection, and unfortunately the tool don't provide this features, somone can tell me if I can do it manually with the HyperTerminal for example?

Last edited by Microfun (2008-01-28 21:12:59)

# 7   2008-01-29 05:36:04 STM32 bootloading with UART1
Stewee
 

Re: STM32 bootloading with UART1

Please specify how many kbytes were transferred, how long it took, what baud rate you used, which direction data was transferred, and how high or low are your expectations.

As a guide, it should be possible to program 128k in under 20s given a baud rate of 115200 and the flash erase write times specified in the data sheet. Some of the delay would be flash erase/write times {[40ms erase + (256 x 40us write)]x 128 blocks of 1k = 6.4s flash delay}, the rest comms: {128 x 1024 x 10bit / 115200} = 11.4s.

The PC software is only a demo. Scope for improvement may lie in the PC software, in which case Dale is right to suggest one of us could do a better job. The specification is available.  Dale has posted some comments about this on the STM32 forum. Post: http://www.st.com/mcu/forums-cat-6284-23.html

Last edited by Stewee (2008-01-29 06:10:10)

# 8   2008-01-30 22:09:06 STM32 bootloading with UART1
ThomasScherrer
Re: STM32 bootloading with UART1

>Please specify how many kbytes were transferred, how long it took,

10kb in 6 sec, using HEX file as input, 115200 baud, but 5 sec to click and select each time :-)
I am too not happy about the speed, and the user must re-select all things all the time,
I suggest you make the PC bootloader program more friendly to be used as development programmer,
this will animate more users to get started with STM32, since they dont even need to purchase Rlinks or other JTAG
devices to get up and running.
more STM32 freaks = more cool projects= more devices sold = ST happy or not ?


Thomas Scherrer Denmark webx.dk
 
# 9   2008-02-15 19:41:00 STM32 bootloading with UART1
miko
 

Re: STM32 bootloading with UART1

can anywan halp me? haw I can program STM32.  I hav Raisonance RLink bat I can`t programing it, the controller dont runing. plese halp me.

# 10   2008-02-15 20:54:08 STM32 bootloading with UART1

Francis
Re: STM32 bootloading with UART1

If you have a STM32 Primer, there is already a RLink embedded on the Primer, and you don't need any other programmer. If you want to program your own board, you can use the standard Raisonance RLink. You just need to install RIDE7 + the ARM kit (both are on the CD supplied with the Primer).

# 11   2008-02-15 22:13:58 STM32 bootloading with UART1
ThomasScherrer
Re: STM32 bootloading with UART1

hello miko, read post #1 and try all I say there,
the PC sw should be able to connect to the STM32 and you should be able to upload your HEX file,
if you can give us a bit more info like: what board to you have, dev board ? or own hardware ?
have you any sw written ? or you want a test hex file from one of us that blinks with all IO pins and say "hello" on all serial ports ? to prove alive ?
in the beginning you have maybe both hardware and software not working ?
so it is not easy to figure out in what direction to look for solutions.


Thomas Scherrer Denmark webx.dk
 
# 12   2008-02-19 15:04:38 STM32 bootloading with UART1

Re: STM32 bootloading with UART1

hi, thanks for halp. I have raisonance toolkit for the ARM family,  Ride7 with programmer R-Link. The dev board  make myself. I use capabilitie for the JTAG-ARM, This capabilitie works on STR711FR2 bat don`t works on STM32F103C8T6. mabe need other capabilitie or perhaps all controller STM32 iz damaged (I test alreade 3 contollers).
I writing hex file in the controller bat contoller don`t runing. Halp me please. Sory for grammar error. I am from Georgia is Tbilisi. Thanks for all.

# 13   2008-02-19 17:10:52 STM32 bootloading with UART1

ThomasScherrer
Re: STM32 bootloading with UART1

the STM32 device must be connected correctly to the JTAG device !

also you can check the SW with ride7 in the project go into properties,
click on RLINK configuration:
open the advanced dialog, click "connect to RLINK and read serial number"
does that work ?? if not it is simply windows drivers you need to fix and re-install.
if this is ok, I would download a few PDF schematics of development boards, with the same device you use,
and simply see how they did the powersupply and JTAG connections, then it will work,
it is easy to missunderstand the jtag connections.

this thread was ment to talk about serial bootloading, tried all that ?
it is much more simple, you need a crystal eg 8mhz to you STM32 and a serial level converter and handle the BOOT0 pin, as explained


Thomas Scherrer Denmark webx.dk
 
# 14   2008-02-19 18:09:14 STM32 bootloading with UART1
Francis
Re: STM32 bootloading with UART1

FYI: recently we received a board (with STM32) from a customer who reported that RLink was not able to program it. At the end, we found the issue:  the VDDA pin was  not properly powered (VDDA supplies the power for the PLL, the reset block...).  Conclusion: the problem could be again with VCC/VDDA/..

As said by Thomas, RLink manages the communication at different steps.  The "connection to RLink" and the read of the RLink' Serial Number is the very first step. Then, you should try to check whether the IdCode of the STM32 is read. then you could try to erase the chip, then... I suggest that you make these tests with the command line utility: cortex_pgm.exe.

# 15   2008-02-20 14:29:35 STM32 bootloading with UART1

miko
Re: STM32 bootloading with UART1

hello ThomasScherrer, JTAG connected correctly, I read ID and I write soft in to the device, but my cristal iz 14MHz end it dont works, I think it don`t works becaus that in the STM32 integrated 8MHz cristal and it is conected default and it works. if JTAG conected mistake the controler`s ID don`t  be readed yes?. so if I read ID JTAG conected corectly.  mabe need 8MHz cristal or mabe  need other programmer configuration. I have one somebody, if you have  fool corectly simple GPIO test project for STM32F103C8T6 send me please. thanks beforehand.
::misha from tbilisi

# 16   2008-02-20 17:04:31 STM32 bootloading with UART1
ThomasScherrer
Re: STM32 bootloading with UART1

page 45 in the performance datasheet say you can use 4-16MHz crystal
all JTAG systems uses an external clocked syncronious serial connection,
so it dont care at all about your crystal frequency.


Thomas Scherrer Denmark webx.dk

# 17   2008-02-20 17:10:36 STM32 bootloading with UART1

ThomasScherrer
Re: STM32 bootloading with UART1

oh, look at page 48 in the performance datasheet.
the input to the PLL, is typ 8.0MHZ
the max input frequency to the PLL is not TESTET so we dont know if 14MHZ will work
or make some devices unstable,
I suggest you change to 8.0MHz and run all parameters within specified ranges


Thomas Scherrer Denmark webx.dk
# 18   2008-02-20 17:20:45 STM32 bootloading with UART1
ThomasScherrer
Re: STM32 bootloading with UART1

see page 49 of the refference manual !
you simply select the divider PLLXTPRE so your 14 MHz is now 7 into the PLL,
then you can step it up again to all desired frequencies,
some precautions exist when writing to PLL and clock source bits, so see page 57 before trying to change bits.
7 x 10 = 70, but you can not make 48MHz for USB !!
so I assume you dont want to use USB ?
if so you MUST change the crystal to one that can give a PLL running at 48MHz

Last edited by ThomasScherrer (2008-02-20 17:26:51)


Thomas Scherrer Denmark webx.dk
 

点击此处查看原文 >>

系统分类: ARM   |    用户分类:    |    来源: 转贴

评论(0) | 阅读(159)
发表于:2008-4-8 23:00:24
标签:无标签

2

让过去的永远过去

最近发生很多事情

感情上的和工作上的事情

很烦

可是除了烦能有什么用呢?

要解决办法才行

努力吧,加油!

点击此处查看原文 >>

系统分类: 生活点滴   |    用户分类:    |    来源: 无分类

评论(0) | 阅读(154)
发表于:2008-3-25 0:53:43
标签:无标签

1

SKYEYE学习篇之一--环境搭建篇

      skyeye是陈渝在清华大学博士后研究的一个开源的模拟嵌入式硬件的软件,能够在上面实现无硬件平台可实现嵌入式软件平台的开发,正是我们这些没有资金投资的“穷鬼”们。

      软件环境:vmware-RedHat9.0    skyeye-1.2.4_Rel.tar.gz(版本在0.8.0编译的时候不会出错) uClinux-dist-20030522.tar.gz   arm-elf-tools-20040427.sh

     软体准备已经就绪,打开虚拟机,进入红帽9.0,最好是以root的身份进入。

     (在超级终端里操作)

    #cp uClinux-dist-20030522.tar.gz  skyeye-1.2.4_Rel.tar.gz    /usr/src

   #cp arm-elf-tools-20040427.sh  /

  编译环境的搭建

   #cd /

   #sh arm-elf-tools-20040427.sh(安装交叉编译)

skyeye的安装

  #cd /usr/src

  #tar zxvf skyeye-1.2.4_Rel.tar.gz

  #cd skyeye

  # ./configure --target=arm-elf --prefix=/usr/local(这句在0.8.0版本中需要,在1.2.4中不需要此命令)

注意,1.2.4版本中一些bug,需要更正过来,就是ppc_mmu.c中有一段需要注释掉,不太记得了,可以在后面的串口信息看到

  #make  (第一次的时候会在这里出现报错,可以按照提示将报错那段注释掉)

 #make install

编译uclinux

  #cd /usr/src

  #tar zvxf uClinux-dist-20030522.tar.gz

 #cd uClinux-dist

 #make menuconfig

在其中选择GDB/ARMULATOR这个选项,然后保存退出

#make dep

#make

太晚了,明天继续接上

 

点击此处查看原文 >>

系统分类: 嵌入式   |    用户分类:    |    来源: 原创

评论(0) | 阅读(345)
发表于:2008-3-11 20:40:27
标签:无标签

1

菜鸟成长全过程(2)--44B0篇

    昨天买了一个可调电源,可惜是坏的,只有一个5V的电源,但是44B0的板子5v电源是不行的,最后在BLUE兄的指点下把as1117的两个脚短掉了,然后用串口线连接com0口,半天没有打印信息,我一想,肯定是串口线不对了,我的是交叉的串口线,估计要用直连的串口线,后来换了一根直连的串口线,果然OK了,终于可以开始玩转44B0了,纪念下这个时刻!

点击此处查看原文 >>

系统分类: ARM   |    用户分类:    |    来源: 无分类

评论(3) | 阅读(314)
发表于:2008-3-4 22:25:35
标签:无标签

1

菜鸟成长全过程(1)--44B0篇

        上个星期就从BLUE兄那里弄来S3C44B0的板子,板子到我手上的时候缺几个东西:一个20M的晶振运输过程中给折磨得牺牲了,电源需要去重新配一个,LCD屏和44B0的全套资料还没有从BLUE兄手里拿到,主要是BLUE兄最近太忙了,一直搞忘时间。这个星期看看能不能把全套的东西整齐...

 

点击此处查看原文 >>

系统分类: ARM   |    用户分类:    |    来源: 无分类

评论(0) | 阅读(371)
发表于:2008-2-25 23:41:35
标签:无标签

4

【更新中】STM32的资料

STM32datasheet中文版pdf

Using_STM32_Software_Libraryrar

 

STM32F10xxx_Reference_Manual_Chineserar