Quantcast
Channel: Wireless Connectivity
Viewing all articles
Browse latest Browse all 116964

Forum Post: RE: CC2540 -- UART -- Arduino 2560 -- PC

$
0
0

Thanks for anwer greenja. 

The only reason why if would use the Arduino was just to try to figure out how the CC2540 works, by trying to write some simple int values that it should write out on the TX pin, which i could monitor. 

I have been looking into this project HERE by TillRiemer. His project is very easy to follow, and is almost alike my project. Only difference is  just that i'm going to send information through UART then over BT to the phone, as his is sending from phone to the BLE and to a seperate microchip. 

I looked into his code and found it very understandable. Only thing is when i try to rebuild it, the IAR gives me a whole lot of errors. IAR says it's unaple to open Single_chip_peri.lib.

You can see the error HERE.

 He uses functions in main like: 


halUARTCfg_t uartConfig;
uartConfig.configured = TRUE;
uartConfig.baudRate = HAL_UART_BR_57600;
uartConfig.flowControl = FALSE;
uartConfig.rx.maxBufSize = 128;
uartConfig.tx.maxBufSize = 128;
//uartConfig.idleTimeout = 6;
uartConfig.intEnable = FALSE;
uartConfig.callBackFunc = NULL;


As for my main code shows like: 


HalUARTInit ();
halUARTCfg_t config;
config.configured = true;
config.baudRate = HAL_UART_BR_57600;
config.idleTimeout = 6;
config.rx.maxBufSize = 128;
config.tx.maxBufSize = 128;
config.intEnable = true;


Only thing im wondering about here is if this is written for the CC2540 V1,2 and not the V1,3 which im currently using? 


Viewing all articles
Browse latest Browse all 116964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>