electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Articles  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links  |  Store
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » DIY Hardware and Software » Arduino
JanOstman MicroBeat Attiny85
Post new topic   Reply to topic
Page 1 of 1 [6 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
mph



Joined: Aug 25, 2007
Posts: 81
Location: France

PostPosted: Fri Apr 26, 2019 3:02 pm    Post subject: JanOstman MicroBeat Attiny85
Subject description: code errors
Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message
Blue Hell
Site Admin


Joined: Apr 03, 2004
Posts: 22807
Location: The Netherlands, Enschede
Audio files: 231
G2 patch files: 319

PostPosted: Fri Apr 26, 2019 4:33 pm    Post subject: Reply with quote  Mark this post and the followings unread

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 .. please don't march .. we are on a bridge right now.
Back to top
View user's profile Send private message Visit poster's website
mph



Joined: Aug 25, 2007
Posts: 81
Location: France

PostPosted: Sat Apr 27, 2019 5:23 am    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message
Blue Hell
Site Admin


Joined: Apr 03, 2004
Posts: 22807
Location: The Netherlands, Enschede
Audio files: 231
G2 patch files: 319

PostPosted: Sat Apr 27, 2019 6:40 am    Post subject: Reply with quote  Mark this post and the followings unread

okay .. tried to do the same .. copy from website paste into text wrangler and then save as an ino file .. there is some unicode stuff in the file all the '-' (minus) characters are non ASCII, the C compiler will not understand that.

Tried to fix it .. maybe the attached file will work for you?


ostman.ino
 Description:
some fixed code for mph .. its not mine ...

Download
 Filename:  ostman.ino
 Filesize:  36.79 KB
 Downloaded:  47 Time(s)


_________________
Jan
also .. please don't march .. we are on a bridge right now.
Back to top
View user's profile Send private message Visit poster's website
mph



Joined: Aug 25, 2007
Posts: 81
Location: France

PostPosted: Sat Apr 27, 2019 2:21 pm    Post subject: Reply with quote  Mark this post and the followings unread

Thank you Sir respect
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
View user's profile Send private message
Blue Hell
Site Admin


Joined: Apr 03, 2004
Posts: 22807
Location: The Netherlands, Enschede
Audio files: 231
G2 patch files: 319

PostPosted: Sat Apr 27, 2019 2:51 pm    Post subject: Reply with quote  Mark this post and the followings unread

Great, glad I could help Very Happy

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 .. please don't march .. we are on a bridge right now.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic
Page 1 of 1 [6 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » Arduino
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
e-m mkii

Please support our site. If you click through and buy from
our affiliate partners, we earn a small commission.


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use