Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/tmp/ccTlcyeD.s:242: Error: Unrecognized Symbol type " " #32321

Closed
saad-abdullah62 opened this issue Feb 15, 2021 · 8 comments
Closed

/tmp/ccTlcyeD.s:242: Error: Unrecognized Symbol type " " #32321

saad-abdullah62 opened this issue Feb 15, 2021 · 8 comments
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug

Comments

@saad-abdullah62
Copy link

Hi, I am trying to add support for zedboard and zynq7000 SOC. While compiling sample/hello_world for Cortex A processors using ARM Embedded GNU i get assembler message Error:Unrecognized Symbol type " " . I tried to used aarch64 toolchain in zephyr sdk and it works for cortex-a53 and cortex-a72. But since i need to use cortex-a9 which is not included for -mtune option in aarch64 so i am using ARM Embedded GNU to built application.

To Reproduce
Steps to reproduce the behavior:

  1. Add ARM EMBEDDED toolchain as cross-compiler
  2. cd sample/hello_world, mkdir build; cd build
  3. cmake -DBOARD=qemu_cortex_a53
  4. make
  5. See error

Environment (please complete the following information):

  • OS: ( Linux(Ubuntu 18.04))
  • Toolchain (ARM Embedded)

Assembler_message

@saad-abdullah62 saad-abdullah62 added the bug The issue is a bug, or the PR is fixing a bug label Feb 15, 2021
@carlescufi
Copy link
Member

This might be a crlf issue. What is your core.autocrlf in .gitconfig?

@saad-abdullah62
Copy link
Author

I used git config --global core.autocrlf to set core.autrocrlf to input. But still getting same error

@saad-abdullah62
Copy link
Author

Another thing it builds application for Cortex M processors correctly.

@carlescufi
Copy link
Member

Try setting it to auto:

git config --global core.autocrlf true

and then run west init and west update` from scratch.

@saad-abdullah62
Copy link
Author

I tried above solution but there is no effect. I am getting same results as before.

@nashif nashif added the priority: low Low impact/importance bug label Mar 2, 2021
@galak
Copy link
Collaborator

galak commented Mar 16, 2021

As you are looking to support a 32-bit Cortex-A core you need to configure the compiler correctly for this. @carlocaione or @npitre can probably comment on what needs to be done.

This is not a bug as we don't support any current 32-bit Cortex-A core or SoC and thus it would be new functionality.

@galak galak closed this as completed Mar 16, 2021
@npitre
Copy link
Collaborator

npitre commented Mar 17, 2021

The Cortex-A9 is much more similar to a Cortex-M than Cortex-A53 or any
Aarch64 variations. Adjustments to the aarch32 code would also be needed
as this is currently unsupported.

The compiler to use from the Zephyr SDK would be arm-zephyr-eabi with
appropriate flags. The aarch64-zephyr-elf version won't work.

@saad-abdullah62
Copy link
Author

The error was because i kept my ARM v7 A configuration options in aarch 64 inside core. I added them to Kconfig file given for Cortex R processors and i was able to compile. But now i have other errors.
I have to add support for Cortex A9 but i don't have much knowledge about zephyr. I went through documentation and understood board and SOC porting guides. But i can't find any guide to port zephyr on new CPU core. I see many assembly and header files for every core e.g. for Cortex M, for Cortex R and for ARM 64 but don't know where they come from or which one should i add fro Cortex A9. So Any Suggestions or hints about where to start will be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug
Projects
None yet
Development

No branches or pull requests

5 participants