freeRTOS900 hangs

Post here first, or if you can't find a relevant section!
Post Reply
sankarAMP2
Posts: 1
Joined: Mon Feb 10, 2020 2:50 pm
Location: India

freeRTOS900 hangs

Post by sankarAMP2 »

Hello guys,
I wrote a code with freeRTOS multi threading and gsm mqtt.
My environment:
using Harware:
https://github.com/rogerclarkmelbourne/Arduino_STM32

using libraries:
https://github.com/rogerclarkmelbourne/ ... reeRTOS900
https://github.com/knolleary/pubsubclient
https://github.com/vshymanskyy/TinyGSM


And my issue is: Code with freeRTOS900 or pubsubclient individually working fine but when I’m using both together the controller hangs unexpectedly…
Please help me to find reasons for RTOS hanging?


Thanq,
Sankar

User avatar
Pito
Posts: 67
Joined: Tue Dec 24, 2019 1:53 pm

Re: freeRTOS900 hangs

Post by Pito »

That description of your problem is not enough to help you.
Porting existing libraries into an Rtos is not easy - you have to create tasks which interacts, etc.
Best you will publish your entire code and it could be somebody helps you then..
Pukao Hats Cleaning Services Ltd.

ag123
Posts: 237
Joined: Thu Dec 19, 2019 5:30 am

Re: freeRTOS900 hangs

Post by ag123 »

a blue pill has only 20k of memory, of which part of it is used by usb and partly the core itself, then freeRTOS further sub-divide memory into smaller fixed sized compartments for each vtask. so most likely you've run out of memory either for the vtasks or the overall shared memory

Post Reply

Return to “General discussion”