• 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
返回

电子发烧友 电子发烧友

  • 全文搜索
    • 全文搜索
    • 标题搜索
  • 全部时间
    • 全部时间
    • 1小时内
    • 1天内
    • 1周内
    • 1个月内
  • 默认排序
    • 默认排序
    • 按时间排序
  • 全部板块
    • 全部板块
大家还在搜
  • 在哪里可以学习Harmony?

    我想用PIC32开始一个新项目,我想用Harmony,但是网上没有教程,如果没有适当的指导,新的项目结构很难理解。我相当新编程PICS(去年开始)

    2019-09-11 08:42

  • 没有BSP很难设置USB端口

    我开始研究和声和PIC32。我有一个PIC32 ESK II,我正在练习它。我有和声V1.10,我玩了一些示例代码,它工作得很好。现在我试图在BSP文件的帮助下创建一个项目,就像我从头开始启动一个硬件项目一样。我做的第一件事是玩PLBIX端口和板发光二极管,很好。然后我玩计时器,创建两个计时器中断来改变LED,也很好。我现在正试图让USB端口工作。我想做的是让USB作为CDC工作,因为它很容易用串行终端仿真器与固件进行交互。我做的第一件事是为USB SK2打开示例代码,CDC*COMLPORTIONSOUNT。演示代码工作得很好。我花了一些时间试图理解代码,状态机是如何工作的,我有点理解它。然后我尝试在我的项目上启用USB端口。我遵循了演示代码的所有配置,并应用到我的代码中,复制了状态机,但是USB没有出现在计算机上。我做了一个测试,我把BSP加载到我的项目上,用于USB SK2,然后USB在计算机上工作。我搜索了BSP不同于我对项目的配置,但是我找不到它。我想知道是否有人能帮助我找出我的代码有什么问题,如果需要的话,我可以把项目上传到某个地方,我只是不知道该去哪里寻找。可能是一个简单的错误,但因为我是新的PIC32和和谐,这对我来说是非常困难的。谢谢任何帮助! 以上来自于百度翻译 以下为原文 Hello I'm starting to study about Harmony and PIC32. I have a PIC32 ESK II and I'm practicing with it. I have Harmony v1.10, and I played with some example code, and it worked fine. Now I'm trying to create a project without the help of the BSP file, like if I was starting a hardware project from scratch. The first thing I did was playing with PLIB_PORTS and the board LEDs, just fine. Then I played with Timer and created two Timers interrupts to change the LEDs, just fine too. I'm stuck now trying to make the USB port to work.What I would like to do is to make the USB work as a CDC, because it makes it very easy to interact with the firmware using a serial terminal emulator. The first thing I did was to open the example code for USB SK2, cdc_com_port_single. The demo code worked just fine. I spent some time trying to understand the code, how the state machine works, and I kinda understood it. I then tried to enable the USB port on my project. I followed all the configs the demo code have, and applied to my code, copyed the state machine, but the USB does not appear on the computer. I made a test, I loaded the BSP on my project for USB SK2, and then the USB worked on the computer. I searched for what the BSP is different from the configuration I made to my project, but I can't find it.I would like to know if somebody could help me finding what's wrong with my code, if needed I can upload the project somewhere, I simply doesn't know where to look for it. Probably is a simple mistake, but as I'm new to PIC32 and Harmony, this is getting very hard to me. Thanks for any help!

    2019-05-10 14:18