[SOLVED] Using micro-SD deck with Z-Ranger V2

Post here to get support
Post Reply
trax2501
Beginner
Posts: 4
Joined: Mon Feb 24, 2020 6:46 pm

[SOLVED] Using micro-SD deck with Z-Ranger V2

Post by trax2501 »

When using the micro-SD deck with the Z-Ranger V2 together on my crazyflie 2.1, the self-test occures twice than fails.
I use the latest firmware on my crazyflie. I also tried older firmware without success.
Those boards should work fine out of the box together as mention on the compatibility table. https://www.bitcraze.io/docs/cf2_expansiondecks/
The problem seems to happen when there is a config.txt file in the micro-SD card.
When looking at the console in the python client I get this:
SYS: The system resumed after watchdog timeout [WARNING]
SYS: No assert information found

Those boards work well separatly on my crazyflie which makes me believe that they aren't broken.

Thank you!
kimberly
Bitcraze
Posts: 568
Joined: Fri Jul 06, 2018 11:13 am

Re: Using micro-SD deck with Z-Ranger V2

Post by kimberly »

Hi!

They should be working together indeed. So let's find out what is happening.

You mentioned this happens when config.txt is on the sdcard. The assert does not happen when this file is not on the card? Could you send us the content of config.txt?
trax2501
Beginner
Posts: 4
Joined: Mon Feb 24, 2020 6:46 pm

Re: Using micro-SD deck with Z-Ranger V2

Post by trax2501 »

The assert doesn't happen when the file isn't present.

Here is the content of config.txt:

1 # frequency
10 # buffer size
log # file name
1 # enable on startup (0/1)
2 # mode (0: disabled, 1: synchronous stabilizer, 2: asynchronous)
acc.x
acc.y
acc.z
ctrltarget.roll
ctrltarget.pitch
ctrltarget.yaw
trax2501
Beginner
Posts: 4
Joined: Mon Feb 24, 2020 6:46 pm

Re: Using micro-SD deck with Z-Ranger V2

Post by trax2501 »

kimberly wrote: Tue Feb 25, 2020 8:56 am Hi!

They should be working together indeed. So let's find out what is happening.

You mentioned this happens when config.txt is on the sdcard. The assert does not happen when this file is not on the card? Could you send us the content of config.txt?
The assert doesn't happen when the file isn't present.

Here is the content of config.txt:

1 # frequency
10 # buffer size
log # file name
1 # enable on startup (0/1)
2 # mode (0: disabled, 1: synchronous stabilizer, 2: asynchronous)
acc.x
acc.y
acc.z
ctrltarget.roll
ctrltarget.pitch
ctrltarget.yaw
tobias
Bitcraze
Posts: 2060
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: Using micro-SD deck with Z-Ranger V2

Post by tobias »

I think this is a memory issue and I bumped into it as well when trying to add functionality so the micro-SD could more easily be moved to SPI3 bus. I have attached a STM32 FW with the changes I made. Can you try this? I will try to get these changes to the master branch during the week.
Attachments
cf2_2020.02_uSD_increased_heap.bin
(198.04 KiB) Downloaded 95 times
trax2501
Beginner
Posts: 4
Joined: Mon Feb 24, 2020 6:46 pm

Re: Using micro-SD deck with Z-Ranger V2

Post by trax2501 »

tobias wrote: Mon Mar 02, 2020 1:58 pm I think this is a memory issue and I bumped into it as well when trying to add functionality so the micro-SD could more easily be moved to SPI3 bus. I have attached a STM32 FW with the changes I made. Can you try this? I will try to get these changes to the master branch during the week.
It seems that you found the solution to my problem! No error occured and I am able to log with the micro-SD card with the range sensor plugged in.
Thanks alot!
kimberly
Bitcraze
Posts: 568
Joined: Fri Jul 06, 2018 11:13 am

Re: [SOLVED] Using micro-SD deck with Z-Ranger V2

Post by kimberly »

Great @tobias ' binary worked! I will notify this as an issue on github so we will fix this in the official firmware as well. Thank you for letting us know.
Post Reply