完善资料让更多小伙伴认识你,还能领取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. |
|
|
|
|
只有小组成员才能发言,加入小组>>
stm32mp157的异核通信的rpmsg_sdb的m4固件和a7驱动该如何编写?
1453 浏览 0 评论
stm32f103用freertos对一个采样率为1kHz的传感器,进行采样,数据出差
1502 浏览 0 评论
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
3649 浏览 1 评论
3842 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
2461 浏览 1 评论
STM32H7打开DCache后,出现了串口接收信息为空的现象,是哪里出了问题?
727浏览 5评论
用NANO STM32F103RBT6的开发板烧录不了是哪里出了问题?
661浏览 5评论
710浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
941浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
745浏览 5评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 05:41 , Processed in 0.546835 second(s), Total 44, Slave 37 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
5029