Rockbox Development > New Ports
SanDisk Sansa c200v2, m200v4, clipv1, clipv2, clip+, and fuzev2
kugel.:
--- Quote from: RockRabbit on December 20, 2008, 03:35:30 PM ---Either the pin remains at the button pressed state until "reset" (whatever that means) which seems impossible, or I have a bug in my code - but im damned if I can see it.
Anyone have a comment re the only 2Mbytes of ram on the c200 v2 target? Is thgat a problem being so low (for audio - I could care less about games or video).
--- End quote ---
Well, apparently you have to reset the pins manually. Switch the pin to output (GPIO_DIR = 1<<X) and write the opposite value (GPIO_PIN(X) = [0 or (1<<X]), then switch to intput again (GPIO_DIR = 0).
BTW: I would really welcome if you try my patch and use a bootloader made by the build system. This is way safer, as dual boot remains if you have a bugged bootloader.
RockRabbit:
--- Quote from: kugel. on December 20, 2008, 04:42:06 PM ---
--- Quote from: RockRabbit on December 20, 2008, 03:35:30 PM ---Either the pin remains at the button pressed state until "reset" (whatever that means) which seems impossible, or I have a bug in my code - but im damned if I can see it.
Anyone have a comment re the only 2Mbytes of ram on the c200 v2 target? Is thgat a problem being so low (for audio - I could care less about games or video).
--- End quote ---
Well, apparently you have to reset the pins manually. Switch the pin to output (GPIO_DIR = 1<<X) and write the opposite value (GPIO_PIN(X) = [0 or (1<<X]), then switch to intput again (GPIO_DIR = 0).
BTW: I would really welcome if you try my patch and use a bootloader made by the build system. This is way safer, as dual boot remains if you have a bugged bootloader.
--- End quote ---
I will try the patch eventually. Its more learning curve for me to figure out how to load and apply the patch, understand what it does, etc, plus it then moves development over into C, which I have never used a lot and have not used for quite a while - more learning curve. At least the assembler is simple. And the current bootlader I understand, and I want make the most of it before I move on to something new.
This situation with resetting the GPIO pins makes me think that all the other buttons are there if I first initialise the pins before trying to read them. Some of the pins adjacent to the C6/right button that are all seemingly permanently low (the same as the right button when pressed) may just need resetting before use, and will prove to be connected to the other buttons. It makes sense for me to try this as it is so simple to do and it is something I currently understand.
By the way - do you have a comment to make re the lack of dram - only 2Mbytes? Or don't you see that as a major problem?
saratoga:
--- Quote from: RockRabbit on December 20, 2008, 06:09:48 PM ---
By the way - do you have a comment to make re the lack of dram - only 2Mbytes? Or don't you see that as a major problem?
--- End quote ---
I suppose I could have been more specific. The 2MB RAM problem causes some of the playback issues on the Clip. It will require some reworking of playback to deal with. However, since the Clip port is well ahead, I don't think its something you really need to worry about now.
kugel.:
Well, 2MB is definitely not desirable, but Rockbox is designed to run on a wide range of playes, including those with a plenty of RAM and those with very little RAM.
That means, there might be some feature restrictions (none that matter though, mainly in plugins, unlikely any in the core), and Rockbox will generally run, nicely.
And, due to being a flash target, RAM isn't so critical for audio buffering (for which the rest of the ram, that doesn't hold the binary, is used), since accessing flash is fast and cheap (energy-wise) compared to hard disc drives.
The c200 (and the c200v2 most likely too?) has a color display. Those require slightly more RAM compared to greyscale or mono targets. But I don't expect this to be a real problem - if at all.
Don't mind about the RAM for now. Until we're trying to play music, 2MB will be enough. After that, we'll get onto some optimisations and it'll just run nicely - given that the remaining MP3 & Co. problems can be fixed (which also are present on higher RAM AMS Sansas). That's at least my expectation.
RockRabbit:
Thanks kugel.
Yes the v2 c200 does have a colour display. The player is externally identical to the v1 and aside from the fact that its completely different it is identical (excuse my odd sense of humour). Put it this way, if I gave you both versions running the original firmware, if you did not look at the firmware revision number or the small "v2" printed on the back of the case, it would not be possible to tell the two apart.
I found three more buttons by pre-setting the logic levels of some of the pins. Using my new flashing-light bootloader, I can detect four buttons at a time. Ive updated the twiki. They are:
c3 - down button , c4 - select button, c5 - up button.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version