Dear all,
as suggested, I open a new thread for my Bluetooth problems - as it
turned out that it has nothing to do with the toolchain upgrade.
My problems seems to be realted to this file: "Msp430DcoSpec.h"
If it exists in my source directory, then the Blueooth functionality of
my App does not work any more.
If it does not exist, it is working.
Contents of this file is:
#ifndef MS430DCOSPEC_H
#define MS430DCOSPEC_H
#define TARGET_DCO_KHZ 8192 // the target DCO clock rate in binary kHz
#define ACLK_KHZ 32 // the ACLK rate in binary kHz
#endif
You can test it by copying the file to the swtest/Bluetooth app.
(Bluetooth Hello-World app).
I have to questions:
1. What is the effect of this file?
2. For which applications is it reasonable to have this file and how do
I get the Bluetooth working even when the file exists?
Besides this, in my app there is this function:
void initialize_8mhz_clock(){
/*
* set up 8mhz clock to max out
* msp430 throughput
*/
register uint8_t i;
atomic CLR_FLAG(BCSCTL1, XT2OFF);
call Leds.led0On();
do{
CLR_FLAG(IFG1, OFIFG);
for(i = 0; i < 0xff; i++);
}
while(READ_FLAG(IFG1, OFIFG));
call Leds.led0Off();
call Leds.led1On();
TOSH_uwait(50000U);
atomic{
// BCSCTL2 = 0;
// SET_FLAG(BCSCTL2, SELM_2);
}
call Leds.led1Off();
atomic{
// SET_FLAG(BCSCTL2, SELS); // smclk from xt2
// SET_FLAG(BCSCTL2, DIVS_1); // divide it by 2; smclk will run at
8 mhz / 2; spi bus will run at 4mhz / 2
}
}
To get Bluetooth working, I had to comment out these four lines.
But I have no clue what the original sense of these four lines was...
Thanks,
Franz
_______________________________________________
Shimmer-users mailing list
[email protected]
https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users