Search found 41 matches

by keru
20 Jan 2016, 16:28
Forum: Workshop
Topic: Trackpoint for project
Replies: 6
Views: 2258

It's true, I just realized most of them don't have those buttons. Mine had, but I'm not planning on using them, I'll use some kind of switches, possibly keyboard ones or old mouse ones.
by keru
20 Jan 2016, 04:11
Forum: Workshop
Topic: TMK Chibios STM32 with PS/2 mouse/trackpoint
Replies: 4
Views: 3767

Just in case, I tested the trackpoint with an Arduino Pro Micro and https://github.com/rampadc/arduino-trackpoint-extended and it works correctly. Next I'm going to try with STM32duino and my STM32F103 with the same code and see if I can get something.

I also ordered bi-directional logic converter ...
by keru
19 Jan 2016, 04:09
Forum: Workshop
Topic: TMK Chibios STM32 with PS/2 mouse/trackpoint
Replies: 4
Views: 3767

Thanks for all the help. Is "sinking current all the time" a bad thing ? or it's ok until I finish debugging ?

I tried 2.a. but I misread my values, it's the CLOCK pin (PB4 in my config) that reads 3.3V, data is on at 5V and reset is at 0v. I just measure with a voltmeter so I don't see variations ...
by keru
18 Jan 2016, 23:25
Forum: Workshop
Topic: TMK support for ARM Teensies
Replies: 83
Views: 27124

I ordered a st-link v2 it will take some time to get here :)

The reset pin seem to be specific to trackpoints. I'll try again with a normal PS/2 mouse in case the mouse was not in fact defective.

It seems some USB devices can be passively converted to PS/2, maybe I can find a way to use a working ...
by keru
18 Jan 2016, 23:24
Forum: Workshop
Topic: TMK Chibios STM32 with PS/2 mouse/trackpoint
Replies: 4
Views: 3767

TMK Chibios STM32 with PS/2 mouse/trackpoint

Hi, following the thread regarding the Chibios build of the TMK firmware (http://deskthority.net/workshop-f7/tmk-support-for-arm-teensies-t11799-60.html) I have issues with connecting a trackpoint.

Here is where I am now, if someone has suggestions or can help that would be greatly appreciated ...
by keru
18 Jan 2016, 23:03
Forum: Workshop
Topic: Trackpoint for project
Replies: 6
Views: 2258

I found spare keyboard replacements, without the laptop, for around 17 CAD, you might want to just use the keyboard replacement. Usually they have a front/back picture and that can help you select a board that has already add it's pin traced.
by keru
18 Jan 2016, 15:27
Forum: Workshop
Topic: TMK support for ARM Teensies
Replies: 83
Views: 27124

Thanks a lot, I tried the 5V pull-up, I seem to actually be able to have 5V on one of the pins, but my firmware still doesn't work.
The reset pin for example reads 3.3V but it is wired the same way, I wonder if it's because somewhere this pin is set as input with pull-something, but I don't find ...
by keru
18 Jan 2016, 15:20
Forum: Workshop
Topic: Trackpoint for project
Replies: 6
Views: 2258

Hi Nic,
I can't recommend for sure, but the only options I found were :
- reusing a trackpoint from a thinkpad keyboard, trying to find one that looks like what others have already used and found the pins.
- buy a documented module from http://sprintek.com/products/SK8702.aspx
For Sprintek, you can ...
by keru
17 Jan 2016, 05:54
Forum: Workshop
Topic: TMK support for ARM Teensies
Replies: 83
Views: 27124

for the 2) There is something I think I'm missing ...
I see how it works when my pin is set as an output-opendrain with a 5V pull-up.

But when I set my pin as an input, should I also set some pull-something resistor ? or I just leave it floating, and when the PS/2 side sets 0, my MCU will read 0 ...
by keru
16 Jan 2016, 19:52
Forum: Workshop
Topic: TMK support for ARM Teensies
Replies: 83
Views: 27124

