Skip to content
This repository has been archived by the owner on Apr 24, 2019. It is now read-only.

Current checkout (001fe0d) Not running in K64F and NUCLEO_F401RE #69

Closed
javier-moreno-tridonic-com opened this issue Aug 4, 2016 · 11 comments

Comments

@javier-moreno-tridonic-com

I using the following checkouts:

  • mbed-os-example-client 001fe0d
  • mbed-os dd36dc4
  • esp8266-driver 450cc128865ffb90b5cbfe5af193621644024fa7
  • atmel-rf-driver a16a4ed6f6e8d5f2d009f25b6ab7c38affb5019c

The project builds fine, but when I try running it I never reaches main.

Stack trace looks like this:

mbed-os-example-client.elf

Thread #1

(Suspended : Signal : SIGTRAP:Trace/breakpoint trap)

__isr_vector() at 0x0
0x0

If I try to compile it with "MESH_LOWPAN_ND" as a network-interface I get:

mbed-os-example-client.elf

Thread #1 (Suspended : User Request)

__isr_vector() at 0x0
thread_comm_status_indication_cb() at 0xa400

@ciarmcom
Copy link
Member

ciarmcom commented Aug 4, 2016

ARM Internal Ref: IOTCLT-891

@yogpan01
Copy link
Contributor

yogpan01 commented Aug 4, 2016

@hasnainvirk Please check this

@hasnainvirk
Copy link
Contributor

@yogpan01 This seems to be an issue at OS level and will certainy need some help from mbed-os. @c1728p9, @sg- Can you please have a look into it ?

@c1728p9
Copy link
Contributor

c1728p9 commented Aug 4, 2016

Hello @javier-moreno-tridonic-com, I gave this configuration a try but I can't reproduce the problem you are having. What compiler were you using?

@hasnainvirk
Copy link
Contributor

@javier-moreno-tridonic-com Hi , I tried to reproduce your issue but couldn't. Can you please provide more info = or setup a skype session with me ?

@javier-moreno-tridonic-com
Copy link
Author

javier-moreno-tridonic-com commented Aug 8, 2016

I was compiling with GCC:

arm-none-eabi-g++ (GNU Tools for ARM Embedded Processors) 4.9.3 20150303 (release) [ARM/embedded-4_9-branch revision 221220]
arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 4.9.3 20150303 (release) [ARM/embedded-4_9-branch revision 221220]

Using:

mbed compile -c -m NUCLEO_F401RE -t GCC_ARM

For the nucleo board and

mbed compile -c -m K64F -t GCC_ARM

For the freescale one

@hasnainvirk Sure we can set up a Skype session. Can you provide me with a contact mail to look for a suitable date?

@hasnainvirk
Copy link
Contributor

@javier-moreno-tridonic-com , please contact me at [email protected]
skype: husnain.virk

@javier-moreno-tridonic-com
Copy link
Author

Hi there, looks like it was my compiler version. I tried again with a clean checkout of the example today and an updated compiler and it works for both targets.

The versions I'm using now are:

arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 5.4.1 20160609 (release) [ARM/embedded-5-branch revision 237715]

arm-none-eabi-g++ (GNU Tools for ARM Embedded Processors) 5.4.1 20160609 (release) [ARM/embedded-5-branch revision 237715]

Thank you all for your hints and comments.

@yogpan01
Copy link
Contributor

yogpan01 commented Aug 8, 2016

@javier-moreno-tridonic-com
Hi,
According to the documentation mentioned here (https://docs.mbed.com/docs/mbed-os-handbook/en/5.1/dev_tools/cli/#installing-mbed-cli)

If you want to use the GCC ARM Embedded toolchain, set GCC_ARM_PATH to the binary directory of your GCC ARM installation (example: C:\Program Files\GNU Tools ARM Embedded\4.9 2015q2\bin). Use versions 4.9 of GCC ARM Embedded; version 5.0 or any version above might be incompatible with the tools.

You may run into some unknown issues with latest compiler > 4.9

@hasnainvirk
Copy link
Contributor

@javier-moreno-tridonic-com Mate I had been trying with 4.9. It was working perfectly. I think the culprit might have been some mishap during your last checkout. Something wasn't right. Please test latest checkout with 4.9, it should work.

@javier-moreno-tridonic-com
Copy link
Author

Ok thanks for the heads up. I will try with a different 4.9 release (I was using q1 and the documentation suggests that q2 is used)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants