mike tran

mike tran

Forum Replies Created

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • in reply to: zynq usb host vbus no +5v output #27817

    mike tran
    Participant
    in reply to: UCOS app crashes linux OS during AMP reset #27186

    mike tran
    Participant

    Hi Sharbel Bousemaan,

    I tested OpenAMP for zynq in ucos_v1.41, as described in
    https://doc.micrium.com/display/UCOSXSDK/OpenAMP+Tutorial+Part+1+-+Zynq+A9+to+A9

    I also tried xilinx SDK openamp_echo_test project.

    Further, I replaced “image_echo_test” in Petalinux-build by ucos_openamp_slave.elf,

    Petalinux:

    # modprobe zynq_remoteproc firmware=image_echo_test

    only invokes “remoteproc”, while missing “virtio”. Therefore, echo_test would not start.

    Wish Micrium expert will come out a Petalinux-UCOS AMP solution.

    Thanks in advance.

    in reply to: zynq OpenAMP example projects #27180

    mike tran
    Participant

    Hi Sharbel Bousemaan,

    I downloaded ucos_v1_41, and successfully built/tested openamp_master/openamp_slave example projects with vivado/sdk 2015.4. Thank you for the help.

    Now, the question is how to integrated them into Petalinux openamp framework, i.e., petalinux on cpu0 and ucos openamp on cpu1.

    Please advise, thanks in advance,

    Mike

    in reply to: Micrium_Xilinx_Repo_1_44 #27106

    mike tran
    Participant

    got it, thank you for the help.

    in reply to: interrupt map to cpu1 #26939

    mike tran
    Participant

    problem solved.

    UCOS_IntVectSet(62, 0, 0, Timer1ISR, &Timer1);

    in reply to: interrupt map to cpu1 #26862

    mike tran
    Participant

    Hi Farukh Chaudhry,

    Thank you for the suggestion. However, how can I “update the BSP code or initialization code to map the interrupt” ? Would you mind giving detailed instruction? Thanks in advance.

    In the meantime, I did another test with the original final app.c downloaded from – https://doc.micrium.com/display/UCOSXSDK/uCOS+BSP+on+the+Zynq-7000+Tutorial

    Under AMP, Timer0 interrupt is successfully triggered, however, program never catches Timer1 interrupt. UART outputs as follows,

    UCOS – uC/OS Init Started.
    UCOS – STDIN/STDOUT Device Initialized.
    UCOS – UCOS init done
    UCOS – Total configured heap size. 512
    UCOS – Total used size after init. 284
    Hello world from the main task
    Timer0Task reached
    Timer1Task reached
    Timer 0 Semaphore signaled
    Timer 0 Semaphore signaled
    Timer 0 Semaphore signaled
    Timer 0 Semaphore signaled

    Comparing the source codes of two timers,

    Timer0 = AXITimer_Init(0);
    AXITimer_OptSet(Timer0, 0, AXITIMER_OPT_DOWN | AXITIMER_OPT_AUTO_RELOAD | AXITIMER_OPT_INT);
    AXITimer_LoadSet(Timer0, 0, 100000000);
    AXITimer_CallbackSet(Timer0, 0, Timer0ISR);
    AXITimer_Start(Timer0, 0);

    XTmrCtr_Initialize(&Timer1, 0);
    XTmrCtr_SetOptions(&Timer1, 0, XTC_DOWN_COUNT_OPTION | XTC_AUTO_RELOAD_OPTION | XTC_INT_MODE_OPTION);
    XTmrCtr_SetResetValue(&Timer1, 0, 50000000);

    UCOS_IntVectSet(62, 0, DEF_BIT_00, Timer1ISR, &Timer1);
    UCOS_IntSrcEn(62);

    XTmrCtr_Start(&Timer1, 0);

    Still having problem of mapping interrupt 62 to cpu1.

    Please advise, thanks in advance,

    Mike

    in reply to: microzed usb host msc not working #24533

    mike tran
    Participant

    joined makers program and collected ucos source code, mission accomplished. Thanks Micrium ~~

    in reply to: how to ucos-III zynq gpio interrupt #24346

    mike tran
    Participant

    Hi Farukh Chaudhry,

    Thank you for your attention.

    The program cannot jump out of ISR routine, which means interrupt Handler needs to clear the interrupt by itself. Therefore, I added XGpioPs_IntrClearPin(&Gpio, pbsw) and solved the problem.

    void myIntrHandler (void *p_arg, CPU_INT32U cpu)
    {
    XGpioPs_IntrClearPin(&Gpio, pbsw);

    OS_ERR os_err;
    printf(“enter interrupt \n\r”);

    OSSemPost(&GPIO1Semaphore, 0, &os_err);
    }

    Best

    Mike

    in reply to: microzed usb host msc not working #24345

    mike tran
    Participant

    Hi Farukh Chaudhry,

    I don’t have source code, and am an absolute beginner of RTOS. So I download the example project from https://www.micrium.com/download/xilinx-sdk-repository/, wish it works for me.

    I did sign up on https://www.micrium.com/makers/getmakers/ , but never got feedback either in email or phone call.

    How can I get the source files? As an engineer, I just want to elevate my programming skill by getting in touch with RTOS system.

    Please advise, thanks in advance

    Mike

    in reply to: how to ucos-III zynq gpio interrupt #24309

    mike tran
    Participant

    solved problem by myself. why no one touch this post?

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

View the complete site map

x
Loading...