登录 免费注册 首页 | 行业黑名单 | 帮助
维库电子市场网
技术交流 | 电路欣赏 | 工控天地 | 数字广电 | 通信技术 | 电源技术 | 测控之家 | EMC技术 | ARM技术 | EDA技术 | PCB技术 | 嵌入式系统
驱动编程 | 集成电路 | 器件替换 | 模拟技术 | 新手园地 | 单 片 机 | DSP技术 | MCU技术 | IC 设计 | IC 产业 | CAN-bus/DeviceNe

请问st7单片机开发环境和编译器在哪里可下载到?

作者:freewater 栏目:MCU技术
请问st7单片机开发环境和编译器在哪里可下载到?
 
2楼: >>参与讨论
ijk
st7单片机开发环境和编译器
st7单片机开发环境和编译器可以通过如下链接找到:
http://www.stmcu.com/familiesdocs-15.html#Softwaremdt

开发环境使用ST免费提供的STVD7 (V3.3.3),编译器可以使用免费的第3方Cosmic C代码限制的16k版本。

3楼: >>参与讨论
freewater
谢谢!
我将COSMIC下载了,STVD7没找到,
在买RLINK仿真器时应该会附带软件环境吧,
哪位知道在哪里能买到RLINK仿真器,并且最好有技术支持,
我是初学,打算用ST72561AR9,望大家多多指教。

4楼: >>参与讨论
grant_jx
RLink附带的软件有自己的IDE
他们的IDE叫RIDE,界面用起来挺不合习惯。STVD7的下载地址是:URL http://mcu.st.com/mdtfiles/1165244134.exe
V3。3。3,两个IDE都可以支持COSMIC C语言工具链。

因为STVD7下也支持使用RLink在线调试部分ST7 MCU,你可以看看在STVD7下使用RLink在线调试工具支不支持ST72F561AR9。

还有RLink也好、inDart也罢,它们都是在线调试工具,不是仿真器,千万别搞错了!561的好像是带CAN的St7 MCU吧,仿真器应该是STMDT25-DVP3

ST MCU的工具你找ST的分销商可以买到的,如果还需要支持的话,找他们最合适不过,当然也可以找我。





* - 本贴最后修改时间:2006-12-29 22:50:38 修改者:grant_jx

5楼: >>参与讨论
grant_jx
要是支持的话当然可以
我在RLink的支持列表里也看见有,只是多了这么一句话“Limited ICC Debug”,我没有用过561,也没有仔细去找过这句话的含义,你要自己安装RIDE,自己看看。不过不管如何,最不济也能支持编程是不会有问题的。

COSMIC的问题,我这里是他们的代理商,我就不便说话了。



6楼: >>参与讨论
freewater
你对C编译器的使用有何建议?
如果对ST72F561AR9在线调试可能有问题的话,
支持ST72F521AR9吗?
如果用EEPROM AT24C04的话,ST72F561AR9与ST72F521AR9哪个好用?
你对C编译器的使用有何建议?
望指点。
你在哪座城市?

7楼: >>参与讨论
grant_jx
没有建议
我在深圳;

C编译器能用就行,没有什么建议,对于8Bit MCU用的C Compiler,COSMIC支持ST7不算坏,除了它就还剩HIWARE,已经被CodeWarrior收购了;

IIC,软件模拟也好,硬件操作也罢,无非就是一个是时序的匹配,一个是硬件寄存器的操作顺序。底层的读写函数搞定其它代码都是一样。

对于RLink我只是看了它注解里的一句话,并没有实际的SAMPLE做过在线调试的连接测试,这个我不确定;

8楼: >>参与讨论
freewater
再请教你一个问题,谢谢,
ST72561的CAN2.0 PASSIVE 和ST72521的CAN2.0 ACTIVE 一样用吗?
有什么不同?


9楼: >>参与讨论
ijk
CAN2.0 PASSIVE 和 CAN2.0 ACTIVE
CAN2.0 PASSIVE 和 CAN2.0 ACTIVE是不同的。区别如下:

