Author |
Message |
mph

Joined: Aug 25, 2007 Posts: 87 Location: France
|
Posted: Fri Apr 26, 2019 3:02 pm Post subject:
JanOstman MicroBeat Attiny85 Subject description: code errors |
 |
|
Hi
I've just begun to get some attiny85 to make simple modules, no real code background.
I'm trying to dump the code from Jan Ostman MicroBeat project, and the ISP returns errors that I don't understand.
Could someone give me a clue of what I should tweak to simply validate the code?
original code:
https://janostman.wordpress.com/the-microbeat-diy-rhythmbox/
errors:
Code: | Arduino : 1.8.9 (Linux), Carte : "ATtiny25/45/85, ATtiny85, Internal 8 MHz"
JANOSTMAN_Minipop2.ino:909:1: error: stray '\342' in program
RingCount–;
^
JANOSTMAN_Minipop2.ino:909:1: error: stray '\200' in program
JANOSTMAN_Minipop2.ino:909:1: error: stray '\223' in program
JANOSTMAN_Minipop2.ino:1045:1: error: stray '\342' in program
samplecntBD–;
^
JANOSTMAN_Minipop2.ino:1045:1: error: stray '\200' in program
JANOSTMAN_Minipop2.ino:1045:1: error: stray '\223' in program
JANOSTMAN_Minipop2.ino:1053:1: error: stray '\342' in program
samplecntBG2–;
^
JANOSTMAN_Minipop2.ino:1053:1: error: stray '\200' in program
JANOSTMAN_Minipop2.ino:1053:1: error: stray '\223' in program
JANOSTMAN_Minipop2.ino:1061:1: error: stray '\342' in program
samplecntCL–;
^
JANOSTMAN_Minipop2.ino:1061:1: error: stray '\200' in program
JANOSTMAN_Minipop2.ino:1061:1: error: stray '\223' in program
JANOSTMAN_Minipop2.ino:1069:1: error: stray '\342' in program
samplecntCW–;
^
JANOSTMAN_Minipop2.ino:1069:1: error: stray '\200' in program
JANOSTMAN_Minipop2.ino:1069:1: error: stray '\223' in program
JANOSTMAN_Minipop2.ino:1077:1: error: stray '\342' in program
samplecntCY–;
^
JANOSTMAN_Minipop2.ino:1077:1: error: stray '\200' in program
JANOSTMAN_Minipop2.ino:1077:1: error: stray '\223' in program
JANOSTMAN_Minipop2.ino:1085:1: error: stray '\342' in program
samplecntGU–;
^
JANOSTMAN_Minipop2.ino:1085:1: error: stray '\200' in program
JANOSTMAN_Minipop2.ino:1085:1: error: stray '\223' in program
JANOSTMAN_Minipop2.ino:1093:1: error: stray '\342' in program
samplecntMA–;
^
JANOSTMAN_Minipop2.ino:1093:1: error: stray '\200' in program
JANOSTMAN_Minipop2.ino:1093:1: error: stray '\223' in program
JANOSTMAN_Minipop2.ino:1101:1: error: stray '\342' in program
samplecntQU–;
^
JANOSTMAN_Minipop2.ino:1101:1: error: stray '\200' in program
JANOSTMAN_Minipop2.ino:1101:1: error: stray '\223' in program
JANOSTMAN_Minipop2.ino:1129:1: error: stray '\342' in program
if (!(tempocnt–)) {
^
JANOSTMAN_Minipop2.ino:1129:1: error: stray '\200' in program
JANOSTMAN_Minipop2.ino:1129:1: error: stray '\223' in program
JANOSTMAN_Minipop2.ino:1213:1: error: stray '\342' in program
if (!(LEDclock–)) {
^
JANOSTMAN_Minipop2.ino:1213:1: error: stray '\200' in program
JANOSTMAN_Minipop2.ino:1213:1: error: stray '\223' in program
exit status 1
stray '\342' in program |
Thanks! |
|
Back to top
|
|
 |
blue hell
Site Admin

Joined: Apr 03, 2004 Posts: 24382 Location: The Netherlands, Enschede
Audio files: 296
G2 patch files: 320
|
Posted: Fri Apr 26, 2019 4:33 pm Post subject:
|
 |
|
Looks like a character set issue the \xyz numbers being unrecognized characters due to a character set conversion error or something ... did you copy paste from the website or was there a file you downloaded?
And when copy pasted . .what did you paste it into to make the ino file? _________________ Jan
also .. could someone please turn down the thermostat a bit.
 |
|
Back to top
|
|
 |
mph

Joined: Aug 25, 2007 Posts: 87 Location: France
|
Posted: Sat Apr 27, 2019 5:23 am Post subject:
|
 |
|
Hi
I've done the copy/paste directly from the website (no automatic translations on my browser) to the arduino editor software.
I don't see any difference between the code on the website and what I get when I paste in a new ino editor window.
However the code for the CZ1 VCO is fine, no problem to dump and works well with the standard bootloader. |
|
Back to top
|
|
 |
blue hell
Site Admin

Joined: Apr 03, 2004 Posts: 24382 Location: The Netherlands, Enschede
Audio files: 296
G2 patch files: 320
|
|
Back to top
|
|
 |
mph

Joined: Aug 25, 2007 Posts: 87 Location: France
|
Posted: Sat Apr 27, 2019 2:21 pm Post subject:
|
 |
|
Thank you Sir
your corrections are right, there are no more errors in the code now.
I'll use a similar code/text editor for copy/pasting next time... never had this kind of problem before.
The programmer caused somme issues too (out of sync mostly), I've found the board libraries for the attiny series by DrAzzy are working better with my setup (using a Nano as ISP on linux):
http://drazzy.com/package_drazzy.com_index.json
Cheers and thanks again for your help. |
|
Back to top
|
|
 |
blue hell
Site Admin

Joined: Apr 03, 2004 Posts: 24382 Location: The Netherlands, Enschede
Audio files: 296
G2 patch files: 320
|
Posted: Sat Apr 27, 2019 2:51 pm Post subject:
|
 |
|
Great, glad I could help
It is a problem with the web page though, so there should be no need for different tools ... but ... you might want to send off a note to Jan Ostman pointing him to this thread - I'm sure he would understand the issue then (being that his web tool made UTF-8 of the code .. where it should have stayed ASCII). _________________ Jan
also .. could someone please turn down the thermostat a bit.
 |
|
Back to top
|
|
 |
|