CF2.1 firmwire query for machine learning (ML) applications.

Discussions about quadcopters/multi-rotors
imranmomtaz
Beginner
Posts: 26
Joined: Tue Mar 17, 2020 7:01 pm

Re: CF2.1 firmwire query for machine learning (ML) applications.

Post by imranmomtaz »

Please disregard this particular post. I have my queries in the next post.
Last edited by imranmomtaz on Mon May 11, 2020 4:44 pm, edited 1 time in total.
imranmomtaz
Beginner
Posts: 26
Joined: Tue Mar 17, 2020 7:01 pm

Re: CF2.1 firmwire query for machine learning (ML) applications.

Post by imranmomtaz »

Hello,
1. Thanks for your reply. But, do I have to edit any startup file for my problem? I am trying to understand if editing startup file necessary or optional.

2. I have a query regarding the output of sysload (given below):

Code: Select all

SYSLOAD: Task dump
SYSLOAD: Load	Stack left	Name
SYSLOAD: 2.98 	175 	Tmr Svc
SYSLOAD: 69.16 	127 	IDLE
SYSLOAD: 2.53 	207 	FLOW
SYSLOAD: 0.0 	75 	PWRMGNT
SYSLOAD: 1.01 	214 	CRTP-RX
SYSLOAD: 5.94 	169 	SENSORS
SYSLOAD: 2.15 	77 	ZRANGER2
SYSLOAD: 0.0 	220 	MEM
SYSLOAD: 0.0 	109 	LOG
SYSLOAD: 0.0 	91 	PARAM
SYSLOAD: 0.0 	177 	LH
SYSLOAD: 0.05 	158 	SYSTEM
SYSLOAD: 0.04 	62 	CRTP-TX
SYSLOAD: 2.96 	20 	SYSLINK
SYSLOAD: 4.64 	311 	STABILIZE
SYSLOAD: 8.47 	258 	KALMAN
SYSLOAD: 0.0 	113 	USBLINK
SYSLOAD: 0.0 	204 	CMDHL
Please help me understand the meaning of this. I see different task at the right, and there are stack left for each of the tasks. Does this mean this much stack is left in each task? Which one is the stack available to use? And, also what is the unit of 'stack left'? Is this in bits or bytes or something else?

Regarding the other questions:
3. Yes, you are correct. storage wise, CCM is enough. But, I went to the linker file https://github.com/bitcraze/crazyflie-f ... F_CLOAD.ld and I have following queries:

3.a) there is no entry of ccmram here. So, does this mean, the ccmram is not activated by default, and I have to activate this by adding proper line?
3.b) it told me not to do any edit in this file as it will be erased at every link. I am not sure what it means? Can I not edit this file to do my work? I was thinking about editing this file for CF2.1, but this statement made me confused. I am a bit novice in this computer architecture avenue, hence some walk-through would be very helpful (if this is ok, ofcourse).

Thanks
imranmomtaz
Beginner
Posts: 26
Joined: Tue Mar 17, 2020 7:01 pm

Re: CF2.1 firmwire query for machine learning (ML) applications.

Post by imranmomtaz »

Hello,

I was wondering if anybody can answer my last post at Mon May 11, 2020 12:43 pm. This would be very helpful.
tobias
Bitcraze
Posts: 2073
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: CF2.1 firmwire query for machine learning (ML) applications.

Post by tobias »

I've seen that you found the CCM issue and we are working on this now which should make it easy to utilize the CC-memory.

1. Not necessary but then the memory will not be zero-initialized so one have to keep that in mind.

2. The stack figure is bytes left on that particular stack (FreeRTOS). For some of the stacks it should be possible to lower it. Most of the sizes are defined in config.h. They are defined in number of int's (4 bytes).

3. Better wait until we finished the implementation.
imranmomtaz
Beginner
Posts: 26
Joined: Tue Mar 17, 2020 7:01 pm

Re: CF2.1 firmwire query for machine learning (ML) applications.

Post by imranmomtaz »

Hello,
1. Thanks for the clarification. :)
2. Ok, I understand now. Thanks for the clarification. :)
3. Ok, Thanks. I will wait for this.
Post Reply