Hi everyone !
I ordered a CC2564 evaluation module with a MSP-EXP430F5438.
For most of the samples demo from Bluetopia, the same error occured :
Only two samples demo work among the whole list.
Any idea how to solve this problem ?
Thanks !
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi everyone !
I ordered a CC2564 evaluation module with a MSP-EXP430F5438.
For most of the samples demo from Bluetopia, the same error occured :
Only two samples demo work among the whole list.
Any idea how to solve this problem ?
Thanks !
Hi,
Are you using the CC2564B? Then you might need to add a small patch for it to work. http://processors.wiki.ti.com/index.php/CC256x_MSP430_Bluetopia_Basic_Demo_APPS#CC256XB_Information
Can you make sure that the Hardware is setup correctly http://processors.wiki.ti.com/index.php/PAN1315EMK_User_Guide#MSP430F5438_Experimenter_Board and that you are flashing the correct project to the Hardware as here ?
Could you tell me which of the demos work for you and which of the demos don't? Have you made any modifications to the code?
Thanks,
Stonestreet One.
Hi and thanks for your answer.
I have checked every point you suggested and it sill doesn't work.
To answer your questions :
The working demos are A3DP Demo and SPP Demo.
The non working demos are HFP Demo, HOGP Keyboard Demo, SPPLE Demo and maybe more because I didn't try the other demos.
No modification has been made in the code for each demo.
Moreover, I saw a post on the forum saying that this kind of problem came from the MSP430F5438 REV D and had been solved by using a MSP430F5438 REV F.
So I tried to use MSP430F5438 REV F and REV H and it didn't change anything.
Have a nice day !
Hi,
TI is also working on this. We will try to get a reply shortly on this.
Thanks,
Stonestreet One.
Hi Geoffrey,
Its very weird that some demos work, and some don't. Usually, its a pretty simple if you are using MSP430F5438, because we have already tested it many times.
Can you give me the below details:
1. Bluetopia stack version.
2. When you say some demos work and some don't, is it like that always? I mean, the demos that work, does it work always, and the demos that don't work does it never work?
Since some of the demos work, I doubt if this is a HW issue. The only likely issue is if the correct patch is not downloaded.
Can you double confirm if adding:
#define __SUPPORT_CC256XB_PATCH__ in BTPSVend.C
hasn't helped to solve the issue?
Regards,
Gigi Joseph.
Thanks for your answer.
1. Bluetopia version is 4.0.1.8
2. The demos that don't work have never worked.
I can confirm again that adding #define __SUPPORT_CC256XB_PATCH__ in BTPSVend.C hasn't changed anything.
Have a nice day.
Hi Geoffrey,
Can you please confirm the Bluetopia version again? The one thats currently active for MSP430 is: "1.4 R1" (http://www.ti.com/tool/stonestreetone-bt-sdk)
Regards,
Gigi Joseph.
Hi,
So you are using CC2564 evaluation module with a MSP-EXP430F5438 and CC256x MSP430 Bluetopia SDK v1.4 R1 Setup correct?
Can you please provide the HCI Read Local Version Information value(see below) to check if you are using CC2564B or CC2564 http://processors.wiki.ti.com/index.php/CC256x_Testing_Guide#UART_Communication
Ho, you are correct.
How can I get the HCI Read Local Version Information value ? Asking for it in hyperterminal while using a sample demo is not working ("unauthorized command")...
I have to modify the code of a sample demo to get it ?
Thanks
Hi,
Yes, you can Modify the working samples demo(From your previous post I can see that two demos are working) to call the API "HCI_Read_Local_Version_Information" from the user interface.
and I hope you have gone through the link I have provided. which says that, It is not necessary to download the service pack to verify UART communication with the example(HCI Read Local Version Information).
I tried to do what you said. I put in a demo code the HCI_Read_Local_Version_Information but this doesn't work, it never returned 0 meaning it never succeeded.
Here are my lines of code :
/* Initialize the application. */ if((Result = InitializeApplication(&HCI_DriverInformation, &BTPS_Initialization)) > 0) { /* Save the Bluetooth Stack ID. */ BluetoothStackID = (unsigned int)Result; if(HCI_Read_Local_Version_Information(BluetoothStackID, StatusResult, CI_VersionResult, HCI_RevisionResult, LMP_VersionResult, Manufacturer_NameResult, LMP_SubversionResult)==0) { HAL_ConsoleWrite(10,"lalalalalalalalalalala"); }
So normally, if HCI_Read_Local_Version_Information succeeded, I should have "lalalalalalala" on hypeterminal but never happened meaning it doesn't work.
Should I put it in a special place in a demo code ?
To me I have to put it after getting BluetoothStackID.
Thanks
Hi,
Please add a new command "AddCommand("VERSION", Version);" so that you can run it from the hyperterminal
and see the attached file how the version function is implemented 5224.LinuxHCI.c and you can do it in the similar way
Here are the responses from CC2564
HCI Version : 0x06
HCI Revision : 0x0000
LMP Version : 0x06
Manufacturer Name : 0x000D
LMP SubVersion : 0x1B90
Hi,
Thank you. You are using CC2564B. LMP subversion for CC256xB is 0x1B90(instead of 0x1B0F for CC256xA)
While building and downloading the demos, Make sure that In the workspace tab, the configurations to load the device should be present. From the drop-down menu select the "Debug - MSP430F5438A Exp".
as other than this I don't see why it should work for some demos and not for others.
If the issue still there please also provide the below information:
1. What is the IDE you are using CCS/IAR?
2. Provide me the complete logs that you see on the Tera Term.(it will be good if you can give success(working demo) and failure case(non working demo))
I am using CCS.
From the drop-down "Debug - MSP430F5438A Exp" is selected.
The log for a working demo :
For a non working demo :
I use the same configuration for both. I just used a picture I found on the net for the non working demo log, this is why it is windows seven for only one picture. I have exactly the same message : "Stack init failed..."
Hi,
I have tried with the same set up on my side and I don't see any problem.
It is really strange that some demos work and some does not. It looks like you are doing everything right.
I hope you have not modified something unknowing, You can try downloading the Bluetopia SDK V1.4 R1 once again
I already tried to redownload and reinstall Bluetopia and it didn't change anything.
So the problem may come fromm CC2564 ?
I could try to use IAR. But will i be able to flash the code with a free version of IAR ?
Hi,
I think you can. I have not used the free version myself. But it is worth giving a try.
I have used both CCS/IAR and I don't see any problem.
Could we envisage to send you the board with the CC2564 to see if you manage to program it and to know if it is a harware issue ?
Hi,
No problem you can send it to me, I can try and see if the hardware is fine.
Sundeep kumar Mandava,
Texas Instruments (India) Pvt. Ltd.
Bagmane Tech Park
No. 66/3, Adjacent to LRDE
Byrasandra, C V Raman Nagar Post
Bangalore - 560 093
India.
Hi Sundeep,
I am trying to run HFP demo app from bluetopia sdk for ti256x v1.4R2 on MSP430F5438 experimentors board.
But getting the same issue.
Stack Initialization on Port 1 115200 (UART) Failed: -4.
Unable to open the stack.
On furthering debugging I found that it fails in Openstack() at
Result = BSC_Initialize(HCI_DriverInformation, 0);
I tried searching for defination of BSC_Initialize but couldnt find any.
Thanks in advance.
Hi,
I have tried it myself and I did not see any problem.
check what is the chip version you are using and if you are using B version, then you need to apply the patch as mentioned in the above thread.
Thanks for quick reply.
Actually I have WL1831 com board and I am trying to interface that with MSP430. I have made the changes to HRDWCFG.h and also configured one of the GPIO as BT enable.
has anyone tried it before ?
Can you suggest proper way of interfacing wl1831 with msp430?
Is there any patch for the same ? like TI's 256x.h ?
Hi,
I have not tried it myself.
It might work if the service pack is changed and but the patch size also will be high.
Thanks again for quick reply.
So is there any patch for wl1831 with MSP?
Where can I get help for the same?
Hi,
No we don't have one readily available. I have created one you can give it a try.
File that you shared has the base patch.
Is low energy patch code included in that because in 256x.h there is separate patch for low energy which is downloaded/referenced in multiple places in BTPSVEND.c
If yes I can comment low energy patch portion.
Hi Sundeep,
Still getting the same error.
Unable to initialize stack
it is failing at same function
Openstack() at
Result = BSC_Initialize(HCI_DriverInformation, 0);
Hi Sudeep,
Is there any other change that needs to be made for that patch to work ?
or
what other changes are required to test HFPdemo with WL1831 and MSP430 ?
Hi,
Do you mean MSP430 + WL18xx? or MSP430 +CC256x?.
If you mean MSP430 + WL18xx, I have not tried it myself, But you need to take care if the hardware interface is fine, and download the latest SP 3.6.1 and try.
Hi,
I have two MSP430F5438A with CC2564, have the same issue, can not open bluetooth stack. One of the board was always working till I switched to the other one that has this open stack problem. Now the working board won't be able to open stack! Nothing has changed.
Do you ever find the solution?
Thanks a lot!
Hi Geoffrey,
Did you manage to find this opening bluetooth stack problem? Is it HW problem? I am facing the same problem now.
Thanks a lot!
Hi Geoffrey,
Thanks a lot for letting me know, I will be getting a new CC2564 MODN board to see if it is HW problem.
Best regards,