CAN2.0 PASSIVE支持11位的标准报文,但不能正确接收和发送29位的扩展报文,在收到29位的扩展报文时不会出错。
CAN2.0 ACTIVE支持11位的标准报文,也支持29位的扩展报文。


10楼: >>参与讨论
grant_jx
误导,CAN Bus的主动与被动哪是这样理解的?
其时看看协议手册和数据手册就可以明白了:

我们先看看CAN Specification V2.0BOSCH出的:

Page 17  3.1.3 ERROR FRAME


There are 2 forms of an ERROR FLAG: an ACTIVE ERROR FLAG and a PASSIVE
ERROR FLAG.
1. The ACTIVE ERROR FLAG consists of six consecutive ’dominant’ bits.
2. The PASSIVE ERROR FLAG consists of six consecutive ’recessive’ bits unless it
is overwritten by ’dominant’ bits from other nodes.
An ’error active’ station detecting an error condition signals this by transmission of an
ACTIVE ERROR FLAG. The ERROR FLAG’s form violates the law of bit stuffing (see
CODING) applied to all fields from START OF FRAME to CRC DELIMITER or destroys
the fixed form ACK FIELD or END OF FRAME field. As a consequence, all other stations detect an error condition and on their PART start transmission of an ERROR FLAG. So the sequence of ’dominant’ bits which actually can be monitored on the bus results from a superposition of different ERROR FLAGs transmitted by individual stations. The total length of this sequence varies between a MINIMUM of six and a  maximum of twelve bits.

An ’error passive’ station detecting an error condition tries to signal this by transmission
of a PASSIVE ERROR FLAG. The ’error passive’ station waits for six consecutive bits of equal polarity, beginning at the start of the PASSIVE ERROR FLAG. The PASSIVE
ERROR FLAG is complete when these 6 equal bits have been detected.



从上述内容我们知道:
1、错误标记有两种方式。主动错误标志与被动错误标志;
2、主动错误标志由6 个连续的“显性”位组成,被动错误标志由6 个连续的“隐性”的位组成。(显性与隐性的优先级差异,请自行阅读协议的前面章节)


Page62:
“8 FAULT CONFINEMENT
With respect to fault confinement a unit may be in one of three states:
• ’error active’
• ’error passive’
• ’bus off’
An ’error active’ unit can normally take PART in bus communication and sends an ACTIVE ERROR FLAG when an error has been detected.
An ’error passive’ unit must not send an ACTIVE ERROR FLAG. It takes PART in bus communication, but when an error has been detected ONLY a PASSIVE ERROR FLAG is sent. Also after a transmission, an ’error passive’ unit will wait before initiating a further transmission. (See SUSPEND TRANSMISSION)
A ’bus off’ unit is not allowed to have any influence on the bus. (E.g. OUTPUT drivers
switched off.)
For fault confinement two counts are implemented in every bus unit:
1) TRANSMIT ERROR COUNT
2) RECEIVE ERROR COUNT
These counts are MODIFIED according to the following rules:
(note that more than one rule may apply during a given message transfer)
1. When a RECEIVER detects an error, the RECEIVE ERROR COUNT will be increased by 1, except when the detected error was a BIT ERROR during the sending of an ACTIVE ERROR FLAG or an OVERLOAD FLAG.
2. When a RECEIVER detects a ’dominant’ bit as the first bit after sending an ERROR FLAG the RECEIVE ERROR COUNT will be increased by 8.
3. When a TRANSMITTER sends an ERROR FLAG the TRANSMIT ERROR COUNT
is increased by 8.”
上述内容我们知道:
1、错误出现后,检测出“错误主动”CAN通讯设备可以正常地参与总线通讯并在错误被检测到时发出主动错误标志。检测出“错误被动”的CAN通讯设备只允许发送被动错误标志,而且发出错误标志以后出现“错误被动”的CAN节点将在重新初始化之前处于等待状态(参考 SUSPEND TRANSMISSION内容)。

剩下的内容自己看协议书吧,这些都是CAN Bus的基础。





 