I think my issue ... and that's going to seem obvious ... is that PS2 takes 5v, and the STM32's output are 3.3V ... Is there a way to output 5V from the MCU ?
by keru
16 Jan 2016, 06:56
Forum: Workshop
Topic: TMK support for ARM Teensies
Replies: 83
Views: 27124

Here is a bit of debug I was able to do :
- I created a function to put my pins in different modes and alternate
void debug_data_lines(void) {
uint8_t rcv;
data_init();
clock_init();
// Set Data and Clock low
wait_ms(1);
data_lo();
clock_lo();
wait_ms(1);
// set clock input and data out ...
by keru
15 Jan 2016, 23:12
Forum: Workshop
Topic: TMK support for ARM Teensies
Replies: 83
Views: 27124

Thanks a lot, it does compile :) I'll investigate and report back when/if I get PS/2 to work.
by keru
14 Jan 2016, 21:15
Forum: Workshop
Topic: TMK support for ARM Teensies
Replies: 83
Views: 27124

I posted my code and my issues here https://geekhack.org/index.php?topic=78634.0

My branch is far from ready to merge as I want to make sure I can have some PS/2 at the same time.
by keru
10 Jan 2016, 21:12
Forum: Workshop
Topic: TMK support for ARM Teensies
Replies: 83
Views: 27124

Thanks ! I think it's best if I make a pull request, as I'm not 100% sure I did things correctly, so a code review could help.

I still have a lot to fix and cleanup and then I'll send a PR.

Also, with the ADC, I'm reading a joystick in order to use it as a mouse. Do you know if I should try to ...
by keru
10 Jan 2016, 07:55
Forum: Workshop
Topic: TMK support for ARM Teensies
Replies: 83
Views: 27124

Just in case :
I'm not sure why yet but I had issues with the ADC.

While trying to update the tmk repo, I borked my chibios checkout.
So I cloned a clean new version, master is too new and too many things changed. I checkout the stable_3.0.x and I add OPT_DEFS += -DSTM32F10X_MD to my makefile (not ...
by keru
07 Jan 2016, 03:29
Forum: Workshop
Topic: TMK support for ARM Teensies
Replies: 83
Views: 27124

Hi Nic,
Nope I never tried, I don't even have a windows box :)
In order to compile you have to :
1. checkout flabbergast's repository at the chibios branch
2. clone chibios (I did it using https://github.com/ChibiOS/ChibiOS.git) into tmk_core/tool/chibios/chibios
3. configure stuff in your keyboard ...
by keru
05 Jan 2016, 18:40
Forum: Workshop
Topic: TMK support for ARM Teensies
Replies: 83
Views: 27124

Hi, sorry, me again ...
I couldn't make interrupts run smoothly but I've been able to run ps2 busywait and keyboard using threads, I'll have yet to try the ps2 but the debug works.

I've added that in main.c


/* ps2 mouse thread */
static THD_WORKING_AREA(WA_ps2_mouse, 128);
static THD_FUNCTION ...
by keru
02 Jan 2016, 06:50
Forum: Workshop
Topic: TMK support for ARM Teensies
Replies: 83
Views: 27124

If I use busywait or interrupts, it seems my issue comes from

rcv = ps2_host_send(PS2_MOUSE_READ_DATA);

in the ps2_mouse_task in ps2_mouse.c
I'm trying to debug but I can't get the hid_listen to see my keyboard.

EDIT : I got some debugging, using 'sudo hid_listen' and adding -DDEBUG

I can ...
by keru
02 Jan 2016, 04:58
Forum: Workshop
Topic: TMK support for ARM Teensies
Replies: 83
Views: 27124

Thanks, getting closer :-)

Now I have an issue that I don't really get, maybe you could help ?

../../tmk_core/protocol/ps2_interrupt_chibios.c: In function 'extcb0':
../../tmk_core/protocol/ps2_interrupt_chibios.c:244:20: error: invalid storage class for function 'pbuf_enqueue'
static inline ...
by keru
01 Jan 2016, 06:02
Forum: Workshop
Topic: TMK support for ARM Teensies
Replies: 83
Views: 27124

Thanks for that, I'll try to get something.
So what I have on the list is :
- replace the ISR(PS2_INT_VECT) with my callback function (like extcb0 in your code)
- configure the interrupts and callback using EXTConfig
- initialize my interrupt pin as PAL_MODE_INPUT_PULLUP

Regarding your code, do I ...
by keru
31 Dec 2015, 15:52
Forum: Workshop
Topic: TMK support for ARM Teensies
Replies: 83
Views: 27124

ha ok thanks for the details, that makes sense regarding the AVRs.
I'll look at the interrupts in that case, thanks again !
by keru
31 Dec 2015, 15:36
Forum: Workshop
Topic: TMK support for ARM Teensies
Replies: 83
Views: 27124

Yeah, I figured out that busywait was blocking, I was hoping that some magic threading would let the rest work while waiting :)

