Skip to content

[Bug] Couldn't run board sample application #10179

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

Open
glory-man opened this issue Apr 10, 2025 · 9 comments
Open

[Bug] Couldn't run board sample application #10179

glory-man opened this issue Apr 10, 2025 · 9 comments

Comments

@glory-man
Copy link

RT-Thread Version

5.2.0

Hardware Type/Architectures

GD32450Z-EVAL

Develop Toolchain

GCC

Describe the bug

Build & start debug sample located @ bsp\gd32\arm\gd32450z-eval
Appl crashed (hard_fault) on

rt_system_heap_init((void *)HEAP_BEGIN, (void *)HEAP_END);

call in board\board.c

Image
next step in debugger went into hard_fault_handler
Image

To prevent this crash I decresed 2 times available memory (in board.h).

#define GD32_SRAM_SIZE         128

Ok. Program started successfully - Led1 blink. I want to see console output. Connect to COM0 (J1) via RS232-USB converter, open serial-port with putty

Image
but nothing happens. There is no answer from the board.

What should I do to test rtthread-sample on my board ? With GD32_SRAM_SIZE = 256. Or maybe need some fix on sample?

Other additional context

No response

@supperthomas
Copy link
Member

do you have keil ide?

@glory-man
Copy link
Author

do you have keil ide?

I tried to build sample with default rtconfig.py content. But get error

Image

I use keil in eval mode with 32k code limitation.

So I switched to VScode + GCC + Cortex-Debug

@glory-man
Copy link
Author

do you have keil ide?

I made only 2 modifications in rtconfig.py

CROSS_TOOL='gcc'

and set path to gcc-toolchain om my PC

EXEC_PATH   = r'C:\Users\XXYYZZ'

@supperthomas
Copy link
Member

you can use https://www.keil.arm.com/mdk-community/ keil community version

@glory-man
Copy link
Author

you can use https://www.keil.arm.com/mdk-community/ keil community version

Why should i use keil? I use official example distributed by rt-thread, use of gcc is provided by this example. I have not changed a single line of any supplied file. example built and ran fine on target board, only it does not work. Do you mean that if i use another IDE, then this same example will start working somehow differently?

@supperthomas
Copy link
Member

you can use https://www.keil.arm.com/mdk-community/ keil community version

Why should i use keil? I use official example distributed by rt-thread, use of gcc is provided by this example. I have not changed a single line of any supplied file. example built and ran fine on target board, only it does not work. Do you mean that if i use another IDE, then this same example will start working somehow differently?

yes maybe the author use keil to test. different ide maybe different hex bin.

@glory-man
Copy link
Author

yes maybe the author use keil to test. different ide maybe different hex bin.

why then include the ability to use untested toolchain in the official sample?

@glory-man
Copy link
Author

I would like to get a comment from the rt-thread (or this sample) developer
@Ouxiaolong

@glory-man
Copy link
Author

Can anybody help me ?

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