完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好。
我正在使用可升级的堆栈引导引导程序。我在我的应用程序中使用了示例发射器和堆栈,并且我能够升级固件。我唯一的问题是,我使用一个引脚来保持电源的启用。软件复位后,我的系统关闭,因为引脚不保持高,所以升级固件,我必须把它打开,芯片进入引导装载模式。 我想避免的是,必须再次打开系统,并在收到命令后立即进入引导加载模式。我已经在发射器和堆栈中定义了相同的PIN作为初始状态高的输出,但是PIN不保持其状态。 不管是在复位后保持PIN状态还是在没有软件重置的情况下跳转到Bootloader? 以上来自于百度翻译 以下为原文 Hello. I am using the proc BLE module with the upgradable stack ble bootloader. I used the example launcher and stack in my application and I am able to upgrade the firmware. The only issue I am having is that I use a pin to keep the power supply enabled. After the software reset my system turns off because the pin doesn't stay high, so to upgrade the firmware I have to turn it on again and the chip enters bootloader mode. What I want to avoid is having to turn on the system again and to enter bootloader mode immediately after it receives the command. I already defined the same pin in the launcher and stack as an output with an initial state of high, but the pin is not keeping its state. Is there anyway to keep the pin state high after a reset or is there another way to jump to the bootloader without doing the software reset? |
|
相关推荐
5个回答
|
|
引脚在复位后的高Z,直到配置完成。因此,当使用外部上拉电阻(5K)将保持引脚高。
鲍勃 以上来自于百度翻译 以下为原文 The pins are in high-z after reset until the configuration is done. So when using an external pull up resistor (5K) will keep the pin high. Bob |
|
|
|
我已经实现了类似的功能,使用其他微控制器,他们确实保持他们的引脚状态后,软件重置,所以我认为这也是可能的PSoC而不使用外部电阻器。 以上来自于百度翻译 以下为原文 I have implemented similar functionality using other microcontrollers and they do keep their pin state after a software reset, so I thought it was also possible with psoc without using an external resistor. |
|
|
|
请让我问一个问题。
我知道,电源控制引脚是由过程驱动,成为过程中的复位序列HI-Z。 那么,电源控制信号是如何在开机时播放的呢?谁能供电? 如果将该控制信号重新定义为被拉到VDD的低活动信号以禁用电源,则最好理解该系统。 当做, 诺里基 以上来自于百度翻译 以下为原文 Please let me ask a question. I understand that a power supply control pin is driven by the PRoC BLE which becomes Hi-Z during the PRoC BLE's reset sequence. Then, how do this power supply control signal play during power-on? Who does enable the power supply? If this control signal is re-defined as a LOW-ACTIVE signal pulled up to VDD to disable the power supply, it is better to understand the system. Regards, Noriaki |
|
|
|
电源使能由2个输入控制,即来自PROC和A按钮的信号,该信号连接到电池。 最初,为了打开系统,按钮被按下,这使得电源和第一动作的PRC模块所做的是设置其信号高,以保持电源启用。一旦用户释放按钮,电源就因为模块的信号而保持开启。 该按钮还连接到PROC模块的输入,用于用户操作。例如,为了关闭模块,按钮被按下一定的时间,并且PROC模块将信号设置为低。用户释放按钮后,电源关闭。 输入Bootloader,我将一个值写入BLE特性,程序设置它要进入引导加载程序并重置软件。我前面提到的问题是,信号切换到高阻抗状态,并且不可能将上拉电阻与当前PCB设计连接起来。 我想知道的是,是否有一种方法跳转到引导加载程序,使输出保持很高。 以上来自于百度翻译 以下为原文 The power supply enable is controlled by 2 inputs the signal from the proc and a button, that is connected to a battery. Initially, to turn on the system, the button is pressed this enables the power supply and the first action the proc module does is set its signal high to keep the power supply enabled. Once the user releases the button the power supply remains on because of the signal from the module. The button is also connected to an input of the proc module, for user actions. For example to turn off the module the button is pressed for a certain amount of time and the proc module sets the signal low. After the user releases the button the power supply is turned off. To enter the bootloader, I write a value to a ble characteristic and the program sets that it wants to enter the bootloader and does the software reset. The problem I have, as mentioned before, is that the signal switches to the high impedance state, and it's not possible to connect a pullup resistor with the current pcb design. What I would like to know is if there is a way to jump to the bootloader so that the output remains high. |
|
|
|
lq544 发表于 2018-12-25 12:28 Bootloader组件在其数据表下具有BootloadSeriStad()函数。我会从那里开始。(它确实提到,在成功加载一个新的引导加载映像之后,它会重置该单元)。 以上来自于百度翻译 以下为原文 The Bootloader component has the Bootloader_Start() function under its datasheet. I would start there. (It does mention that it resets the unit upon successful loading of a new bootload image however). |
|
|
|
只有小组成员才能发言,加入小组>>
754个成员聚集在这个小组
加入小组2106 浏览 1 评论
1853 浏览 1 评论
3672 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1788 浏览 6 评论
1536 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
573浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
426浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
439浏览 2评论
389浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
920浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-26 03:52 , Processed in 1.733451 second(s), Total 86, Slave 69 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号