sktPtr is pointing at wrong address

sktPtr is pointing at wrong address

Home Forums Real-Time Kernels sktPtr is pointing at wrong address

This topic contains 2 replies, has 2 voices, and was last updated by  Andy Lin 3 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #25776

    Andy Lin
    Participant

    After creating thread:
    debug
    https://imgur.com/a/fUJchj3

    It’s obvious that SktPtr is not pointing at stk[4079].
    The address 0x8030F884 is for stk[4061].

    Why? As far as I understand, SktPtr should be pointing at the bottom of the stack.

    More interesting thing. When I create a local variable:
    local variable
    https://imgur.com/a/E71LHiR
    1. this local variable err is at stk[3673]
    2. SktPtr didn’t move up

    How could it be?

    <I cannot upload image, please check the link>

    • This topic was modified 3 months ago by  Andy Lin.
    • This topic was modified 3 months ago by  Andy Lin.
    • This topic was modified 3 months ago by  Andy Lin.
    • This topic was modified 3 months ago by  Andy Lin.
    • This topic was modified 3 months ago by  Andy Lin.
    #25794

    Fernando Flores
    Keymaster

    Andy,
    if you are trying to understand how the port works, then you will benefit from reading the uCOS-III book(https://www.micrium.com/download/%C2%B5cos-iii-the-real-time-kernel-for-the-freescale-kinetis/). Chapter “Porting uC/OS-III” provides descriptions when adapting uC/OS-III to different processors/architectures.

    #25798

    Andy Lin
    Participant

    Fernando Flores,

    Thank you. The reason I asked this is because the system I’m developing now is ported by previous colleague.
    I seriously doubt that he ported uC/OS-III in some extent wrong, because I found very weird behaviors a lot in kernel layer.

    I used to go through kernel few times and compare it with official version, and found different at several points.

    However, our’s is v3.02.00. and official version available to download is v3.03.00.

    I want to compare it under same version. Is version 3.02.00 available to download?

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

View the complete site map

x
Loading...