Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  New Ports
| | |-+  SanDisk Sansa c200v2, m200v4, clipv1, clipv2, clip+, and fuzev2
« previous next »
  • Print
Pages: 1 ... 33 34 [35] 36 37 ... 129

Author Topic: SanDisk Sansa c200v2, m200v4, clipv1, clipv2, clip+, and fuzev2  (Read 1336729 times)

Offline kugel.

  • Developer
  • Member
  • *
  • Posts: 271
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #510 on: December 16, 2008, 07:53:24 AM »
Quote from: RockRabbit on December 16, 2008, 06:06:53 AM
Thanks for the help kugel. Cannot really understand the explanation re the ports and how they are addressed. I take it each pin is not a single bit within a word, but there are seperate words for each pin?
Each pin is a byte. But only 1 bit of those bytes is significant, the other 7 are not. But yea, you always read/write 1 byte for each pin.

I really recomment reading the data sheet, it helps.
Logged
 

Offline RockRabbit

  • Member
  • *
  • Posts: 30
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #511 on: December 16, 2008, 09:07:41 PM »
I can confirm that GPIOD pin 7 is the button light for the Sansa c250.

Thanks Kugel. The code worked fine.

Could you add it to the hardware mappings page for me please.

 ;D
Logged

Offline gabe565

  • Member
  • *
  • Posts: 9
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #512 on: December 16, 2008, 09:39:16 PM »
Hmmmm...Whenever I try to run Rockbox, the bootloader starts and I see the Rockbox logo, but then, it says
Quote
*PANIC*
SD : DATA TIMEOUT,
I'm using the latest in SVN, and I'm not sure why this is happening! I'm trying to figure out what the problem is, does it mean internal SD? Even if I take out my SD card, I still get the same error. I just don't get it.

I'll add it to the hardware mappings page for you, RockRabbit.
« Last Edit: December 16, 2008, 10:10:53 PM by gabe565 »
Logged

Offline FlynDice

  • Developer
  • Member
  • *
  • Posts: 166
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #513 on: December 16, 2008, 11:33:34 PM »
I was getting the SD : DATA TIMEOUT until I took all the music off my e280, then It booted all the way into the menu just fine.  Buttons didn't work though so I tried Domonoky's button patch and buttons sort of work.  The down button won't move to a lower menu.

I did get an ogg file to play quite  nicely though by using a fixed.cfg file.  I had rockbox start in the db menu and right arrowed my way to a music file.  After the one file played though the screen goes dark and I need to reboot.  Any other patches to get the down arrow working?
Logged
e280v2    fuzev1 2gb   clip+4gb   8GB Transcend cl6 uSD    access to fuzev2 4GB       clip+2gb R.I.P.

Offline kugel.

  • Developer
  • Member
  • *
  • Posts: 271
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #514 on: December 17, 2008, 03:00:49 AM »
Quote from: RockRabbit on December 16, 2008, 09:07:41 PM
I can confirm that GPIOD pin 7 is the button light for the Sansa c250.

Thanks Kugel. The code worked fine.

Could you add it to the hardware mappings page for me please.

 ;D
Great! I'll add it.  I'll maybe have a look at the c200v2 OF for the LCD if I have time.

Another thing: I think it's essential for safety that you find your USB "button". Turn the player on with USB and see if a delay happens or not compared to starting with the power button.

It would be very helpful if start creating a c200v2 target in the Rockbox tree then. So we can  build a basic bootloader using dual boot and test code *easier and safer*.

Edit: Uhm, now that I think about it. Finding USB  (and maybe some other buttons) should be essential for dual booting anyway, since I can imagine that dual boot with the power button will be somewhat difficult.
« Last Edit: December 17, 2008, 03:13:44 AM by kugel. »
Logged
 

Offline RockRabbit

  • Member
  • *
  • Posts: 30
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #515 on: December 17, 2008, 03:14:35 AM »
Where does the arm object dump program come from? I cannot find it in Ubuntu. I would like to dump the OF and have a look at it myself.
« Last Edit: December 17, 2008, 03:16:53 AM by RockRabbit »
Logged

Offline kugel.

  • Developer
  • Member
  • *
  • Posts: 271
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #516 on: December 17, 2008, 03:22:12 AM »
It should be there once you have compiled the rockbox toolchain with rockboxdev.sh.

Look for arm-elf-objdump
Logged
 

Offline Hillshum

  • Member
  • *
  • Posts: 108
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #517 on: December 17, 2008, 12:56:37 PM »
The dual boot on a release will use USB to boot OF anyway
Logged

Offline gabe565

  • Member
  • *
  • Posts: 9
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #518 on: December 17, 2008, 04:06:40 PM »
Kugel: I already added it to the hardware mappings page for him.

FlynDice: That's odd... I think I'll try what you said and see if it works. Thanks!
« Last Edit: December 17, 2008, 07:19:52 PM by gabe565 »
Logged

