Home/Support/Support Forum/remote upgrade
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

remote upgrade

0 votes
RemoteProgramUpdate stops working when implement Multi-task. Can you help?
asked May 12, 2021 in Rabbit Software by Ctjpham New to the Community (3 points)
recategorized May 14, 2021 by LeonidM

Please log in or register to answer this question.

2 Answers

0 votes
what hardware platform are you using? what exactly are you enabling? can you provide more details?
answered May 13, 2021 by LeonidM Veteran of the Digi Community (4,411 points)
I am using RCM6760 embedded. The remote upgrade has been working until I enable multi-task. Below are the codes that keep reboot the MCU during upload.

#define OS_SCHED_LOCK_EN 1
#define OS_SEM_EN 1
#define OS_MAX_TASKS 3 // Maximum number of tasks system can create (less stat and idle tasks)
#define OS_MAX_EVENTS 2
#define OS_TIME_DLY_HMSM_EN 1 // Enable OSTimeDlyHMSM
#define OS_TASK_STAT_EN 1
#use "ucos2.lib"
0 votes
Any task that calls tcp_tick() needs to have a 4KB stack.

Make sure that any sockets you create are global in scope, and aren't an "auto" variable declared in a task. You will run into problems if you have a socket in a task's stack and you call tcp_tick() from another task.

Where does it crash? Can you run your program from the Dynamic C IDE/debugger and provide details on where it fails?
answered May 14, 2021 by TomCollins Veteran of the Digi Community (2,297 points)