PDL 2.1 FM0-64L-S6E1C3 can't get to main with MDK

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

   

I've been trying to write my first demo program with FM0-64L-S6E1C3 with PDL 2.1.0.

   

Actually my program is running reasonably OK with IAR EWARM,

   

but I have not been able to make it run with MDK-ARM (KEIL).

   

I created a project in MDK-ARM v5.21.1.0 and included all my sources/headers

   

along with the PDL stuff which (I thought) required,

   

then I added

   

startup_s6e1c3.s

   

system_s6e1c3.c

   

system_s6e1c3.h

   

The project was built OK,

   

but in the debugger it has never arrived to "main()".

   

So I stepped through startup_s6e1c3.s and found that in the Reset_Hander PROC

   

after  LDR R0,=__main

   

at BX R0  it went to the never-land and wont' come back.

   

Question or request

   

(1) Would someone teach me what I've been doing wrong?

   

(2) Can I get a PDL2.1.0 sample project which runs on FM0-64L-S6E1C3?

   

(3) Or is/are there tutorial/method which allows me to create a project which is runnable on FM0-64L-S6E1C3?

   

Best Regards,

   

7-Oct-2016

   

Motoo Tanaka

0 Likes
1 Solution
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

OK, I found the cause.

   

In the Options for Target 'Debug' dialog

   

Use MicroLib option was not checked.

   

By checking that option now the debugger starts from main().

View solution in original post

0 Likes
1 Reply
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

OK, I found the cause.

   

In the Options for Target 'Debug' dialog

   

Use MicroLib option was not checked.

   

By checking that option now the debugger starts from main().

0 Likes