Issue: Going to "HardFault_HandlerC" while debugging

28篇帖子/ 0新
Last post
Premkumar.
Offline
最后一次露面:5 years 1 month ago
Joined:2015-12-16 05:45
Issue: Going to "HardFault_HandlerC" while debugging

I am using SDK 5.0.3 software on DA14583DEVKT-B board.
I have taken the "ble_app_peripheral" (BLE example projects given).
在执行函数“app_dis_init()”时,控件将在“hardfault_handlerc()”中“。
Only "return" instruction is there inside the "app_dis_init()".
我无法确定它在执行“app_dis_init()”函数时它将进入异常处理程序的原因。
If I am commenting the "app_dis_init()" function, it is not going the exception handler and I am able to see the device name on the mobile.

请帮我解决这个问题。
请找到附加的屏幕镜头供您参考

设备:
mt_dialog.
Offline
最后一次露面:2个月2周前
Staff
Joined:2015-06-08 11:34
嗨premkumar,

嗨premkumar,

Have you made any changes to the app_dis_init() ? Can you please try to download the example projects as is, in order to check if the same incident occurs?

谢谢mt_dialog.

Premkumar.
Offline
最后一次露面:5 years 1 month ago
Joined:2015-12-16 05:45
Hi,

Hi,
I have taken example projects (both "Blinky" and "ble_app_peripheral"). These two projects are working in Keil.
I have done set up for eclipse by using the makefile and GCC. It is working for "Blinky" project.
但对于“BLE_APP_PERITERALAL”,它显示在链接与内存相关的错误以及附加文档以供参考。
1. __exe/Dialog_DA14583.axf section `.constdata' will not fit in region `RAM_IROM4'
2. Section ER_IROM5 loaded at [20000440,2000552f] overlaps section .constdata loaded at [200003e4,200005eb]
3. Region `RAM_IROM4' overflowed by 428 bytes.

链接器脚本文件中的内存部分:
OTP(R):源= 0x00040000,长度= 0x8000
RETENTION_RAM2 (rw) : ORIGIN = 0x00080768, LENGTH = 0x2968
RAM_IROM1 (rwx) : ORIGIN = 0x20000000, LENGTH = 0x0160
RAM_IROM2(RWX):源= 0x20000160,长度= 0x0160
RAM_IROM3 (rwx) : ORIGIN = 0x200002C0, LENGTH = 0x0080
RAM_IROM4 (rwx) : ORIGIN = 0x20000340, LENGTH = 0x0100
RAM_IROM5(RWX):源= 0x20000440,长度= 0x7ac0
RAM_RW_IRAM51 (rw) : ORIGIN = (0x20009000 - (1024 + 12)), LENGTH = (1024 + 12)
RAM_RW_IRAM52(R):源= 0x20009000,长度= 0x0020
RAM_RW_IRAM53(RW):源= 0x20009020,长度= 0x01E0
RAM_RW_IRAM54 (rw) : ORIGIN = 0x20009200, LENGTH = 0x0600

我用DA14583DEVKT-B。如果我改变了我mory range in the linker script (as show in below), able to generate the target files but code is not working.
OTP(R):源= 0x00040000,长度= 0x8000
RETENTION_RAM2 (rw) : ORIGIN = 0x00080768, LENGTH = 0x2968
RAM_IROM1 (rwx) : ORIGIN = 0x20000000, LENGTH = 0x0160
RAM_IROM2(RWX):源= 0x20000160,长度= 0x0160
RAM_IROM3 (rwx) : ORIGIN = 0x200002C0, LENGTH = 0x0080
RAM_IROM4(RWX):源= 0x20000340,长度= 0x0300
RAM_IROM5(RWX):源= 0x20000640,长度= 0x7ac0
RAM_RW_IRAM51 (rw) : ORIGIN = (0x20009000 - (1024 + 12)), LENGTH = (1024 + 12)
RAM_RW_IRAM52(R):源= 0x20009000,长度= 0x0020
RAM_RW_IRAM53(RW):源= 0x20009020,长度= 0x01E0
RAM_RW_IRAM54 (rw) : ORIGIN = 0x20009200, LENGTH = 0x0600

请帮我解决这个问题。
I have seen the "sysram_case23.ini" in the keil, what is the significance of this .ini file.
任何支持文档,它都将帮助我解决内存问题并设置Eclipse。

Attachment:
ankitdaf.
Offline
最后一次露面:2年9个月前
Joined:2015-09-03 20:14
嗨premkumar.

嗨premkumar.

我想做同样的事情,面对类似的东西。我能够结束它,但现在面对其他问题。您对比较笔记有兴趣吗?它可能有助于我们俩都取得了成本,让所有东西都奔跑

What say ?

mt_dialog.
Offline
最后一次露面:2个月2周前
Staff
Joined:2015-06-08 11:34
嗨premkumar,

嗨premkumar,

对不起,但目前我们只支持Keil而不是DA14580上的Eclipse。请检查doc an-b-024.pdf,也许您会发现它有用。

Thansk MT_dialog

Premkumar.
Offline
最后一次露面:5 years 1 month ago
Joined:2015-12-16 05:45
Hi,

Hi,
I have taken example BLE peripheral code in keil uVision. I couldn't identify, where application code needs to be changed to send the data (i.e. some bytes of information) from DA14583DEVKT-B to mobile app. Could you please provide any document to understand how to change the application. Presently, I am using SDK 5.0.3 software on DA14583DEVKT-B board.
Please provide software guide document for SDK 5.0.3.

mt_dialog.
Offline
最后一次露面:2个月2周前
Staff
Joined:2015-06-08 11:34
嗨premkumar,

嗨premkumar,

app_ble_peripheral,使用自定义配置文件才能与移动应用程序交互。如果要从外围设备发送数据,则会从您的手机中指示它(含义读取特征,或者写入要发送通知或指示的特征的配置)。在适当的特性指示时被调用的所有处理程序都位于User_custs1_impl.c中。例如,在指定的项目中,如果写入CUST1_IDX_CONTROL_POINT_VAL特性(由中央发送)除了0,则在写入CUST1_IDX_CONTROL_POINT_VAL特性时调用函数user_custs1_ctrl_wr_ind_handler()。固件启动软件计时器。当计时器经过发送通知(更新Cust1_DX_ADC_VAL_VAL_1_VAL的值)时,才会在中央启用通知时由中心接收通知。有关SDK5的更多信息和示例可以在UM-B-050.PDF中找到。

谢谢mt_dialog.

Premkumar.
Offline
最后一次露面:5 years 1 month ago
Joined:2015-12-16 05:45
Hi,

Hi,
I have observed jump_table_base[ ] (array) in "jump_table.c" file. What is the use of this array (i.e. jump_table_base[ ]).
Temporary files getting created while compiling app_ble_peripheral project. Why it is creating these temp files.
请找到屏幕截图作为附件的地图文件,在那里显示临时文件。

Please give information about the purpose of jump table concept and "rom_symdef.txt"

Attachment:
Premkumar.
Offline
最后一次露面:5 years 1 month ago
Joined:2015-12-16 05:45
Hi,

Hi,
I couldn't access the link for UM-B-050.pdf, which is available in the forums.
Please help me to access the UM-B-050.pdf.

mt_dialog.
Offline
最后一次露面:2个月2周前
Staff
Joined:2015-06-08 11:34
嗨premkumar,

嗨premkumar,

About the jump table please have a look at this posthttp://support.dialog-semiconductor.com/jumptablebase88also regarding the jump table, its usage is mainly to overide functions in ROM, if you want for instance the ROM code not to use the default function (the one located in the jump table), you can implement your own function in RAM and overide the function in ROM through the jump table, the rom_sym_def.txt file includes all the symbols from functions that are located in the ROM memory. I am not aware for the files that are created in eclipse.

If you have tried to access the document then you should have accepted and submitted the terms and conditions for using the software and the documents. It takes a couple of days for the admin to grand your access to the documents. Just be a bit patient and your access will be granded.

谢谢mt_dialog.

Premkumar.
Offline
最后一次露面:5 years 1 month ago
Joined:2015-12-16 05:45
Hi,

Hi,
我无法访问UM-B-050.PDF。请提供访问它的链接。
请提供DA14583用户手册的链接。

mt_dialog.
Offline
最后一次露面:2个月2周前
Staff
Joined:2015-06-08 11:34
嗨premkumar,

嗨premkumar,

Have you accepted the terms and conditions when you 've tried to donwload the SDK and the user manuals in order for access to be granted ?

谢谢mt_dialog.

Premkumar.
Offline
最后一次露面:5 years 1 month ago
Joined:2015-12-16 05:45
Hi,

Hi,
我已访问对话框中的某些链接。雷竞技电竞平台我在导航时没有找到任何条款和条件。只是我找到了左侧的订阅按钮。我已经订阅了这一点。请找到附件供您参考。

我可能无法访问正确的链接。请向我提供访问UM-B-050.PDF和DA14583(即参考手册)的用户手册的链接。请简要介绍访问文件的程序。

Attachment:
mt_dialog.
Offline
最后一次露面:2个月2周前
Staff
Joined:2015-06-08 11:34
嗨premkumar,

嗨premkumar,

The procedure is quite simple you just click on the link you want to access and if your access is granted then you can see the document, if your access isn't granted then the terms and conditions dialog should appear. After accepting this your request goes through the admin in order to grand you access to the portal (the procedure takes a couple of days). Please check the links of the documents below. We dont have a request in our system at the moment. Try to access the links i provided, and check if you can download the documents.

http://support.dialog-semicondiondiondum/resource/um-b-050-da1458x-softwa ...

http://support.dialog-semiconductor.com/resource/da14583-datasheet

谢谢mt_dialog.

Premkumar.
Offline
最后一次露面:5 years 1 month ago
Joined:2015-12-16 05:45
Hi,

Hi,
In the 2nd link, I can able to see the Datasheet.pdf link and also able to open the pdf. But after clicking the 1st link, it showing the page as in attachment. It is not showing any terms and conditions.

请帮助我进入第一个链接。

Attachment:
JE_Dialog
Offline
最后一次露面:1个月1周前
Staff
Joined:2013-12-05 14:02
嗨premkumar,can you go to

嗨premkumar,can you go to the DA14580 product, Software & Tools and click on padlock icon next to the SDK or its release notes (top items). This should open up the SDK access request.

BR JE_Dialog

Premkumar.
Offline
最后一次露面:5 years 1 month ago
Joined:2015-12-16 05:45
Hi,

Hi,
我正在使用Keil UVision(MDK-Lite,评估版)在DA14583DEVKT-B板上工作。调试时,我无法在调试窗口中看到外围设备和所有特殊功能寄存器(包括I2C)。并且还无法使用逻辑分析器来查看端口引脚上的逻辑变化。

Please give the information, how I can use the special function registers to debug the I2C.

mt_dialog.
Offline
最后一次露面:2个月2周前
Staff
Joined:2015-06-08 11:34
Hi Premukar,

Hi Premukar,

我们没有为580提供带寄存器地图/系统查看器的.srf文件。但我想你可以通过内存窗口观看你的寄存器。

谢谢mt_dialog.

Premkumar.
Offline
最后一次露面:5 years 1 month ago
Joined:2015-12-16 05:45
Hi,

Hi,
我能够通过内存窗口看到寄存器。我想写i2c驱动程序。从现在的EEPROM驱动程序可用,但需要编辑与其他IC(即IC具有I2C接口)的接口。

I am able to send the slave address and write bit on the I2C lines. But I am not able to send any data bytes on the I2C lines.

The following instructions not showing any effect on the "I2C_DATA_CMD_REG" register (i.e. location 0x50001310)
SEND_I2C_COMMAND(0x01AA); // Set R/W bit to 1 (read access)
或者
send_i2c_command(0xd0);
执行上面的指令后,我不是ble see any change in the "I2C_DATA_CMD_REG" register value

Please help me to resolve this issue. Please share if any generic I2C driver is available for dailog (for read and write operations).

Please give any document to know I2C working in the Dialog to understand the FIFO.

mt_dialog.
Offline
最后一次露面:2个月2周前
Staff
Joined:2015-06-08 11:34
Hi premkumar,

Hi premkumar,

There isn't any other official I2C driver for the 580 other than the eeprom driver but there is extensive explanation of how the driver operates on some related i2c posts on the forum. Please check the following links.

http://support.dialog-seminile.com/multiple-byte-read-i2c.

http://support.dialog-semiconductor.com/documentation

谢谢mt_dialog.

Premkumar.
Offline
最后一次露面:5 years 1 month ago
Joined:2015-12-16 05:45
Hi,

Hi,
我无法使用闪光来保留我的应用程序代码。
目前,“scatterfile_common.sct”仅包含有限的内存范围。我认为只映射到RAM区域(42KB,从0x20000000开始)。
Please provide the information about the base addresses of different memory areas (ROM, OTP, System SRAM, Retention RAMs and Flash)

我需要在keil中的分散文件或内存部分地址中更改的任何事情,以使用ROM和Flash(即1 Mbit)区域。

请指导我根据要求使用不同的内存部分。

mt_dialog.
Offline
最后一次露面:2个月2周前
Staff
Joined:2015-06-08 11:34
嗨premkumar,

嗨premkumar,

You can find the needed information about the base addresses in the 580 and scatter file info in the document UM-B-011: User Manual - DA14580 Memory map and scatter file.

谢谢mt_dialog.

Premkumar.
Offline
最后一次露面:5 years 1 month ago
Joined:2015-12-16 05:45
Hi,

Hi,
I have gone through the document UM-B-011, but there is no information about how to use 1 Mbit Flash memory and OTP available in the DA14583.
Booting sequence is not provided in the datasheet of the DA1458x. Please share the document to understand the booting sequence.

Please give help me to use the flash to write my application and OTP.

mt_dialog.
Offline
最后一次露面:2个月2周前
Staff
Joined:2015-06-08 11:34
Hi Premukar,

Hi Premukar,

You can see the booting sequence of the 14583 in the UM-B-012 Creation of a secondary bootloader section 5. The example projects are compatible with using the da14583, you just have to build them by using the 583 option. You can use Smart Snippets with the 14583 as well and burn the Flash, just make sure to select the proper configuration of the SPI pins (selecting 14583 should choose the right pins but you can also check the selected pins from the board setup). If you want to interact with the flash you can have a look at the proximity example where it uses the SUOTA profile in order to initialize, to enable and interact with the internal flash. Using the internal flash on 14583 doesn't require a special driver just the right pins.

谢谢mt_dialog.

Premkumar.
Offline
最后一次露面:5 years 1 month ago
Joined:2015-12-16 05:45
Hi,

Hi,
我试图使用智能片段工具将Blinky.hex加载到嵌入式SPI Flash中。我能够连接,但无法将应用程序代码加载到嵌入式SPI闪光灯中。

连接时我正在收到以下消息:
[info @ 16-02-18 17:12:36]开始下载程序...
[ACTION @16-02-18 17:12:37] Please press the hardware reset button on the board to start the download process.
[info @ 16-02-18 17:12:40]重置检测到
[INFO @16-02-18 17:12:42] Successfully disconnected from port COM12.
[info @ 16-02-18 17:12:42]与COM12端口的连接已成功打开。
[INFO @16-02-18 17:12:42] Successfully disconnected from port COM12.
[INFO @16-02-18 17:12:42] Successfully downloaded firmware file to the board.
[信息@ 16-02-18 17:12:42]成功配置了SPI闪存端口和引脚。

Please give the procedural step need to follow to down load the application Image into Embedded SPI flash.
我无法做任何像燃烧和抹掉的操作。智能代码段显示错误消息,同时启动刻录和擦除操作。

在向下将应用程序图像加载到嵌入式SPI闪光之前,我是否需要加载任何二进制文件(辅助引导加载程序或Flash_Programmer)。
请通过步骤过程提供有关步骤的信息,以便在正常模式下工作(即从闪存运行应用程序)。此问题阻止我们而不会进一步进步。

我们是否可以再次重新编程OTP区域以覆盖OTP区域中的现有辅助引导加载程序代码。

请找到附件供您参考。

Attachment:
mt_dialog.
Offline
最后一次露面:2个月2周前
Staff
Joined:2015-06-08 11:34
Hi Premukar,

Hi Premukar,

Make sure that the proper UART pins are connected in order for the Smart Snippets to download the flash programmer to your device. Also make sure that the correct SPI pins are selected from the Board Setup section. After opening the Smart Snippets you should choose the 14583 version of the chip, this should select the appropriate SPI pins (although you should explicitly check the pins in the board setup). After that choose the SPI tab, press connect (in order for the flash programmer to be downloaded in the chip) and then erase the SPI flash (the most probable reason for not be able to erase or burn the flash is the pin selection - 2_0, 2_3, 2_4, 2_9 should be selected in board setup). There is no need to download any binaries for burning the flash Smart Snippets downloads it on the connection procedure.

谢谢mt_dialog.

Premkumar.
Offline
最后一次露面:5 years 1 month ago
Joined:2015-12-16 05:45
Hi,

Hi,
whether we can write OTP region multiple times.

mt_dialog.
Offline
最后一次露面:2个月2周前
Staff
Joined:2015-06-08 11:34
嗨premkumar,

嗨premkumar,

You can't burn the OTP multiple times, OTP stands for One Time Programmable, you can only flip the bits from 0 to 1.

谢谢mt_dialog.