DECK_INFO: Memory error: wrong header ID

Discussions about all things Bitcraze
Post Reply
skeletonSir
Beginner
Posts: 19
Joined: Thu Mar 22, 2018 6:34 am

DECK_INFO: Memory error: wrong header ID

Post by skeletonSir » Thu Mar 22, 2018 6:38 am

18.01.1-26) MODIFIED
SYS: I am 0x383037383336510600320034 and I have 1024KB of flash!
CFGBLK: v1, verification [OK]
traj. initialized.
DECK_DRIVERS: Found 11 drivers
DECK_INFO: Found 1 deck memory.
DECK_INFO: Memory error: wrong header ID
DECK_INFO: Deck 0 has corrupt OW memory. No driver will be initialized!
DECK_CORE: 0 deck enumerated
MPU9250 I2C connection [OK].
AK8963 I2C connection [OK].
LPS25H I2C connection [OK].
ESTIMATOR: Using estimator 1
EEPROM: I2C connection [OK].
AK8963: Self test [OK].
SYS: Free heap: 19832 bytes
My memory error, do not know where to modify, or DS28E05 need to write the program separately?



arnaud
Bitcraze
Posts: 2097
Joined: Tue Feb 06, 2007 12:36 pm

Re: DECK_INFO: Memory error: wrong header ID

Post by arnaud » Thu Mar 22, 2018 8:05 am

Hi, What deck is causing this problem, is it one of your deck?

You can write the deck memory yourself, it is not entirely straight-forward but it is not hard either. To write a deck memory you can:
1- clone the crazyflie2-nrf firmware project: https://github.com/bitcraze/crazyflie2-nrf-firmware
2- Build and flash the nRF firmware without bluetooth: "make BLE=0 && make cload"
3- Modify the write-ow.py example with the data you want to be written in the memory: https://github.com/bitcraze/crazyflie-l ... py#L79-L86
4- Run the write-ow.py example

Now the deck memory should be written.

As a side note, if you build the crazyflie-firmware with DEBUG=1, this will be ignored.

skeletonSir
Beginner
Posts: 19
Joined: Thu Mar 22, 2018 6:34 am

Re: DECK_INFO: Memory error: wrong header ID

Post by skeletonSir » Thu Mar 22, 2018 10:08 am

I can't write it, either write or read 0xAA 0X55.

Updated id=3
Type : 1
Size : 112
Valid : False
Name : None
VID : 0xAA
PID : 0x55
Pins : 0xAA5555AA
Elements :
Board name=UWB LPS
Board revision=bcDWM1000
Could you please post the code you wrote? Thank you.
The following
mems [ 0 ] .vid = 0x BC
mems [ 0 ] .pid = 0x FF

board_name_id = OWElement.element_mapping [ 1 ]
board_rev_id = OWElement.element_mapping [ 2 ]

mems [ 0 ] .elements [board_name_id] = '测试板'
mems [ 0 ] .elements [board_rev_id] = ' A '

arnaud
Bitcraze
Posts: 2097
Joined: Tue Feb 06, 2007 12:36 pm

Re: DECK_INFO: Memory error: wrong header ID

Post by arnaud » Thu Mar 22, 2018 10:32 am

Have you flashed the nrf firmware with bluetooth disabled?

The values to write depends of what you are trying to achieve, what is the deck doing?

skeletonSir
Beginner
Posts: 19
Joined: Thu Mar 22, 2018 6:34 am

Re: DECK_INFO: Memory error: wrong header ID

Post by skeletonSir » Thu Mar 22, 2018 10:50 am

I'll write the address to DS28E05R to start the DWM1000.
I've got to make cload, but make cload doesn't work. I downloaded the hex code directly, and that's not the right thing to do.

arnaud
Bitcraze
Posts: 2097
Joined: Tue Feb 06, 2007 12:36 pm

Re: DECK_INFO: Memory error: wrong header ID

Post by arnaud » Fri Mar 23, 2018 8:22 am

Can you maybe explain a little bit more the state you are in and what does not work. Have you tried to follow the procedure I sent in my first post. If any of the step does not work please describe how it did not work and we will try to help you make it work.

If you want to program a one wire memory for a DWM deck, you can find the data required in the wiki: https://wiki.bitcraze.io/projects:crazy ... #deck_info.

Post Reply