No response to AT command in codeless

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
5 posts / 0 new
Last post
MarcoB
Offline
Last seen:2 years 7 months ago
Joined:2018-07-10 10:59
No response to AT command in codeless

Hi,

I'm not a sw engineer so I hope you will understand my problem.
I have a custom made board with a DA14580. I'm able compile codeless and upload the .hex file with smartsnippets. The code is running fine as I can see codeless coming up between the BT connections on my phone.
When I open teraterm set at 115200 and send the AT command nothing is happening.
I like to clarify that only two pins are connected (pin 2 and 3 on port 0). The upload is working at 115200 as described on the datasheet. After codeless is running are different pins used? Can I remap this? Also there are no pull-ups on any of the lines.

Thanks for your help

Device:
PM_Dialog
Offline
Last seen:13 hours 10 min ago
Staff
Joined:2018-02-08 11:03
Hi MarcoB,

Hi MarcoB,

Please check the UART2 pin configuration in the user_periph_setup.h header file of the CodeLess source code application. The UART2_TX is configured in P0_4 and the UART2_TX in P0_5, so the UART pins that CodeLess is using are different from the pin that you are using into your custom board. As a result, the DA14580 is not connected with the FTDI, that’s why you are not able to see nothing in the Teraterm. I highly suggest you to change the UART2 pin configuration with the pins that you are using in you custom board. In addition, the UART baud rate must be at 57600. Also, it is strongly recommended to read the CodeLess user manual from our support page.

https://support.dialog-semiconductor.com/resource/codeless-tutorial-html

Thanks, PM_Dialog

MarcoB
Offline
Last seen:2 years 7 months ago
Joined:2018-07-10 10:59
Hi,

Hi,

Thanks for your fast answer. Exactly what I was looking for. Unfortunately I did that already as you can see from the attached image. Something else needs to be edited?
上传成功后注意到,现在没有always I see the codeless connection on my phone.

MarcoB
Offline
Last seen:2 years 7 months ago
Joined:2018-07-10 10:59
Hi,

Hi,

Additionally I discovered today that if I upload the codeless_beta1_580_0.hex file I downloaded from the website I can see the device coming up on my phone no problem but of course the pins for the AT commands are different so no use to me. Whereas if I upload the one I complile then I can not always see it.
All I did is download CodeLess20170609, change the pins as I showed in my previous post and then I pressed rebuild all targets. After that i took the hex file in the out_580 folder and uploaded it with smartsnippets. This seems not to show up on my phone most of the time as if the code is not ruing fine.

PM_Dialog
Offline
Last seen:13 hours 10 min ago
Staff
Joined:2018-02-08 11:03
Hi MarcoB,

Hi MarcoB,

Since you changed the UART pins, did you tried to check with power profiler of Smart Snippets if the device advertises? Also, did you try to send any of the basic codeless commands from the teraterm? For example, please try to send from teraterm the ‘AT’ command.

Thanks, PM_Dialog