Rockbox Development > New Ports
Creative Zen Vision:M
Aurix Lexico:
Have you tried writing to the PIC over i2c? Instead of figuring out what the OF does to the PIC, can you try sending something (a single zero perhaps?) to the PIC in hopes of reseting the numbers it returns for a button press? I would try it myself, but I won't be able to install rockbox on my zen till after christmas, when I will buy a CF card and adapter.
mcuelenaere:
--- Quote from: Aurix Lexico on December 12, 2008, 05:40:18 PM ---Have you tried writing to the PIC over i2c? Instead of figuring out what the OF does to the PIC, can you try sending something (a single zero perhaps?) to the PIC in hopes of reseting the numbers it returns for a button press? I would try it myself, but I won't be able to install rockbox on my zen till after christmas, when I will buy a CF card and adapter.
--- End quote ---
I *think* I tried writing stuff to it, but never got anything really useful out it.
BTW, you can try the Rockbox bootloader without breaking anything on your device (the bootloader has capabilities of booting the OF, and as the bootloader is 'our' code you can use it to write to the PIC).
If you need any help in this, ask me :)
Aurix Lexico:
The rockbox bootloader is now on my zen. Before I start editing the bootloader, is there a way to recover from me messing up the bootloader? And can you point to a source file that is a good example for reading/writing with I2C.
mcuelenaere:
--- Quote from: Aurix Lexico on December 13, 2008, 07:43:55 PM ---The rockbox bootloader is now on my zen. Before I start editing the bootloader, is there a way to recover from me messing up the bootloader?
--- End quote ---
Yes, just boot into the recovery mode and replace the firmware with either the Rockbox bootloader again or the OF.
--- Quote ---And can you point to a source file that is a good example for reading/writing with I2C.
--- End quote ---
pic-creativezvm.c contains the code which communicates with the PIC.
Using i2c_read(0x07, unsigned char* data, int length) and i2c_write(0x07, unsigned char* data, int length) you can communicate with it directly.
GIO0 is triggered by the PIC when it's about to send a message, so GIO0() is the message handler (in pic-creativezvm.c).
You probably want to enable BUTTON_DEBUG so you can see what messages the PIC sends to the ZVM.
I think send_command_to_pic() is meant to mimic the OF for sending a message to the PIC, so you could try using that.
imfloflo:
So we can change the bootloader without opening tje device :)?
And change the firmware to the alternative rockbox?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version