Keil crash with DSPS real time debug

9 posts / 0 new
Last post
yterasaki
Offline
Last seen:4 years 5 months ago
Joined:2015-05-08 09:28
Keil crash with DSPS real time debug

Dear Sirs,

When I put the break point in the uart transmit funtion (below), keil real time debuuger crashes when it
reached this line after I tred to send some text data from Android application.

static void uart_sps_thr_empty_isr(void)
{
void (*callback) (uint8_t) = NULL;

// Fill TX FIFO until there is no more room inside it
while (uart_txfifo_full_getf()) -> here for breakpoint
...
I disabled sleep mode and I can make real time debug correctly in other reference design. My keil version is
IDE-Version:
μVision V5.14.0.0

Best Regards,
Yukio

Device:
MT_dialog
Offline
Last seen:1 week 23 hours ago
Staff
Joined:2015-06-08 11:34
Hi yterasaki,

Hi yterasaki,

Have you altered the code of the DSPS at all (besides the undef EXT_SLEEP)?

Can you paste the error data when the jlink crashes?

When the jlink crashes the most probable cause is that da has issued a reset, thats why the jlink loses connections with the da.

Thanks MT_dialog

yterasaki
Offline
Last seen:4 years 5 months ago
Joined:2015-05-08 09:28
Thanks, Dialog staff person,

Thanks, Dialog staff person,

Could you specify necessary modification points to kill sleep mode perfectly? What I modified on the DSPS sample source
is just to undefine the CFG_EXT_SLEEP in the da14580_config.h file.

Best Regards,
Yukio

MT_dialog
Offline
Last seen:1 week 23 hours ago
Staff
Joined:2015-06-08 11:34
Hi yterasaki,

Hi yterasaki,

Besides the definition in the CFG_EXT_SLEEP in the da14580_config.h file there is no need to alter anything else in order to disable sleep. I 've also test it in a keil V5.14 and placed a breakpoint in the uart_sps_thr_empry_isr and i could debug the program properly on a pro broard. Is there anything else changed in the DSPS application you are using? What is your dev kit?

By saying that your debbuger crashes what do you mean? If you place the breakpoint elsewhere it crashes also?

Thanks MT_dialog

yterasaki
Offline
Last seen:4 years 5 months ago
Joined:2015-05-08 09:28
Thanks Dialog staff,

Thanks Dialog staff,

I re-downloaded the DSPS package and made flesh install, then I made modification only to the CFG_EXT_SLEEP. Even this, I had same problem.
1. "Crash" means that keil hangup and windows error message appears. What I can do is just to push the button of "Stop this application"
2. If I didn't put breakpoint, it seems to work well. Android application detects the advertising packet.
3. In the debug mode, just stop and run is OK at first, but repeating of stop & run caused same problem.
If you need any info, please let me know. I had captured the image of my keil setting, but I don't know the way to put them on this page.

MT_dialog
Offline
Last seen:1 week 23 hours ago
Staff
Joined:2015-06-08 11:34
Hi yterasaki,

Hi yterasaki,

你能上传图片链接和分享吗?

You said that this happens only with the DSPS application? with other applications the debugging works fine ?

The DSPS is a Keil4 proj and needs to be migrated maybe this is what is causing the crash, in a fresh DSPS download, choose, migrate to device pack, close the extra windows, and press Yes in the indication about migrate to use Pack devices(s). Then choose ARMCM0 and press OK in order to complete the migration.

Thanks MT_dialog

yterasaki
Offline
Last seen:4 years 5 months ago
Joined:2015-05-08 09:28
Thanks Dialog staff,

Thanks Dialog staff,

I don't know the method to upload the images to this site. Please tell me how to do it. Also following is my answer.
(1) There is no problem in LED blink, peripheral test, reference design. I see the prpblem only with DSPS design.
(2) Position of breakpoint is not a matter. Any place I put the breakpoint, move to the debugger mode and run debugger, then program
reached the breakpoint and windows error dialog shows up within a blink.
(3) I already installed ARMCM0 pack. (This will be understood by that I don't see any problems with other refrence design)

Best Regards,
yukio

yterasaki
Offline
Last seen:4 years 5 months ago
Joined:2015-05-08 09:28
Dear Dialog staff,

Dear Dialog staff,

Until today, I used project file of "sps_device_581.uvproj". Today, I tried "sps_device.uvproj" and then the problem disappeared.
I'm not sure why the problem disappeared.

Best Regards,
yukio

MT_dialog
Offline
Last seen:1 week 23 hours ago
Staff
Joined:2015-06-08 11:34
Hi ytersaki,

Hi ytersaki,

It seems that you were using the project for the 581 chip and not the 580. Thanks for indicating your problem was solved.

Thanks MT_dialog