Me and a co-teacher are currently playing around with the Arduino IDE and what that offers, but before starting the class, we want to get the "default" firmware back (the one that works with the iOS & Android apps. I almost think I figured out how to do it, but it fails as it starts uploading. First I installed python 2.7 and the pip package installer.
I've the Github repo called "production" holds the files that look correct (https://github.com/Cannybots/production)ctv. It's full of Python scripts for upload and .HEX files to upload, but when I execute:
serialUpload_SDK6.cmd COM9 apps\racer_sdk6_ble_debug.hex
I get the error:
No module named intelHex
pip install intelHex
I got the missing library and it started programming! But - after displaying a summary showing 161 HCI packets to be transferred, it fails on the first one with the following error:
Ack out of sequence, or no ack returned
So... Where do I go from here? How do I get the default software back?
In the Arduino IDE upload the 'CannybotRacerV3' sketch found under the CannybotBlueBrain->examples menu.
Yup. We finally found it. It's quite a few github repos's with lots of code at the moment, so it took us a little time to find the one's for the V3 board. Serial still does not work though despite your example and it's a pain since we have no way to debug.
There's a plan to refactor the GitHub repos.
For the serial try this:
Serial.begin(9600, 12, 13);
This is just for future reference:
That is a cryptic error from the Nordic upload code that means the bootloader on the Brain stopped accepting the upload because the binary would be too big for the flash space avaiable. (currently the max HCI packets is 150)
The file 'racer_sdk6_ble_RELEASE.hex' should be ok to upload via serial.
That did the trick for Serial!
Now we've got exactly what we need for the workshop. I also got the banner for the Kickstarter, so I'll try to find a good spot for it and send you some pictures that you can use?
I'll skip the flashing for now, but good to know also.
Cool, and that would be great, thanks.