-
Notifications
You must be signed in to change notification settings - Fork 145
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
Static memory allocation on userland #144
Comments
Can it work now? |
No. I got lots of like this : Stack dump: |
If the code works well, I should wee the LD3 toggle... |
The following references can help you. |
Thanks. |
BTW, if you want to know more about microkernel, you can search the following links. |
Thanks. Finally I found the problem: I have to put the address where I have to touch in DECLARE_FPAGE. One more question: Why it cannot run as well as lcd_test run? |
@gnitnaw LCD_test have a At this moment, F9 can't schedule user thread, that means if someone makes an infinity loop (as LCD_test), you will get the result: hang it. So, it is normal, but not a feature, is a bug which waits for the fix. |
When will you fix this bug? |
I'm happy to help you but until now I don't understand the way you do the context-switch... The problem is at context-switch or scheduling? Another question is : it is preempt-able or not. |
Hi, If I understand well, the scheduler is done by kernel/sched.c |
Do you mind to show your implement for sched_rr and tell me where the problem is. I can try to improve it. |
UTCB is better. If your final goal is that F9 can provide GPIO and I2C driver, I think you need to implement the following user apps.
Reference:
|
I'm creating an app. for stm32f429 discovery.
Here is my code:
https://github.com/gnitnaw/f9-kernel/blob/master/user/apps/led/main.c
I would like to ask how to write the part "DECLARE_USER" and "DECLARE_FPAGE".
Another question: I have one stm32f072b and one stm32l476 board.
Are the files in platform/stm32-common compatible with these two boards?
Thanks.
The text was updated successfully, but these errors were encountered: