Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pins and names CC2540 #5

Closed
gregwinn opened this issue Sep 25, 2014 · 8 comments
Closed

Pins and names CC2540 #5

gregwinn opened this issue Sep 25, 2014 · 8 comments

Comments

@gregwinn
Copy link

Based on your wiki page: "https://github.com/aanon4/BlueBasic/wiki/Pin-names-and-uses"

You are showing

P0_2 -> RX
P0_3 -> TX

Based on TI's information i show them as:

P0_2 -> MISO
P0_3 -> MOSI

Am i getting something wrong?

@aanon4
Copy link
Owner

aanon4 commented Sep 26, 2014

Both are correct. Hopefully the code handles both uses cases, depending on whether you enable SPI 0 or SERIAL first. I've not yet tested both together (need some new boards which will arrive this weekend) so let me know if there are problems.

@gregwinn
Copy link
Author

Got it... I had enabled SPI 0 but reset the board to try SERIAL... Do you have an example of enabling SERIAL?

@gregwinn
Copy link
Author

Sorry I see the wiki page: https://github.com/aanon4/BlueBasic/wiki/Serial

@gregwinn
Copy link
Author

To be clear here The only item that is required is ? I just want a pass through. BLE -> My Serial Terminal

// Example
SERIAL 9600

@aanon4
Copy link
Owner

aanon4 commented Sep 26, 2014

The minimum would be:

// 9600 baud, no parity, 8 data bits, 1 stop bit, no hardware flow control
SERIAL 9600,N,8,1,N

@gregwinn
Copy link
Author

@aanon4 You're the best. Thank you, I will try that now!

@mikewen
Copy link

mikewen commented Jan 20, 2015

Are you sure 9600,N,8,1,N work?

I tried SERIAL 9600,N,8,1,N , console shows Error,
then I looked at : OS_serial_open
// Only support port 0, no-parity, 8-bits, 1 stop bit
if (port != 0 || parity != 'N' || bits != 8 || stop != 1 || flow != 'H')
{
return 3;
}

@aanon4
Copy link
Owner

aanon4 commented Feb 13, 2015

Apparently not :-(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants