I Have been following along on the video PSoC 6 101 lesson 3-2a creating a BLE custom service... PSoC 6 101: Lesson 3-2a Creating a BLE Custom Service for Robotic Arm Project (MainController) - You...
At about 6:55 into the video Alan introduces a function called genericEventHandler(...), He "magickly" pasted this into main_cm4.c without any explaination of where it came from etc. It was not covered in any previous lesson. Also there was a comment that says "all of the code for these tutorials is on GitHub.
Can someone / anyone please tell me where exactly in GetHub that example is ?
> That is exactly it. How did you ever find that?
I wish they have put the URL in the video page.
I found it doing the steps below.
(1) I went to GitHub.com
(2) Enter "cypress psoc6 101" In the upper left search box, next to the cat? icon.
(3) The search result showed "cypresssemiconductorco/PSoC6-101-Video-Projects", so I clicked the line
(4) I arrived at the "PSoC6-101-Video-Projects" page and found that there is a PSoC_6_101 folder.
I selected the folder.
(5) Now I can see folders of each chapters, so I scroll down to 3-2- and selected the folder
(6) Now we are in the project of 3-2-SimpleBLEPeripheral.cydsn/
Scroll down to find "main_cm4.c" and selected it
Thanks so much for the very detailed explanation etc.
One final question... Did it run for you? As I can not even get it to advertise etc.
> One final question... Did it run for you? As I can not even get it to advertise etc.
Reading this line, I laughed a lot...
But then, when I checked my study directory...
I noticed that I was dead before reaching to this lesson.
As in the Lesson 3-1 following line was not compile-able,
I could not finish the lesson 3-1.
xTaskCreate(bleTask, "bleTask", 8*1024, 0, 2, &bleTaskHandle) ;
I remembered that I wasted a lot of time on this (;_;)
By seeing the github source and/or watching the Lesson 3-2a
now I know that it was supposed to be
xTaskCreate(bleTask, "bleTask", 8*1024, 0, 2, 0) ;
So I followed the Lesson 3-1 and Lesson 3-2a, again.
Except the line above, the samples seem to be working.
Probably you have missed something in the content.
Attached is my copy of the Lesson 3-2a.
P.S. If you have tried the Lesson 3-1, you did not need to access github,
but then you may not have been able to finish the Lesson 3-1 because of the reason above