Replies: 2 comments 1 reply
-
Can I check Tyler - instead of pressing many times - can you repeat the following. Turn on power to the module. Wait at least 30 seconds. Then press reset button. Does this reset the module first time? |
Beta Was this translation helpful? Give feedback.
-
Ok, after a few hours of debugging tonight I have solved the problem here @TylerK07 Tyler. Without a better understanding of the chip architecture I cant give a definitive reason why its happening but I have a suspicion this is an interrupt or sleep/idle mode issue on the AVR128AD28 controller. It is code related and is a result of a problem with the .ino file and simply solved by banging on an i/o port of the AVR128 right before the YM3812 reset procedure:
with eg:
where the function checkFlash simply hits up an i/o pin |
Beta Was this translation helpful? Give feedback.
-
I've been scratching my head on this one for a while. Basically when I first power on the micro, it seems to lock up. I have an activity LED that's fed from PORTD, pin 7, and it turns on as soon as the micro powers on. My setup function SHOULD turn it off... but if the AVR is locked, then it stays on. From there, I can press reset a bunch of times and it will eventually turn off and then everything works fine from there on.
Couple of things:
• This only happens when power is first applied to the AVR
• After a successful reset (need to press many times), I can continue pressing RESET and it resets and works properly.
• Even when in the "locked up" state, I can still program the AVR through the UPDI port
I can't decide if this is a hardware or software issue. It never happened before and then started suddenly several months ago. Is it possible something changed in DXCore? Any starting point/direction to troubleshoot this would be greatly appreciated!
If it's helpful to peek at the code, it's actually all on GitHub here:
https://github.com/TylerK07/YM3812-Module/tree/master/Articles%208/YM3812_Velocity
Thank you kindly!
Beta Was this translation helpful? Give feedback.
All reactions