I looked for interrupts, but that's to complicated for my knowledge. I was hoping that USART/UART would be an easier alternative, but I still need to read a lot of things ...
by keru
31 Dec 2015, 05:19
Forum: Workshop
Topic: TMK support for ARM Teensies
Replies: 83
Views: 27124

It seems to be due to some combination of wait/WAIT and data/try in ps2_busywait.c
should those block the rest of the firmware ?
by keru
31 Dec 2015, 02:55
Forum: Workshop
Topic: TMK support for ARM Teensies
Replies: 83
Views: 27124

ok thanks after commenting the avr delay.h and renaming _delay_ms to wait_ms, it compiles.
I didn't solder the trackpoint yet, but is there anything that should be fixed before or I can ignore the warnings ?

Compiling ps2_mouse.c
../../tmk_core/protocol/ps2_mouse.c: In function 'ps2_mouse_init ...
by keru
30 Dec 2015, 16:19
Forum: Workshop
Topic: TMK support for ARM Teensies
Replies: 83
Views: 27124

thank, I'm going to try.
I already have an issue, it seems I also need ps2_mouse.c but it refers to some avr libraries. Do I need to port that too ?
And I'm having a basic beginner issue : it seems I should use _wait_ms instead of _delay_ms, so I added #include "wait.h" but I still get

../../tmk ...
by keru
30 Dec 2015, 05:36
Forum: Workshop
Topic: TMK support for ARM Teensies
Replies: 83
Views: 27124

thanks again for the great job. I got my atreus working, but now I'm trying to add PS2/Trackpoint support and running into an issue.
following this thread https://geekhack.org/index.php?topic=55960.msg1291412#msg1291412 I added the lines to the Makefile but I get the following when compiling ...
by keru
05 Dec 2015, 06:04
Forum: Workshop
Topic: TMK support for ARM Teensies
Replies: 83
Views: 27124

I'm going to do the atreus keyboard next, should I send a pull request to you for the chibios branch once its done ?
by keru
05 Dec 2015, 04:46
Forum: Workshop
Topic: TMK support for ARM Teensies
Replies: 83
Views: 27124

Hi !
I've been able to flash both the generic board and the maple mini clone with their respective bootloaders.
I see both as follow yeah \o/

[ 1896.773971] input: TMK \xffffffc3\xffffff86\xffffff86 ChibiOS TMK test as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/0003:FEED:6464.0013/input ...
by keru
03 Dec 2015, 19:35
Forum: Workshop
Topic: TMK support for ARM Teensies
Replies: 83
Views: 27124

That's great. Thanks a lot for the help, I won't have time soon to try it, but I'm glad that works. Now I have more purpose for my boards :)
Thanks again !
by keru
23 Nov 2015, 06:45
Forum: Workshop
Topic: TMK support for ARM Teensies
Replies: 83
Views: 27124

Awesome !
Thanks a lot, I'll have to wait before I can try, but I'll keep you posted.

Go to advanced search