This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSPM0G3507: FreeRTOS based development with Freetos CLI Framework

Part Number: MSPM0G3507
Other Parts Discussed in Thread: , MSPM0-SDK

Hi,

I am working on LP-MSPM0G3507 and trying to implement freeRTOS-CLI farmwork . I have taken uart_echo_LP_MSPM0G3507_freertos_ticlang from resource explorer. and added freertos_cli.h and FreeRTOS_CLI.c in project. But while running code I am getting heap memory issue as follows.

CORTEX_M0P: Error: (Error -1001 @ 0x0) Requested operation is not supported on this device. (Emulation package 9.13.0.00201)
CORTEX_M0P: Trouble Halting Target CPU: Device Connection Error. This could be caused by the device having gone to low power mode. Try forcing an external reset pressing the 'Force Reset' button. If the error persists, try: 1) Invoking BSL, 2) Calling a DSSM Mass erase, or, 3) Calling a DSSM Factory Reset. Check device FAQs for more information.
CORTEX_M0P: Error: (Error -1001 @ 0x0) Requested operation is not supported on this device. (Emulation package 9.13.0.00201)
CORTEX_M0P: Trouble Halting Target CPU: (Error -2064 @ 0x0) Unable to read device status. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 9.13.0.00201)
CORTEX_M0P: Error: (Error -1001 @ 0x0) Requested operation is not supported on this device. (Emulation package 9.13.0.00201)

what precaution or setting I need to take while implementing freeRTOS-CLI. 

  • Hi Mehul,

    I have seen this error message before when something was preventing my device from maintaining a stable connection to the debug interface. What exactly makes you think it is a heap issue? Does this only occur after some runtime? If you flash another example, like the gpio toggle example, do you still see this error message?

    If you invoke BSL mode (hold down the PA18 button and reset the device), then try to flash do you still see this issue? 

    Best Regards,
    Brandon Fisher

  • Hi Brandon

    with any other example it works fine. but when I tried with Free rtos example i am getting this issue. actully i am trying to implement FreeRTOS-CLI implementation by takaing above mentioned  UART example code. . 

    Do you have any example code for FreeRTOS-CLI with mspm0+ family?

  • Hi Mehul,

    Do you have any example code for FreeRTOS-CLI with mspm0+ family?

    We don't have anything with the FreeRTOS-CLI currently.

    Just checking, what version of CCS and the MSPM0-SDK are you using? I am trying to recreate this on my end, but you should be able to run the Free RTOS examples by themselves if everything is the correct version.

    Best Regards,
    Brandon Fisher

  • We don't have anything with the FreeRTOS-CLI currently.

    means you said currently MSPM0G3507 with MSPM0 SDK-1.30.00.03 doesn't support freeRTOS-CLI? Please let me know wither it is possible to implement freeRTOS-CLI on mspm0g3507 or not. 

    what version of CCS and the MSPM0-SDK are you using?

    Version: 12.5.0.00007

  • Hi Mehul,

    means you said currently MSPM0G3507 with MSPM0 SDK-1.30.00.03 doesn't support freeRTOS-CLI? Please let me know wither it is possible to implement freeRTOS-CLI on mspm0g3507 or not. 

    I don't see any reason why it wouldn't be possible, it looks like it has been used on other M0+ core devices before. We just have not tried to implement it on our end yet. Is there anything else you are changing in the example when you drop in the freertos_cli header and source files? 

    12.5.0.00007

    If you want to update, 12.6 is available, but 12.5 is recent enough that I have no specific reason to believe it is the cause of your issue here. 

    Best Regards,
    Brandon Fisher