Comments (10)
I found a workaround for the issue by not closing the file after WRITE and instead place a RETURN after it. My write routine runs then in a timer interrupt.
Update 30-Aug-2017: This issues is present for all READ
and WRITE
commands using an array variable as an argument since parse_variable_address()
expects braces behind the array name. This leads to an ERROR_EXPRESSION
to the following command.
Workaround: After such an command assign an expression with no evaluation requirement. This clears the previous error. See below example line number 30 for such a fix.
10 DIM V(2)
20 READ # SERIAL, V
30 E = E
40 PRINT V(0)
50 PRINT V(1)
It can be fixed in the BlueBasic_Interpreter.c
extending the function parse_variable_address()
to avoid parsing the index in such cases.
from bluebasic.
Hi Kai,
I think, in some cases, the interpreter goes on to the next command before it is finished with the current command. File IO might be one of them. Try putting DELAY 1000 before your CLOSE command and see if that fixes it.
BTW, we are considering porting BlueBasic to a more modern platform (cc2650). TI seems to be pushing that micro. Do you want to get involved?
Cheers,
Kai
from bluebasic.
@kaiateic this might be a test worth...
be aware there are other issues with the DELAY command when in a GOSUB during a GATT access.
I have looked into the cc2650 for some projects, so far ready modules with this device are rare and expensive (thus I can imagine TI is more interested in pushing this device to get out of the low margin cc2541 modules). However the cc2650 has some nice features like lower power and more processing.
I have the dev kit in my drawer.... so there is interest on my side.
Cheers
Kai
from bluebasic.
Great!
Let's take this conversation off line. Email me at [email protected]
from bluebasic.
from bluebasic.
Hi Ozarchie
Email me at the address above and lets take this offline.
Kai
from bluebasic.
@ozarchie
I couldn't find a module with the CC256x device. Currently I am getting CC2541 modules JPY-8 for < $2.30 in quantities of 10. If you a link for a CC256x device please send it to me.
TX Kai
from bluebasic.
from bluebasic.
Looks like there are a lot more FCC certified modules available using Nordic chips than TI. (If it doesn't have shielding, it's not fully certified.) Might be a better idea to port to Nordic instead?
Kai
from bluebasic.
Bugfix see here:
kscheff@447765a
from bluebasic.
Related Issues (20)
- Accessing pin 14/15 on 2541 HOT 1
- How to compile CC2540 version? HOT 1
- Using TI serial bootloader for BlueBasic HOT 4
- How to connect do fresh flashed device ? HOT 7
- loading BlueBasic using this method possible? HOT 6
- No console on appstore :( HOT 1
- Wiki typo on "Pin names and uses" HOT 4
- How to use ADC? HOT 1
- How to use SCAN ? HOT 2
- A witten program, can it be saved to create a permanently configured device? HOT 1
- Question - Can a basic program be saved and survive a power off HOT 3
- BlueBasic console for linux HOT 1
- How to create characteristics with uint8 value respond HOT 4
- compiler instructions for HM10, cc2541, want to upload blestack 1.4.2.2 updated hex files? HOT 3
- how to load basic programs on the chip? HOT 10
- OSX 10.12 Sierra fails HOT 6
- Large numbers > 536870912 (1<<29) are wrongly computed HOT 1
- Flashstore gets corrupted and programs gets garbled
- UPGRADE AVAILBLE message in console status
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 bluebasic.