Other Parts Discussed in Thread: IWR1843BOOST, IWR6843, IWR1843
Hi,
I started this via sensors forum, and they've pointed me your way ...
I need to write my own tool to program my IWR1843BOOST - like UNIFLASH, but integrated into my own tool set.
I have doc SWRA627, and I know of flashPython & mmWaneProgFlash. These ought to be all I need, but it seems not quite.
My own s/w looks very similar to mmWaveProgFlash, so I can't be too far off, but something is not right. If I uniflash the out-of-box demo and check this is working, then down load the SAME .bin MSTR format file with my own code, it no longer works ... so I must be writing, but not correctly.
I've attached a file showing some of my workings: how I parse out the header details of the bin file (from industrial tool box, OOB demo isk pre-built), then a sample of the data I'm actually sending to the IWR - part way through, so you can se that I send a smaller remainder (<240 bbytes) packet at the end, plus the CLOSE & OPEN commands, and the start of the next metaImage. Anything obviously wrong? NB no cr/lf bytes sent, and the <> is only in the text shown for clarity ... NOT sent to the com port.
As I understand it - all I should need to understand how UNIFLASH talks to the IWR should be available in the python. As said its look very like my own code (c#), but I can't quite see how it all works. It was suggested that adding some more text outputs to the python would help - I've done this in the SEND_PACKET bit (looks like the lowest level, used by everything else), but this only reports the ERASE function, not passing data.
I think I've implemented the SWRA627 protocol, but obviously not quite yet. Can you help, either spot the error in the data I've attached, or help me understand the UNIFLASH routines / get more text out so I can watch what it does.
In particular:
- as my own code is very similar, I must be close with the OPEN/COSE & WritetoFlash (actually want to use WritetoSRAM .. my code can select either). I think I understand how the python is doing this.
- I can't see how the python picks the metaImages out of the bin file. I know uniflash requires MSTR format, but haven't yet managed to find/understand that bit in the python. If the write-to code is OK, then maybe my error is here?
many thanks
Alan Milne, UK
/ti/mmwave_industrial_toolbox_4_9_0/labs/out_of_box_demo/18xx_mmwave_sdk/prebuilt_binaries/isk/xwr18xx_mmw_demo_isk.bin magic word: 5254534D metaimages present: 00000003 file length: 0004EA80h = 322176d MSTR/MEND Protocol OK MetaImage 1 details: filePresent = 0001 coreId = 35510000 >>> MSS fileOffset = 0080 CRC_lo = EA7A2C43 CRC_hi = 69F4A22 fileSize = 1EB78 reserved_1 = 0000 reserved_2 = 0000 MetaImage 2 details: filePresent = 0001 coreId = B5510000 >>> BSS fileOffset = 1EC00 CRC_lo = D05D7A98 CRC_hi = 5C1A98BA fileSize = 8840 reserved_1 = 0000 reserved_2 = 0000 MetaImage 3 details: filePresent = 0001 coreId = D5510000 >>> DSS fileOffset = 27440 CRC_lo = EF45D441 CRC_hi = 12ED896C fileSize = 27630 reserved_1 = 0000 reserved_2 = 0000 MetaImage 4 details: filePresent = 0008 coreId = 444E454D >>> INVALID fileOffset = 43525052 CRC_lo = 17610 CRC_hi = 0000 fileSize = 0004 reserved_1 = 0001 reserved_2 = 0000 Shared memory word: 0008 <34><00><BC><F7><FF><09><17><00> : <53><00><94><38><30><00><31><9C> <00><34><A4><00><34><52><AD><F5> : <B4><3A><30><00><31><BC><00><34> <C4><00><34><22><31><35><D4><3C> : <30><00><31><7C><32><7F><C9><38> <1F><7C><8A><7D><F4><FE><FF><E6> : <EA><7E><F3><7F><7F><02><FF><E6> <99><30><14><F0><49><74><67><75> : <1A><07><00><01><FF><F0><00><00> <85><6E><01><00><25><7F><01><00> : <93><D3><01><00><00><00><00><00> 527: {Write to Sram} metaImage number: 1 metaImage type: 4 chunk: 524 Remainder bin file addr: 0001EBC0 <AA><00><3B><F3><26> <00><00><00><00><3C><33><00><00> : <00><00><00><00><00><08><00><00> <00><00><00><00><00><80><00><00> : <E8><E6><01><00><40><B3><00><08> <88><EB><01><00><00><80><00><08> : <90><EB><01><00><50><D6><00><08> <98><EB><01><00><00><00><00><08> : 528: {Close to Sram} <AA><00><07><04><22><00><00><00><04> 211: {Open to Sram} image ID: 2 metaImage type:5 <AA><00><13><D1><21><00><00><88><40><00><00><00><04><00><00><00><05><00><00><00><00> 530: {Write to Sram} metaImage number: 2 metaImage type: 5 chunk: 0 bin file addr: 0001EC00 <AA><00><F3><FB><26> <52><50><52><43><31><00><08><00> : <00><00><00><00><03><00><00><00> <01><00><00><00><00><00><00><00> : <00><00><08><00><00><00><00><00> <24><00><00><00><00><00><00><00> : <00><00><00><00><00><00><00><00> <E7><10><CF><D0><ED><AD><10><D0> : <02><00><00><01><11><0A><05><00> <00><00><00><00><31><00><08><00> : <01><02><06><0B><14><06><02><00>