Offline RockRabbit

  • Member
  • *
  • Posts: 30
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #519 on: December 17, 2008, 04:12:38 PM »
Point taken about the power button - I will try to find it. However, am currently waiting till I get a datasheet before doing any more hacking. I have requested one so hopefully wont be long now till I can get things moving. In the meantime I will investigate the main ROckbox code and see what I can pick up about how it works.

Most of my life ive worked in IT writing software, usually for large companies. I have to say that doing Rockbox is a thousand times more interesting and satisfying. The pay is'nt as good, but there is lots of job satisfaction and how often do you get to listen to your code? Would'nt it be great if the Rockbox hardware could get made too?
« Last Edit: December 17, 2008, 04:16:17 PM by RockRabbit »
Logged

Offline kugel.

  • Developer
  • Member
  • *
  • Posts: 271
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #520 on: December 17, 2008, 05:22:32 PM »
Quote from: RockRabbit on December 17, 2008, 04:12:38 PM
Point taken about the power button - I will try to find it. However, am currently waiting till I get a datasheet before doing any more hacking. I have requested one so hopefully wont be long now till I can get things moving. In the meantime I will investigate the main ROckbox code and see what I can pick up about how it works.

Most of my life ive worked in IT writing software, usually for large companies. I have to say that doing Rockbox is a thousand times more interesting and satisfying. The pay is'nt as good, but there is lots of job satisfaction and how often do you get to listen to your code? Would'nt it be great if the Rockbox hardware could get made too?
I have a datasheet. If you want to know something I can give you some information. Also, our Rockbox source code is a fine source of information already.
The base addresses of the GPIO ports:
GPIOA_BASE           0xC80B0000
GPIOB_BASE           0xC80C0000
GPIOC_BASE           0xC80D0000
GPIOD_BASE           0xC80E0000

You can read each pin using this formula:

GPIOx_BASE+(1<<(X+2))

where X is your pin and x A, B, C or D (the signficant pins are PAD_ADDR[9:2], that's why the +2).

To set pins use the mentioned formula and do
GPIOx_BASE+(1<<(X+2)) = (1<<X)

To clear just
GPIOx_BASE+(1<<(X+2)) = 0

You can set/clear GPIOx_DIR for pins using this
GPIOx_BASE+0x400 = (1<<7|..)

I hope this gets you somewhere until you have the datasheet.
Logged
 

Offline RockRabbit

  • Member
  • *
  • Posts: 30
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #521 on: December 17, 2008, 06:50:55 PM »
Thanks hugel.

But could you explain what you mean by BASE and DIR?
Logged

Offline kugel.

  • Developer
  • Member
  • *
  • Posts: 271
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #522 on: December 17, 2008, 06:57:17 PM »
GPIOx_BASE just stands for the base adress, i.e. the starting address of a port.

DIR (stands for direction), as already said, decides whether a pin is configured as output or input. output means we can safely write to it (with our software), input means the hardware can safely write to it.
Logged
 

Offline RockRabbit

  • Member
  • *
  • Posts: 30
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #523 on: December 17, 2008, 11:24:14 PM »
If i address a GPIO pin using the code "ldr   r1, [r0, #0x8] " where r0 has the base address of the IO port A, am I right in thinking that this is pin A1? Similarly would "ldr   r1, [r0, #0x10] " be A2?

Also, I notice that some of the pins seem to detect on bit unset (0), others on bit set (non zero). Is this normal?

I notice that in the hardware mappings twiki, no mention is made of which logic level is used for each port/button combination. Is that becuase it is not necessary or because I have got confused somewhere?

Thanks,  :o
« Last Edit: December 18, 2008, 03:12:01 AM by RockRabbit »
Logged

Offline kugel.

  • Developer
  • Member
  • *
  • Posts: 271
Re: SanDisk Sansa e200 v2, c200 v2, m200 (v2), clip and Fuze
« Reply #524 on: December 18, 2008, 06:57:35 AM »

Quote
If i address a GPIO pin using the code "ldr   r1, [r0, #0x8] " where r0 has the base address of the IO port A, am I right in thinking that this is pin A1? Similarly would "ldr   r1, [r0, #0x10] " be A2?
This is true. And Pin 7 is (1<<7+2) -> (1<<9) -> 512 -> 0x200. I think you got it now :)

Quote
Also, I notice that some of the pins seem to detect on bit unset (0), others on bit set (non zero). Is this normal?
Yes, the states at boot up don't have to be the same for all pins.

Quote
Is that becuase it is not necessary or because I have got confused somewhere?
I don't know. Probably the creator haven't thought of it (maybe because he didn't have enough inforomation at that time) when he created it.
Logged
 

  • Print
Pages: 1 ... 33 34 [35] 36 37 ... 129
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  New Ports
| | |-+  SanDisk Sansa c200v2, m200v4, clipv1, clipv2, clip+, and fuzev2
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.146 seconds with 21 queries.