Comments (6)
Using LED on/off debugging, I might have found cause of the issue. In the file "targets/stm32/jshardware.c" in function "jshUSARTSetup". I found by trial and error that the software stalls after "jshPinSetFunction(inf->pinTX, pinTXfunc);". Turning LED2 on at the end of that function works. But the same line right after the function call does not. If I comment that line I can get it into working order. Everything boots up as expected.
from espruino.
Wow - that must have taken a while - thanks!
So with jshPinSetFunction(inf->pinTX, pinTXfunc);
commented out, everything works?
That's a really strange one, because there doesn't really seem to be a great deal there that I'd have thought would cause it to crash.
from espruino.
Took my just under 30 minutes. I was running back and forth between the kitchen and my workstation.
Once I commented out that line it worked. The green LED blinked as it should and the init sequence was done. The USB interface came up and I have tested the most basic JS code.
I tried to disable the jshPinSetFunction for RX and keeping the TX enabled, but that did not work. Swapping them around did not help. Something is wrong with the pinTX part.
from espruino.
After further investigation I have found that in jshPinSetFunction
the issue is with: else if (remap)
. This statement is true and the jsError
line inside causes some kind of crash.
Unable to do jsError print before UART init?
Observation: remap
is only true for pinTX not for pinRX.
from espruino.
Thanks - I'll look into this as it rings a bell.
The crash is almost certainly because it's trying to write data to an uninitialised serial port...
from espruino.
Thanks for your help - I've just fixed this. It was to do with the default pins for the USART being wrong.
The issue is that the Olimexino has re-ordered the pins, so the usual trick of scanning from PA1 forwards to find the first available pin with the given function doesn't work.
The issue must have arisen when I added auto-generation of platform_config.h and DEFAULT_USART_XXX_PIN got accidentally removed
from espruino.
Related Issues (20)
- Object.entries and Object.values behave unexpectedly for objects with numeric keys HOT 1
- Building ESP8266_4MB is broken with commit e7f97f42a HOT 7
- Promise.all - Uncaught Error: Unhandled promise rejection: Error: Unknown argspec 32864 HOT 1
- Bangle.js2 - Notification-strings in messages not displayed properly anymore HOT 5
- btnHandlerCommon block when LCD off HOT 5
- Bangle JS 2 reboots when Messages app receives long notification containing an umlaut HOT 4
- Firmware v18.90 : Bangle2 Lock HOT 3
- Compile error with DEBUG=1 HOT 1
- Why no SD card? HOT 4
- Bangle.js: Avoid storage compaction if battery low, show status HOT 2
- Evaluate Profile-Guided Optimization (PGO) HOT 3
- nRF52: reset()/load() should not restart advertising HOT 1
- Puck Firmware missing Puck class, E.getBattery HOT 3
- JIT: If a function/method is built-in, reference it directly
- Bangle.js 2 ZigBee support HOT 6
- jswrapper.c: wasting ~2 bytes per function decl, could save ~1.5kb
- NRF.nfcRaw (and nfcUrl) limited to payload/message length 255 HOT 11
- Bangle JS2 HRM-raw raw value 0 in 2v18 firmware HOT 1
- ESP32 - digitalPulse() not changing pulse width HOT 3
- networking: Even if HTTPS isn't compiled in, set type|=ST_TLS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from espruino.