firmware issueshttps://git.flow3r.garden/card10/firmware/-/issues2020-10-31T20:11:14Zhttps://git.flow3r.garden/card10/firmware/-/issues/217Reset when writing card10.bin via "USB Storage" menu option2020-10-31T20:11:14ZschneiderReset when writing card10.bin via "USB Storage" menu optionv1.16schneiderschneiderhttps://git.flow3r.garden/card10/firmware/-/issues/215Stuck device2020-10-19T16:58:06ZschneiderStuck deviceI've observed this twice now: card10 does not react to any input anymore and seems frozen. Not sure how I triggered this though.
In one occasion I was simply hitting the menu button multiple times, each time selecting "Home" again by a ...I've observed this twice now: card10 does not react to any input anymore and seems frozen. Not sure how I triggered this though.
In one occasion I was simply hitting the menu button multiple times, each time selecting "Home" again by a single button press.
At the moment my device says:
```
(gdb) bt
#0 SEMA_FreeSema (sema=1) at ../lib/sdk/Libraries/MAX32665PeriphDriver/Source/sema.c:97
#1 0x1001bc50 in core1_wait_ready () at ../epicardium/api/control.c:223
#2 0x10012bf2 in do_load (info=0x20004408 <async_load>) at ../epicardium/modules/lifecycle.c:102
#3 0x10012e94 in write_default_menu () at ../epicardium/modules/lifecycle.c:240
#4 vLifecycleTask (pvParameters=<optimized out>) at ../epicardium/modules/lifecycle.c:382
#5 0x10023e30 in ?? () at ../lib/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c:703
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
```v1.16https://git.flow3r.garden/card10/firmware/-/issues/212Display stays dark when using pycard10/console and g-watch2020-10-17T12:24:54ZschneiderDisplay stays dark when using pycard10/console and g-watchI'm not sure how to solve this one:
When `g-watch` is in power save mode and has the display backlight turned off, executing some code using `pycard10` does not show anything on the screen (because it is off).
I'm considering adding a h...I'm not sure how to solve this one:
When `g-watch` is in power save mode and has the display backlight turned off, executing some code using `pycard10` does not show anything on the screen (because it is off).
I'm considering adding a hard coded command to `pycard10` which resets the card10 in a similar way as pressing the menu button does.
A similar issue exists if one uses the console though. You can stop the app using CTRL+C, but the display stays dimmed in that case. I fear that this will lead to a lot of confusion and frustration among people who want to run some simple things using the display.
Maybe we can set the display backlight to the default 20% every time it is opened.
Another option would be to capture a CTRL+C in epicardium and turn on the display.
Maybe we even want to run `hardware_reset()` on CTRL+Cv1.16schneiderschneiderhttps://git.flow3r.garden/card10/firmware/-/issues/36Make random module use TPU entropy2020-10-15T05:41:49Zrahixcard10@rahix.deMake random module use TPU entropyRight now, `urandom` is an unseeded [Yasmarang random number generator](http://www.literatecode.com/yasmarang). Since max32665 contains a TPU which can generate entropy, we should use that instead.
Doing so requires adding new calls to...Right now, `urandom` is an unseeded [Yasmarang random number generator](http://www.literatecode.com/yasmarang). Since max32665 contains a TPU which can generate entropy, we should use that instead.
Doing so requires adding new calls to Epicardium API ([Guide](https://card10.badge.events.ccc.de/en/firmware/epicardium_api_development/)) and creating a c-module for Pycardium ([Guide](https://card10.badge.events.ccc.de/en/firmware/pycardium_modules/)). Docs for the TPU can be found in `lib/sdk/Documentation/html/group__trng__registers.html`.v1.16https://git.flow3r.garden/card10/firmware/-/issues/211card10.cfg offsets not calculated correctly after string length changes2020-10-14T16:50:46Zschneidercard10.cfg offsets not calculated correctly after string length changesSteps taken:
- Delete `card10.cfg`
- Reboot
- Open BLE app
- Enable BLE
- Make BLE app default
- Open BLE app
- Make g_watch default
- Open BLE app
- Pair iDevice
- Read config
```Python
>>> open("card10.cfg").read()
'\nble_en...Steps taken:
- Delete `card10.cfg`
- Reboot
- Open BLE app
- Enable BLE
- Make BLE app default
- Open BLE app
- Make g_watch default
- Open BLE app
- Pair iDevice
- Read config
```Python
>>> open("card10.cfg").read()
'\nble_enable = true\n\nble_mac = ca:4d:10:42:09:11\n\ndefault_app =/apps/g_watch/__init__.py\n\ntimezone = +0200\n'
>>> import config
>>> config.get_string("timezone")
'e = +0200'
>>>
```v1.16schneiderschneiderhttps://git.flow3r.garden/card10/firmware/-/issues/209Make g-watch default watch face2020-10-14T15:45:15ZschneiderMake g-watch default watch faceIt simply consumes 50% less power, doubling battery life.It simply consumes 50% less power, doubling battery life.v1.16schneiderschneiderhttps://git.flow3r.garden/card10/firmware/-/issues/208Streams: Don't spam console when queue gets full2020-10-14T15:36:51ZschneiderStreams: Don't spam console when queue gets fullWhen interrupting a script which processes a data stream the console gets spammed with messages like
```
[ 412649] bhi160: queue full for 2
[ 412720] bhi160: queue full for 2
[ 412795] bhi160: queue full for 2
```
That ma...When interrupting a script which processes a data stream the console gets spammed with messages like
```
[ 412649] bhi160: queue full for 2
[ 412720] bhi160: queue full for 2
[ 412795] bhi160: queue full for 2
```
That makes manual interaction with the card10 on the console difficult until the menu button is pressed, disabling the stream.v1.16schneiderschneiderhttps://git.flow3r.garden/card10/firmware/-/issues/210BHI160: Allow re-opening the sensor2020-10-14T15:34:41ZschneiderBHI160: Allow re-opening the sensorWhen using `tools/pycard10.py` to for example run `preload/apps/g_watch/__init__.py` it is not possible to start it twice like that as the BHI160 sensor is open and can not be re-opened.
We should either close the sensor when interrupti...When using `tools/pycard10.py` to for example run `preload/apps/g_watch/__init__.py` it is not possible to start it twice like that as the BHI160 sensor is open and can not be re-opened.
We should either close the sensor when interrupting the script or allow re-open int.v1.16schneiderschneider