Other Parts Discussed in Thread: CC1120, MSP430FR6972
Hi all,
I'm developing a project using the FR6972 mcu and CC1120 transceiver and these devices will be established away from me when the products are completed.Therefore, i need to update the firmware remotely when i want.
I have mainly checked some file about msp430 bsl files such as SLAU319B,SLAU292G,SLAU550D and i decided to implement the existing algorithm structure in ez430 Chronos for both of access point and chronos watch codes and who have tried to stay as close to this examples.
I have completed the majority part of the software for both sides (access point; send init-data packets to the watch to lauch boot loader & wacth; proccessing coming data and writing memory using wbsl) and it is working but i encountered some problems during this time and have some question.
Q-1 ) Normally, i have no possibility to apply an appropriate sequence on the RST and TEST pins force the MSP430 because of these devices will be established away.
So, i'm calling the 0x1000 memory location as below code portion.
__disable_interrupt(); // disable interrupts
((void(*)())0x1000)(); // jump the BSL
But, data trasmission is broken down because of rf intterupt is stopped on CC1120 gpio pin.
Can we call boot loader simultaneously while trasmission is active? If so, how can we do it?
Q-2 ) There is a function to fill the memory as below part( every data trasmission was made successfully till this portion)
data = &RxBuffer[payloadStart];
for(i=(uint32)ptrMemory; i<((uint32)ptrMemory)+((uint32)packetSize); i++)
{
/* Write byte to address */
*(uint8 *)((uint16)i) = *data;
/* Check if write successful */
if(*(uint8 *)((uint16)i) != *data)
{
status = WBSL_OPERATION_SUCC;
}
/* Increment data pointer for next write */
data += 1;
}
Can this code part interfere the addresses correctly? If so, how can we get acknowlegde from bsl.
For example; If we assume data packet as TxBuffer[5] = [0x80,0x01,0x00,0x15,0x64,0xA3] //Mass Erase how can we get ack?
Is there any example that reading acknowledge data?
I'm waiting your attention and help.
Best Regards

