Tuesday, May 22nd 2018, 5:21pm UTC+2

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

EmBlocks

Beginner

Date of registration: Jun 24th 2012

Posts: 32

1

Thursday, July 18th 2013, 8:42am

EnergyMicro STK3300 and Semihosting (Update: GDBserver crash)

Hi,

I'm busy with the Semihosting integration for the next EmBlocks release. I have added a semihosting settings panel to the JLink settings dialog so that I can enable semihosting ("monitor semihosting enable") and to change some vectors or numbers.

I have made a simple test program which prints the "Hello world" (well it was supposed to do that) and linked this with the rdimon library (--specs=rdimon.specs).

So far so good.
I can see that everything is linked fine in the map file, the right crti0 files and I even find the bkpt 0xAB when I single step. But if I connect to the 2333 port, which is accepting the connecting, there is totally nothing.

Is there a restriction in the on-board jlink of the STK3300? or am I missing some obvious settings?

Kind Regards

Update:
I'm a little bit further but now I have something new. As soon as the program gets to the printf JLink GDBserver crashes (Unhandled exception at 0x0040638d in JLinkGDBServer.exe: 0xC0000005: Access violation reading location 0xffffff10.)

Problem Event Name: APPCRASH
Application Name: JLinkGDBServer.exe
Application Version: 0.0.0.0
Application Timestamp: 51cab944
Fault Module Name: JLinkGDBServer.exe
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 51cab944
Exception Code: c0000005
Exception Offset: 0000638d
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 1043
Additional Information 1: 55d6
Additional Information 2: 55d634bd2d758077cfacdd75929c792f
Additional Information 3: 2302
Additional Information 4: 23022a459bf436e74c7f7642e68d2bcb

This post has been edited 2 times, last edit by "EmBlocks" (Jul 18th 2013, 9:20am)


SEGGER - Alex

Super Moderator

Date of registration: Dec 18th 2007

Posts: 1,516

2

Thursday, July 18th 2013, 9:44am

Hi Gerard,

We are not aware of any problems with the semihosting functionality.
Which version of the GDBServer do you use?
Yesterday we release V4.74. Are you using this version?
If yes, could you please attach your project, so we can reproduce the problem and take a look at this here?


Best regards
Alex

EmBlocks

Beginner

Date of registration: Jun 24th 2012

Posts: 32

3

Thursday, July 18th 2013, 10:36am

Hi Alex,

Both 4.72a and 4.74 are crashing.

I'm using the STK3300 from EnergyMicro (perhaps a firmware issue??) but I can't find out how to disable the on-board jlink and to use an external probe.

I will see how I can get a test project to you. The problem is that I use a development build of EmBlocks with special Semihost options and debug interface options which are not yet in the public versions.
I guess that I have to mail you a total zip file with this dev-build version. Only the compiler/debugger plugin and the project causing the crash.

Regards Gerard

EmBlocks

Beginner

Date of registration: Jun 24th 2012

Posts: 32

4

Thursday, July 18th 2013, 12:00pm

I have send you the project by mail (together with the EmBlocks modifications)

EmBlocks

Beginner

Date of registration: Jun 24th 2012

Posts: 32

5

Thursday, July 18th 2013, 12:11pm

Update:

The GDBserver also crashes with an external JLink connected to a MCB1700.

Same issue, at printf -> crash.

SEGGER - Alex

Super Moderator

Date of registration: Dec 18th 2007

Posts: 1,516

6

Thursday, July 18th 2013, 1:13pm

Hi,

I did not receive any e-mail so far.
We are currently (right now) working with GDBServer & semihosting and we are currently creating an emIDE project with semihosting.
Everything works perfect so far. No crashes etc.


Best regards
Alex

EmBlocks

Beginner

Date of registration: Jun 24th 2012

Posts: 32

7

Thursday, July 18th 2013, 1:27pm

Strange, I will send it now by PM.

I will continue with the OpenOCD and the STLink implementation first and skip the JLink-semihost for later.

Kind regards
Gerard

SEGGER - Alex

Super Moderator

Date of registration: Dec 18th 2007

Posts: 1,516

8

Thursday, July 18th 2013, 1:43pm

Hi Gerard,

Seems my post crossed with your e-mail.
Just received it. Thanks for sending, we will take a look at it today.


Best regards
Alex

SEGGER - Alex

Super Moderator

Date of registration: Dec 18th 2007

Posts: 1,516

9

Thursday, July 18th 2013, 5:17pm

Hi Gerard,

The problem has been identified & fixed.
It only occurred under special circumstances with the RDIMon library you used.
Fixed version comes tomorrow.


Best regards
Alex

EmBlocks

Beginner

Date of registration: Jun 24th 2012

Posts: 32

10

Thursday, July 18th 2013, 5:36pm

Rdimon library is newlib version 1.20.

Cheers.

EmBlocks

Beginner

Date of registration: Jun 24th 2012

Posts: 32

11

Monday, July 22nd 2013, 1:56pm

Hi Alex,

Are there problems with the release of 4.74a ?

Regards,
Gerard

SEGGER - Alex

Super Moderator

Date of registration: Dec 18th 2007

Posts: 1,516

12

Monday, July 22nd 2013, 3:58pm

Hi Gerard,

Sorry, too many interrupts :)
The plan is to have it today.


Best regards
Alex

SEGGER - Alex

Super Moderator

Date of registration: Dec 18th 2007

Posts: 1,516

13

Tuesday, July 23rd 2013, 9:56am

Hi Gerard,

A fixed version (V4.74a) is available is available for download on our website:
http://www.segger.com/jlink-software.html


Best regards
Alex