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

Qemu-4.2.0 emulation for basic "hello world" #157

Open
AbhijitInamdar5 opened this issue Jul 28, 2021 · 1 comment
Open

Qemu-4.2.0 emulation for basic "hello world" #157

AbhijitInamdar5 opened this issue Jul 28, 2021 · 1 comment

Comments

@AbhijitInamdar5
Copy link

Hi,

I was trying to print out "hello world" on terminal(16.04) and using qemu-4.2.0 and toolchain gcc-arm-none-eabi-6-2017-q2-update.

The startup and the linker I used was from :
https://github.com/ARM-software/CMSIS_5/tree/5.8.0/Device/ARM/ARMCM3/Source/GCC and my machine on which i want to emulated has 16MB flash and RAM each.

The issue is the output is black screen. How to rectify this?

@cirosantilli
Copy link
Owner

Hi, this is a bit hard to answer. After you got it working with this repo https://github.com/cirosantilli/linux-kernel-module-cheat/tree/32b6d036890eef954dad5b5dd480a36f14890646#baremetal-setup-getting-started start studying how it works here and bisect difference by difference with GDB. Notably, you have to ensure that entry point is correct in the linker script, and that the toolchain stdlib is putting devices at the address tey are expected (notably the TTY) to match QEMU. You have to understand how that toolchain does it. This one use newlib.

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

No branches or pull requests

2 participants