11楼: >>参与讨论
ijk
CAN 2.0B active & 2.0B passive - 兼谈ST72561和ST72521
楼上的说法本身没有问题,但是跟问的问题不相干。

先准确描述一下:
ST72561: SUPPORTs CAN protocol version 2.0 A, B Active
ST72521: SUPPORT of CAN specification 2.0A and 2.0B passive

简单一点,我直接google了一下,下面引述找到的说法,有点长,但读了确实有好处:
from www.kvaser.com/can/protocol/canprot2.htm

STANDARD vs. Extended CAN
Originally, the CAN STANDARD defined the length of the Identifier in the Arbitration Field to eleven (11) bits. Later on, customer demand forced an extension of the STANDARD. The new format is often called Extended CAN and allows no less than twenty-nine (29) bits in the Identifier. To differentiate between the two frame types, a reserved bit in the CONTROL Field was used.
The STANDARDs are formally called -

2.0A, with 11-bit Identifiers ONLY,

2.0B, extended version with the full 29-bit Identifiers (or the 11-bit, you can mix them.) A 2.0B node can be

"2.0B active", i.e. it can transmit and receive extended frames, or

"2.0B passive", i.e. it will silently discard received extended frames (but see below.)

1.x refers to the original specification and its revisions.
New CAN controllers today are usually of the 2.0B type. A 1.x or 2.0A type controller
will get very upset if it receives messages with 29 arbitration bits. A 2.0B passive
type controller will tolerate them, acknowledge them if they are correct and then - discard them;
a 2.0B active type controller can both transmit and receive them.

CONTROLlers implementing 2.0B and 2.0A (and 1.x) are compatible - and may be used on the same bus -
as LONG as the controllers implementing 2.0B refrain from sending extended frames!

Sometimes people advocate that STANDARD CAN is "better" than Extended CAN because there is
more overhead in the Extended CAN messages. This is not necessarily true. If you use the
Arbitration Field for transmitting data, then Extended CAN may actually have a lower overhead
than STANDARD CAN has.

* - 本贴最后修改时间:2007-1-3 10:23:58 修改者:ijk

12楼: >>参与讨论
grant_jx
楼上的,看来是我理解错了需要回答的问题内容

1、我看了ST提供的应用笔记:《ST7 pCAN PERIPHERAL DRIVER》

在Page12,1.6.1章节有提到:
The ST7 pCAN peripheral implements a CAN 2.0B passive protocol. This means that extended frames are recognized and acknowledged, but cannot be saved nor processed by the microcontroller.

CAN 2.0B 被动协议,仅能支持扩展帧的识别和应答!


2、在ST72F521的datasheet Page130

10.8.3.1 Frame Formats
A summary of all the CAN frame formats is given in Figure 69 for reference. It covers ONLY the STANDARD frame format since the extended one is ONLY acknowledged.

3、我找了一下CAN Specification v2  以passive为关键字搜索,没有找到与协议有关的信息,都是被动错误标识。看来我要去BOSCH的网址上找找CAN协议的其他资料充充电了。

13楼: >>参与讨论
gower
cosmic c编译器
下载st的cosmic c编译器,可以到下面下载:
http://www.cosmic-software.cn/st7_des.htm

14楼: >>参与讨论
gyt
不错
有收获

15楼: >>参与讨论
sean2006
我们公司的R&D可以帮到你 上海益登-ST代理
关于开发环境等事宜,可以来电咨询,或MSN
联络:62372233*309 葛
mail/MSN:npgxw@hotmail.com
www.edom-tech.com

参与讨论
昵称:
讨论内容:
 
 
相关帖子
请问STR730F系统的这四种芯片哪种好买到?
STARM9 是否很难采购呢?
请问上海有ST7的代理吗?
ST的超低成本开发工具为最小的8引脚微控制器创建应用
请问:用IAR 440A SIMULATOR 时,如何调试STR711的中断?
免费注册为维库电子开发网会员,参与电子工程师社区讨论,点此进入


Copyright © 1998-2006 www.dzsc.com 浙ICP证030469号