Anonymous
Not applicable
Jul 28, 2016
01:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 28, 2016
01:30 AM
Hello Every One,
I made a program in BLE PSOC4. If i run the program without my code for sine wave generator (IDAC and TCPWM module) then, it runs perfectly fine. But if i include it, it doesn't work. This means i am unable to detect or communicate between my mobile and BLE device.
Looking forward for your suggestions.
Awais
Solved! Go to Solution.
Labels
- Labels:
-
BLE
1 Solution
Jul 28, 2016
01:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 28, 2016
01:59 AM
Have a look at the warning in line 41 (Declaration of SineTable).
You just declared a pointer, but did not reserve any storage for the array. So an assignment SinTable will destroy some data in sram.
Ways out:
char SineTable[128];
or, if you like dynamic allocations:
SineTable = malloc(TABLESIZE); // do not forget to increase Heap size!!!
Bob
3 Replies