matoz Posted March 21, 2008 Report Share Posted March 21, 2008 Salut à tous, je viens de finir une clockbox, et comme je n' y comprend pas grand chose à la programmation :-\ , je fais appel à vous car je voudrais faire une petite modif:En fait, j' aimerais réduire le nombre de mesures de 256 à 16, je pense que c' est tout à fait possible, mais je ne connais pas du tout la marche à suivre pour modifier clockboxV1.0 ou V1.1....Voilà , merci Quote Link to comment Share on other sites More sharing options...
matoz Posted March 27, 2008 Author Report Share Posted March 27, 2008 Bonjour à tous, je reviens vers vous, car j' ai épeluché tous les fichiers qui sont dans Clockbox V1.0 et V1.1 et je ne vois pas d' endroit ou il faut modifier le programme pour réduire le nombre de mesures à 16 :-\ . D' après ce que j' ai compris, il faut modifier le fichier .asm mais je ne trouve aucune ligne qui mentionne le nombre de mesures... Y' a t il un programmeur qui pourrait me renseigner et m' expliquer la marche à suivre parce que là je ne sais plus quoi faire.... ça doit être tout con à faire, et ça doit être devant mes yeux... Quote Link to comment Share on other sites More sharing options...
moxi Posted March 28, 2008 Report Share Posted March 28, 2008 salut,de quelle mesures tu parles? Quote Link to comment Share on other sites More sharing options...
matoz Posted March 28, 2008 Author Report Share Posted March 28, 2008 Heu, comment dire, les phrases, le chiffre qui avance le plus lentement..., le chiffre le plus à gauche, (à droite des BPM). Quote Link to comment Share on other sites More sharing options...
moxi Posted March 28, 2008 Report Share Posted March 28, 2008 ok,je pense qu'il te faut ajouter quelque chose comme ça dans mclock.c :#endif if( ++mclock_ctr_beats == 4 ) { mclock_ctr_beats = 0; ++mclock_ctr_measures;}/////////////////////////////////////////////////////////////////if( mclock_ctr_measures == 16 ) { mclock_ctr_measures = 0; }//////////////////////////////////////////////////////////////sous reserve.. Quote Link to comment Share on other sites More sharing options...
matoz Posted April 29, 2008 Author Report Share Posted April 29, 2008 Merci pour ta réponse mais je ne vois pas vraiement ou je doit insérer cela... n' importe où? ???Et je pensais, il doit bien y avoir un endroit où il est écrit "if mesure = 256 then recommence à 0...." el je pensais juste remplacer 256 par 16... Quote Link to comment Share on other sites More sharing options...
moxi Posted April 29, 2008 Report Share Posted April 29, 2008 salut,à priori, "mclock_ctr_measures" ne revient pas à zero à 255, bien qu'il s'agisse d'un char:unsigned char mclock_ctr_measures; // counts the measures (up to 65535)pourquoi, comment ? ??? si il y a quelqu'un qui sait...sinon:dans le fichier mclock.c, ligne 178, tu peux voir: if( ++mclock_ctr_beats == 4 ) { mclock_ctr_beats = 0; ++mclock_ctr_measures; } je ne suis pas trop sûr de moi, mais ça devrait marchait en ajoutant le code juste aprés (en restant dans le même "if" ): if( ++mclock_ctr_beats == 4 ) { mclock_ctr_beats = 0; if( ++mclock_ctr_measures == 16 ) { mclock_ctr_measures = 0; } } teste comme ça, si ça marche pas (problême de syntaxe ou de priorité, va savoir, mais à priori y'a pas de raison ::) ) , décompose le truc : if( ++mclock_ctr_beats == 4 ) { mclock_ctr_beats = 0; ++mclock_ctr_measures == 16; if( mclock_ctr_measures == 16 ) { mclock_ctr_measures = 0; } } c'est moins joli, mais surement le compilateur rendra la même chose en sortie.. Quote Link to comment Share on other sites More sharing options...
moxi Posted May 1, 2008 Report Share Posted May 1, 2008 ça marche alors? Quote Link to comment Share on other sites More sharing options...
matoz Posted May 5, 2008 Author Report Share Posted May 5, 2008 je galère avec les histoires de recompilateur, ou alors je dois pas modifier le bon fichier, mais je vais y arriver >:( Quote Link to comment Share on other sites More sharing options...
electroremy Posted May 22, 2008 Report Share Posted May 22, 2008 Hello,I'am French but I can read and write english. If you're French, you can aslo answer me in French :-DI am trying to solve MATOZ25's problem (clockbox count to 16 instead of 256) I've install on my PC GPUTILS, Perl and SDCC. I've also set my PATH parameters !Before trying to change the code, I've just tying to compile the current code, in order to check if my computer is correctly installed. At the end of this post is the result of the DOS windows when I run "make.bat" file. I've got a HEX and SYX file, but I obtain a hight number of "warning", so I want to known if I make something wrong :I compare the original .hex file and the .hex file I've obtain with a hexadecimal editor and I found differences :-/Thanks--Bonjour,Je suis en train d'essayer de résoudre le problème de MATOZ25 (arrêter le comptage à 16 au lieu de 256)J'ai installé l'ensemble des outils nécessaires comme indiqué sur votre site. Avant de tenter de modifier le code, j'essaye déjà de recompiler le code existant pour vérifier si mon PC est correctement configurer.Apparament ça marche (j'obtiens des fichiers .HEX et .SYX) mais j'ai pas mal de warning; pouvez-vous jeter un oeuil ?Avec un éditeur hexadécimal j'ai comparé le fichier .hex original et celui que j'ai généré et il y a des différences :-/Merci--Microsoft Windows XP [version 5.1.2600]C:\Documents and Settings\RLUCAS>cd d:\_matoz25\clockbox_v1_1\C:\Documents and Settings\RLUCAS>d:D:\_matoz25\clockbox_v1_1>make.batMakefile generated.Makefile.bat generated.Assembling MIOS SDCC wrapper==========================================================================Compiling mclock.cat 1: warning 117: unknown compiler option '--fstack' ignored==========================================================================Compiling pic18f452.cat 1: warning 117: unknown compiler option '--fstack' ignored_output\pic18f452.asm:168:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:171:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:174:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:177:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:180:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:186:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:189:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:192:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:195:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:198:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:204:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:207:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:210:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:213:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:216:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:222:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:225:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:228:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:231:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:234:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:237:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:243:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:252:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:255:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:264:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:272:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:277:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:285:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:288:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:293:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:296:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:299:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:304:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:309:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:314:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:317:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:320:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:323:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:329:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:334:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:360:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:363:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:366:Warning [231] No memory has been reserved by this instruction._output\pic18f452.asm:378:Warning [231] No memory has been reserved by this instruction.==========================================================================Compiling mtc.cat 1: warning 117: unknown compiler option '--fstack' ignored==========================================================================Compiling main.cat 1: warning 117: unknown compiler option '--fstack' ignored==========================================================================Linking project==========================================================================Converting to project.syxBlock 003000-0033FF allocated - Checksum: 34Block 003400-0037FF allocated - Checksum: 4CBlock 003800-003BFF allocated - Checksum: 49Block 003C00-003FFF allocated - Checksum: 41Block 004000-0043FF allocated - Checksum: 6CBlock 004400-0047FF allocated - Checksum: 67==========================================================================SUCCESS!D:\_matoz25\clockbox_v1_1> Quote Link to comment Share on other sites More sharing options...
stryd_one Posted May 24, 2008 Report Share Posted May 24, 2008 C'est bien!LOL I really shouldn't try to speak other languages! Quote Link to comment Share on other sites More sharing options...
electroremy Posted May 27, 2008 Report Share Posted May 27, 2008 I've installed the following versions of the tools :ActivePerl 5.10.0 Built 1002GP Utils 0.13.5SDCC 2.8.0Can you help me (see previous answer in this topic) ?Thanks.--Voici les versions des outils que j'ai installé :ActivePerl 5.10.0 Built 1002GP Utils 0.13.5SDCC 2.8.0Pouvez-vous m'aider pour que je puisse arriver à compiler correctement (cf ma précedente réponse dans ce sujet) ?Merci. Quote Link to comment Share on other sites More sharing options...
stryd_one Posted May 27, 2008 Report Share Posted May 27, 2008 It is compiling correctly, and the instructions for changing to 256 measures are above, written in neither french nor english, but C and ASM.... Go for it! ;) Quote Link to comment Share on other sites More sharing options...
electroremy Posted May 27, 2008 Report Share Posted May 27, 2008 Hi,You say that my program compiles correctly, but I don't understand why the .hex file I've got and the .hex that I've download on your website are different ???Thanks--Bonjour,Vous dites que mon programme compile correctement, mais ce que je ne comprends pas ce sont les différences entre le fichier .hex que j'obtiens et le fichier .hex téléchargé sur le site.Merci Quote Link to comment Share on other sites More sharing options...
stryd_one Posted May 27, 2008 Report Share Posted May 27, 2008 My guess is that they are different because the precompiled version was made with an older version of SDCC. I compiled it on my PC for you and the checksums are the same... Looks good. Quote Link to comment Share on other sites More sharing options...
electroremy Posted May 30, 2008 Report Share Posted May 30, 2008 Hi,Matoz25 have tested my syx file and he says to me that it does not function :When clockbox reboots after syx file download, the LCD displays "rebooting MIOS" and anything else appends.Here is anybody here that use same versions of tools than me ?Should I change any settings in the tools ?Should I edit make.bat ?Thanks ;)--Bonjour,Matoz25 vient d'essayer le programme que j'ai compilé et il ne fonctionne pas :Quand la clockbox redémarre, ce qu 'elle doit faire après tout téléchargement, l' affichage reste bloqué sur "rebooting MIOS". et l' application ne se met pas en route...Quelqu'un ici utilise t il les mêmes versions des langages de programmation ?Y'a t il des choses à paramètrer ?Faut il modifier make.bat ?Merci ;) Quote Link to comment Share on other sites More sharing options...
stryd_one Posted May 30, 2008 Report Share Posted May 30, 2008 Is the core working with other firmware? Quote Link to comment Share on other sites More sharing options...
matoz Posted May 30, 2008 Author Report Share Posted May 30, 2008 Yes it works with clockbox v0.1 , v1.1 ... Quote Link to comment Share on other sites More sharing options...
stryd_one Posted May 30, 2008 Report Share Posted May 30, 2008 I can't explain this or test it as I don't have a clockbox :( Anyone? Quote Link to comment Share on other sites More sharing options...
matoz Posted June 2, 2008 Author Report Share Posted June 2, 2008 I asked to remy to change sysex file in .hex and it works... I don' t know why ???Thanks for your help!!! Quote Link to comment Share on other sites More sharing options...
stryd_one Posted June 3, 2008 Report Share Posted June 3, 2008 Ohhh. Upload hex files with mios studio in smart mode. syx isnt recommended any more. Quote Link to comment Share on other sites More sharing options...
matoz Posted June 11, 2008 Author Report Share Posted June 11, 2008 Voilà , j' ai mis en pièce jointe clockboxV0 modifié par Remy pour l' affichage de 16 mesures maxi.Merci à tous pour votre aide.... ;)clockbox_v0_modifie.hexclockbox_v0_modifie.hex Quote Link to comment Share on other sites More sharing options...
matoz Posted June 11, 2008 Author Report Share Posted June 11, 2008 salut à tous,je voudrais savoir si c' est possible que la clockbox puisse être esclave? c' est à dire si elle peut être démmarée par une autre machine et transmettre la synchro?Et le top, ce serait que ça se fasse automatiquement comme seqV3 lorsqu' il reçoit une synchro... Et je me dit que si SeqV3 le fait, ça doit être possible pour la clockbox? Quote Link to comment Share on other sites More sharing options...
matoz Posted July 8, 2008 Author Report Share Posted July 8, 2008 Le sujet a évolué sur la section "mios programming C" , subject: "clockbox in slave mode" et il a été résolu. Merci Rémy ;) Vous y trouverez le fichier .hex et le code source.La clockbox se met automatiquement en slave mode dès qu' elle reçoit une synchro, et retourne en mode master lorsque le maître a stoppé. Avec affichage en 16 mesures.Merci pour votre aide! 8) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.