完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我有一个应用程序要求使用STM32F107在线编程多个STM8S器件,因此我必须在STM32F107上实现SWIM协议。我已经在STM8 Value Line Discovery板上的STM32F103部分中请求了SWIM驱动程序的源代码,但ST已经拒绝了。
有没有人在STM32部分(或任何嵌入式微控制器)上实现SWIM协议?你愿意分享源代码吗? 谢谢 #游泳STM8 以上来自于谷歌翻译 以下为原文 I have an application requiring the use of an STM32F107 to program a number of STM8S parts in-circuit, therefore I must implement the SWIM protocol on the STM32F107. I have requested the source code for the SWIM driver in the STM32F103 part that is on the STM8 Value Line Discovery board, but ST has declined. Has anyone implemented the SWIM protocol on and STM32 part (or any embedded microcontroller)? Would you be willing to share the source code? Thanks #swim-stm8 |
|
相关推荐
3个回答
|
|
你好
有点 - 我正在努力。 不,我无法分享。这是我正在开发的商业开发,因此我无法泄露任何源代码,抱歉。 但是我可以给你提示如何去做。 SWIM位的时间意味着尝试咬一下它是不切实际的。 STM32内部的定时器具有PWM模式,可用于生成1/0脉冲。 我还没有发现使用单个计时器进行写入和读取都是可能的。 我们的设计使用1个定时器进行写入(将定时器设置为PWM输出) 和另一个读取计时器(设置计时器为输出比较) 我还必须使SWIM驱动程序在多任务系统(FreeRTOS)中工作,因此实现大量构建在ISR和ISR内的状态机上。 以上来自于谷歌翻译 以下为原文 Hi Sort of - I am working on it. No, I cannot share it. This is a commercial development I am working on so I cannot give away any of the source code, Sorry. I can however give you hints on how to go about it. The timing of the SWIM bits means it is impractical to try and bit bang it. The timers inside the STM32 have a PWM mode which can be used to generate the 1/0 pulses. I have not found it possible to use a single timer to do both write and read. Our design uses 1 timer for write (set timer up as PWM output) and another timer for read (set timer up for output compare) I also had to make the SWIM driver work in a multi-tasking system (FreeRTOS) so the implementation is heavily built on the ISR and a state machine within the ISR. |
|
|
|
versaloon网站似乎离线了。目前,围绕SWIM的OpenOCD列表有一些努力。加入讨论。
https://sourceforge.net/p/openocd/mailman/openocd-devel/?viewmonth=201701 以上来自于谷歌翻译 以下为原文 The versaloon website seems offline. At the moment, there is some effort on the OpenOCD list around SWIM. Join the discussion. https://sourceforge.net/p/openocd/mailman/openocd-devel/?viewmonth=201701 |
|
|
|
仅供参考:STlink程序员固件加密已被破坏,因此您可以轻松获取固件。如果您熟悉ASM,您可以快速了解它们是如何实现的。
以上来自于谷歌翻译 以下为原文 FYI: the STlink programmers firmware encryption had been broken, so you could easily get the firmwares. If you are familiar with ASM you could quiclky get an overview how they implemented it. |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2730 浏览 1 评论
3239 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1808 浏览 1 评论
3647 浏览 6 评论
6035 浏览 21 评论
1339浏览 4评论
198浏览 3评论
对H747I-DISCO写程序时将CN2的st-link复用为usart1,再次烧录时无法检测到stlink怎么解决?
350浏览 2评论
STM32G474RE芯片只是串口发个数据就发烫严重是怎么回事?
442浏览 2评论
STM32处理增量式编码器Z信号如何判断中断是正转的还是反向转的?
273浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 06:02 , Processed in 1.272725 second(s), Total 80, Slave 64 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号