Forty Two

Anything at least distantly related to MegaDrum

Forty Two

Postby Ken Forgettable » Fri Feb 06, 2009 11:02 am

dmitri,

Your copyright notice is gone - did you remove the virus correctly?
Ken Forgettable
 
Posts: 402
Joined: Tue Jan 06, 2009 5:04 pm

Re: Forty Two

Postby dmitri » Fri Feb 06, 2009 11:57 am

Is it THE ultimate question?
dmitri
Site Admin
 
Posts: 8706
Joined: Fri Aug 03, 2007 8:05 pm

Re: Forty Two

Postby Ken Forgettable » Fri Feb 06, 2009 12:10 pm

We can all see you know the answer to that by now...

But seriously - in the mean time I think you'll be needing this:

static volatile
Ken Forgettable
 
Posts: 402
Joined: Tue Jan 06, 2009 5:04 pm

Re: Forty Two

Postby dmitri » Fri Feb 06, 2009 12:22 pm

I have it.
dmitri
Site Admin
 
Posts: 8706
Joined: Fri Aug 03, 2007 8:05 pm

Re: Forty Two

Postby Ken Forgettable » Sun Feb 08, 2009 5:52 pm

On a virgin 16MHz synthex v2.8 kit using 20081222 firmware with pullups fitted the first thing it does is make the LED glow.

slayer666 wrote:In midiox there's constant footcontroller activity, and I have nothing attached. No piezo and no hihat pot.

--cut --

This seems only to occur after a firmware update directly after the megadrum rebooted itself. It keeps on scrolling forever..

Take a look at the screenshot.
midiox_pin4gnd.jpg



We know the statemachine should only be sending CCs when a change has occured therefore we could deduce that some signal activity is occuring within the 2ms period but observing Data2 we see the signal always reads HI with no transitions - how can this be?.

I see some noise (those 4 multiplexers are all being switched at the same time) but when I load the defaults - the activity stops.

If:-
1. The state machine needs to compare consecutive readings on this channel in order to recongnise a signal change over time - it must use a store for the previous value.

and
2. I know a compiler will warn against using uninitialised variables because it's a common problem but I see your code goes like shit off a shovel so assume the state machine is hand optimised assembler.


The question therefore is: Can the store contain a uninitialised (random) value > &7F?
You do not have the required permissions to view the files attached to this post.
Ken Forgettable
 
Posts: 402
Joined: Tue Jan 06, 2009 5:04 pm

Re: Forty Two

Postby dmitri » Sun Feb 08, 2009 8:19 pm

You most certainly right.
Connect a HH pedal and set Low and High for the pedal accordingly and it won't bother you any more.
dmitri
Site Admin
 
Posts: 8706
Joined: Fri Aug 03, 2007 8:05 pm

Re: Forty Two

Postby Ken Forgettable » Mon Feb 09, 2009 12:13 am

I will follow your advice and appreciate your help - thanks.

PS.
Is viewtopic.php?f=3&t=532&start=0 the same question :idea:
Ken Forgettable
 
Posts: 402
Joined: Tue Jan 06, 2009 5:04 pm

Re: Forty Two

Postby dmitri » Mon Feb 09, 2009 12:26 am

Ken Forgettable wrote:I will follow your advice and appreciate your help - thanks.

PS.
Is viewtopic.php?f=3&t=532&start=0 the same question :idea:

No, it's different.
dmitri
Site Admin
 
Posts: 8706
Joined: Fri Aug 03, 2007 8:05 pm

Re: Forty Two

Postby Ken Forgettable » Wed Mar 18, 2009 3:52 pm

With the new erase_firmware.syx idea is there any point in using a button to initiate a FW update?

Eg. (I assume you don't need a page write!)
+ New build bootloader
....set fwUpdateSemaphore

+ Megadrum firmware gets the erase_firmware.syx
....set fwUpdateSemaphore
....reboot

+ On powerup bootloader checks fwUpdateSemaphore

Perhaps the fwUpdateSemaphore could be a pointer to the crystal speed...
Ken Forgettable
 
Posts: 402
Joined: Tue Jan 06, 2009 5:04 pm

Re: Forty Two

Postby Ken Forgettable » Wed Apr 08, 2009 4:55 pm

...the smart bootloader works out it's own F_CPU, it knows roughly which syx to expect...

The fwUpdateSemaphore then becomes
reset vector == &FFFF
Ken Forgettable
 
Posts: 402
Joined: Tue Jan 06, 2009 5:04 pm

Next

Return to Off topic

Who is online

Users browsing this forum: No registered users and 8 guests