完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
|
嗨,
我正在尝试运行一个示例程序 - BLE_Sensor DEMO - 从源代码构建。 我正在使用TrueSTUDIO for STM32(v.9.0.0)。这些消息来自BlueNRG-1.2_DK_2.6.0套件。不幸的是,当我下载图像时,电路板什么都不做:没有LED闪烁,没有BLE通信。 但是,当我下载预构建的图像(从开发工具包中的Firmware文件夹)时,它工作正常。 我做错了什么? 亲切的问候, 彼得· 以上来自于谷歌翻译 以下为原文 Hi, I'm trying to run an example program - BLE_Sensor DEMO - built from sources. I am using TrueSTUDIO for STM32 (v.9.0.0). The sources are from BlueNRG-1.2_DK_2.6.0 kit.Unfortunatelly, when I download the image, the board does nothing: no led blinking, no BLE communication. However, when I download prebuilt image (from Firmware folder in the development kit) it works fine. What I am doing wrong? Kind regards, Piotr |
|
相关推荐
25个回答
|
|
|
你好杰伊,
谢谢截图。我想你有一个BLUENRG项目,或者?你能为BLUENRG-1制作工作软件吗? 这是我的链接器选项: -mthumb -T'.. BlueNRG1.ld'-specs = nosys.specs -nostartfiles -nodefaultlibs -static -L .. .. .. .. .. .. Library Bluetooth_LE library - L'..'- WI,-cref,-u,-Xlinker, - defsym = ST_LINKER_OPTION = 1'-Wl,-Map = $ {BuildArtifactFileBaseName} .map'-WI, - gc-sections -Wl, - -defsym = malloc_getpagesize_P = 0x80 -Wl, - start-group -lc -lm -Wl, - end-group -mcpu不包括在内。 这是SW在BLUENRG-1上无法启动/崩溃的原因吗? 问候, 罗伯特 以上来自于谷歌翻译 以下为原文 Hi Jay, Thanks for screenshot. I think you have a BLUENRG-project, or? Can you build working SW for BLUENRG-1? Here my linker options: -mthumb -T'..BlueNRG1.ld' -specs=nosys.specs -nostartfiles -nodefaultlibs -static -L............LibraryBluetooth_LElibrary -L'..' -Wl,-cref,-u,-Xlinker,--defsym=ST_LINKER_OPTION=1 '-Wl,-Map=${BuildArtifactFileBaseName}.map' -Wl,--gc-sections -Wl,--defsym=malloc_getpagesize_P=0x80 -Wl,--start-group -lc -lm -Wl,--end-group -mcpu is not included. Is this the reason why the SW does not start/crash on BLUENRG-1? Regards, Robert |
|
|
|
|
|
罗伯特,杰伊,
仅供参考,下面您可以找到我的链接器设置。 我成功构建并运行了BlueNRG-1的BLE_SensorDemo。它适用于idb007v1板。请注意,没有那个cortex-m0设置链接器使用不正确的libc库。 -mthumb -T'.. BlueNRG1.ld'-specs = nosys.specs -nostartfiles -nodefaultlibs -static -L .. .. .. .. .. .. Library Bluetooth_LE library - L'..'- WI,-cref,-u,-Xlinker, - defsym = ST_LINKER_OPTION = 1'-Wl,-Map = $ {BuildArtifactFileBaseName} .map'-WI, - gc-sections -Wl, - -defsym = malloc_getpagesize_P = 0x80 -Wl, - start-group -lc -lm -Wl, - end-group 顺便问一下,你使用的是什么版本的Atollic? 问候, 彼得· 以上来自于谷歌翻译 以下为原文 Robert, Jay, Just for reference, below you may find my setting for linker. I successfully built and run BLE_SensorDemo for BlueNRG-1. It worked on idb007v1 board.Please note, that without that cortex-m0 settings linker uses incorrect libc library. -mthumb -T'..BlueNRG1.ld' -specs=nosys.specs -nostartfiles -nodefaultlibs -static -L............LibraryBluetooth_LElibrary -L'..' -Wl,-cref,-u,-Xlinker,--defsym=ST_LINKER_OPTION=1 '-Wl,-Map=${BuildArtifactFileBaseName}.map' -Wl,--gc-sections -Wl,--defsym=malloc_getpagesize_P=0x80 -Wl,--start-group -lc -lm -Wl,--end-group By the way, what version of Atollic do you use? Regards, Piotr |
|
|
|
|
|
再说一遍。我们应该在构建期间比较控制台窗口中的设置,因为这是传递给GCC的。其他设置(来自灰色设置窗口)可能与此不同,因为Atollic可以更改或扩展。
所以,我从控制台的链接器行是: arm-atollic-eabi-gcc -o Release.elf Hal clock.o Hal context_switch.o Hal osal.o Hal sleep.o Library BlueNRG1_adc.o Library BlueNRG1_dma.o Library BlueNRG1_flash.o Library BlueNRG1_gpio .o Library BlueNRG1_i2c.o Library BlueNRG1_mft.o Library BlueNRG1_pka.o Library BlueNRG1_rng.o Library BlueNRG1_rtc.o Library BlueNRG1_spi.o Library BlueNRG1_sysCtrl.o Library BlueNRG1_uart.o Library BlueNRG1_wdg.o Library misc的.o SDK_Eval_BlueNRG1 LPS25HB.o SDK_Eval_BlueNRG1 LSM6DS3.o SDK_Eval_BlueNRG1 SDK_EVAL_Button.o SDK_Eval_BlueNRG1 SDK_EVAL_Com.o SDK_Eval_BlueNRG1 SDK_EVAL_Config.o SDK_Eval_BlueNRG1 SDK_EVAL_I2C.o SDK_Eval_BlueNRG1 SDK_EVAL_Led.o SDK_Eval_BlueNRG1 SDK_EVAL_SPI.o启动 system_bluenrg1.o用户 BlueNRG1_it .o User SensorDemo_main.o User gatt_db.o User sensor.o 问候, 彼得· 以上来自于谷歌翻译 以下为原文 Just one more note. We should compare setting that are in console window during the build, beacause this is what is passed to GCC. Other settings (from grey setting window) may differ from that because Atollic can alter it or extend. So, my linker line from console is: arm-atollic-eabi-gcc -o Release.elf Halclock.o Halcontext_switch.o Halosal.o Halsleep.o LibraryBlueNRG1_adc.o LibraryBlueNRG1_dma.o LibraryBlueNRG1_flash.o LibraryBlueNRG1_gpio.o LibraryBlueNRG1_i2c.o LibraryBlueNRG1_mft.o LibraryBlueNRG1_pka.o LibraryBlueNRG1_rng.o LibraryBlueNRG1_rtc.o LibraryBlueNRG1_spi.o LibraryBlueNRG1_sysCtrl.o LibraryBlueNRG1_uart.o LibraryBlueNRG1_wdg.o Librarymisc.o SDK_Eval_BlueNRG1LPS25HB.o SDK_Eval_BlueNRG1LSM6DS3.o SDK_Eval_BlueNRG1SDK_EVAL_Button.o SDK_Eval_BlueNRG1SDK_EVAL_Com.o SDK_Eval_BlueNRG1SDK_EVAL_Config.o SDK_Eval_BlueNRG1SDK_EVAL_I2C.o SDK_Eval_BlueNRG1SDK_EVAL_Led.o SDK_Eval_BlueNRG1SDK_EVAL_SPI.o Startupsystem_bluenrg1.o UserBlueNRG1_it.o UserSensorDemo_main.o Usergatt_db.o Usersensor.o Regards, Piotr |
|
|
|
|
|
有用!非常感谢!
我的错误:我用逗号添加-mcpu选项 - >错误 -Wl,-cref,-u,-Xlinker, - defsym = ST_LINKER_OPTION = 1-MCPU =皮质-M0 没有逗号(只有空格) - >好 -Wl,-cref,-u,-Xlinker, - defsym = ST_LINKER_OPTION = 1-MCPU =皮质-M0 现在我可以使用TrueStudio 9.0.0构建正在运行的SW 非常感谢! 问候, 罗伯特 以上来自于谷歌翻译 以下为原文 It works! Thanks a lot! My mistake: I added -mcpu option with a comma -> Error -Wl,-cref,-u,-Xlinker,--defsym=ST_LINKER_OPTION=1-mcpu=cortex-m0 without comma (only space) -> OK -Wl,-cref,-u,-Xlinker,--defsym=ST_LINKER_OPTION=1-mcpu=cortex-m0 Now I can build running SW with TrueStudio 9.0.0 Thanks a lot! Regards, Robert |
|
|
|
|
|
感谢您分享此解决方案@Piotr Romaniuk(社区会员),@ Robert Scholz(社区会员),为我工作。
(问题仍然存在于BlueNRG-1_2 DK 3.0.0中。) 以上来自于谷歌翻译 以下为原文 Thanks for sharing this solution @Piotr Romaniuk (Community Member) , @Robert Scholz (Community Member) , works for me. (The problem still exists in BlueNRG-1_2 DK 3.0.0.) |
|
|
|
|
|
谢谢大家详细介绍这个问题!
我同意即使使用BlueNRG-1_2 DK 3.0.0。和TrueStudio 9.0.1即使它们看起来构建和加载没有错误,也不会运行开发工具包BLE示例。 使用上述-mcpu = cortex-m0选项可以立即解决问题。在我的例子中,我将它添加到Assembler和Linker工具选项中。 -mcpu = cortex-m0 optoion已经在BlueMS App兼容示例的编译器选项中。 我不认为我会自己想出这个。再次感谢你! 以上来自于谷歌翻译 以下为原文 Thank you all for presenting this issue in detail! I agree that even with BlueNRG-1_2 DK 3.0.0. and TrueStudio 9.0.1 none of the dev kit BLE examples will run even though they appear to build and load without error. Using the -mcpu=cortex-m0 option as described above instantly fixes the problem. In my case I added it to the Assembler and Linker tool options. the -mcpu=cortex-m0 optoion was already in the Compiler options for the BlueMS App compatible example. I do not think I would have ever figured this out on my own. Thank you again! |
|
|
|
|
只有小组成员才能发言,加入小组>>
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的开发板烧录不了是哪里出了问题?
663浏览 5评论
710浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
941浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
745浏览 5评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 08:40 , Processed in 0.621610 second(s), Total 53, Slave 46 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
2704