I'll be writing the hc-05->RN42 guide the coming week ( with screenshots ;p )
on another subject, I uncovered dust from a STM32F3DISCOVERY yesterday & this time, took enough time to experiment with CubeMX-generated & modded stuff as well as flashing the thing.
( the goal is to familiarize myself enough with the stm32 environment without messing with one of my Espruino boards ;) ).
I succefully flashed a mouse HID & a keyboard+media HID to it, but for some reason, I can't get the GamePad HID to work as intended: it's detected as such, but I still have a byte-related trouble with the buttons ( the joysticks works fine ).
Thing is: I'm still wondering why the heck is doing so, since after multiple readings of the following code, I see no errors ? :|
Shouldn't it work if "sizeof(struct gamepadHID_t)" equals to "HID_EPIN_SIZE" ?
Once the above is fixed, one of the next steps is porting the Xbox360 controller code to it ( and then continue digging how to use an existing controller for the handshake part .. ).
As a side note, I tried but coouldn't get Espruino on the board ?
I used the Espruino_1V92 & Espruino_1V92.3 firmwares ( it seems 1V99 isn't available on the repos for the STM32F3DISCOVERY )
( I took not of the need for unplugging & replugging the 'USB USER' plug, but no /dev/tty<..> ever appear on my mac :/ )
The cli commands I used are the following:
// to flash any firmware generated from a 'make' call on CubeMX-generated files
st-flash --format ihex write ./build/stm32f3discovery_hidTest1.hex
// to flash Espruino firmware ? :|
st-flash erase // to clean stuff
st-flash write ./espruino_1v92/espruino_1v92.3_stm32f3discovery.bin 0x08000000
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi there !
I'll be writing the hc-05->RN42 guide the coming week ( with screenshots ;p )
on another subject, I uncovered dust from a STM32F3DISCOVERY yesterday & this time, took enough time to experiment with CubeMX-generated & modded stuff as well as flashing the thing.
( the goal is to familiarize myself enough with the stm32 environment without messing with one of my Espruino boards ;) ).
I succefully flashed a mouse HID & a keyboard+media HID to it, but for some reason, I can't get the GamePad HID to work as intended: it's detected as such, but I still have a byte-related trouble with the buttons ( the joysticks works fine ).
Thing is: I'm still wondering why the heck is doing so, since after multiple readings of the following code, I see no errors ? :|
Shouldn't it work if "sizeof(struct gamepadHID_t)" equals to "HID_EPIN_SIZE" ?
Once the above is fixed, one of the next steps is porting the Xbox360 controller code to it ( and then continue digging how to use an existing controller for the handshake part .. ).
As a side note, I tried but coouldn't get Espruino on the board ?
I used the Espruino_1V92 & Espruino_1V92.3 firmwares ( it seems 1V99 isn't available on the repos for the STM32F3DISCOVERY )
( I took not of the need for unplugging & replugging the 'USB USER' plug, but no /dev/tty<..> ever appear on my mac :/ )
The cli commands I used are the following: