Jump to content

Problem with convert.bat


Recommended Posts

I built a box with 24 buttons (D1 - D3) and 19 enc ( 3 enc on D4 and 16 enc on D5 - D8)

and I uploaded 64E, evrything seems fine except 3 enc on D4(they are recgonized as buttons with 64E right?),

then I understood that I have to change "mios_table.inc" after reading forum.

I changed as

;; encoders 1-16

;;        SR  Pin  Mode

ENC_ENTRY  4,  0,  MIOS_ENC_MODE_NON_DETENTED ; V-Pot 1

ENC_ENTRY  4,  2,  MIOS_ENC_MODE_NON_DETENTED ; V-Pot 2

ENC_ENTRY  4,  4,  MIOS_ENC_MODE_NON_DETENTED ; V-Pot 3

ENC_ENTRY  5,  0,  MIOS_ENC_MODE_NON_DETENTED ; V-Pot 4

ENC_ENTRY  5,  2,  MIOS_ENC_MODE_NON_DETENTED ; V-Pot 5

ENC_ENTRY  5,  4,  MIOS_ENC_MODE_NON_DETENTED ; V-Pot 6

ENC_ENTRY  5,  6,  MIOS_ENC_MODE_NON_DETENTED ; V-Pot 7

ENC_ENTRY  6,  0,  MIOS_ENC_MODE_NON_DETENTED ; V-Pot 8

ENC_ENTRY  6,  2,  MIOS_ENC_MODE_NON_DETENTED ; V-Pot 9

ENC_ENTRY  6,  4,  MIOS_ENC_MODE_NON_DETENTED ; V-Pot 10

ENC_ENTRY  6,  6,  MIOS_ENC_MODE_NON_DETENTED ; V-Pot 11

ENC_ENTRY  7,  0,  MIOS_ENC_MODE_NON_DETENTED ; V-Pot 12

ENC_ENTRY  7,  2,  MIOS_ENC_MODE_NON_DETENTED ; V-Pot 13

ENC_ENTRY  7,  4,  MIOS_ENC_MODE_NON_DETENTED ; V-Pot 14

ENC_ENTRY  7,  6,  MIOS_ENC_MODE_NON_DETENTED ; V-Pot 15

ENC_ENTRY  8,  0,  MIOS_ENC_MODE_NON_DETENTED ; V-Pot 16

;; encoders 17-32

ENC_ENTRY  8,  2,  MIOS_ENC_MODE_NON_DETENTED ; V-Pot 17

ENC_ENTRY  8,  4,  MIOS_ENC_MODE_NON_DETENTED ; V-Pot 18

ENC_ENTRY  8,  6,  MIOS_ENC_MODE_NON_DETENTED ; V-Pot 19

        ENC_EOT

        .

        .

        .

        .

and I tried convert.bat but hex file doesn't look to be changed. after I start batch file window closes really quickly

so I asume that it has problem there but I absorutly have no idea what is the reason.

If anyone have any idea, please please help me!  After a lot of problem and it's getting closer to finish the box

I can't really sleep before completly finish it. Please!! Any idea will be very appreciated

Thank you

Link to comment
Share on other sites

Try opening a dos prompt (cmd.exe) , changing to the dir and running the batch file from there, see what it does.

wow command line is a dying thing huh. Maybe I'm gettin old hehehe

I use this, BTW MS Powertools "Open Command Window Here" Tweak Warning this URL points to the exe file from MS's servers

Link to comment
Share on other sites

Thank you very much stryd! I installed the program you introduced and stied to open batch file from cmd.exe

but it goes

C:?Documents and Settings?Takashi>perl hex2syx.pl main.hex

Can't open perl script "hex2syx.pl": No such file or directory

and nothing changed. honestly this is the first time for me to open cmd.exe and I have no idea what is going on

there...I looked for the solution on the net but I couldn't find(may be I should say couldn't understand so far)

If there is any idea or something could solve problem could you give me some idea?

Thank you very much

Link to comment
Share on other sites

You do know you have to build a new main.hex file with MPLAB after changing any of the .inc files?

It is probably easier for you to install MIOS Studio, which uploads the .hex file to the Core via MIDI (i.e. you don't need to convert to SysEx, it does it for you).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...