Hi, I’m moving from the Arduino SDK to the standard SDK and I’m quite lost.
I’ve setup the enviroment in a linux box and, if I go tto ~/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp and issue a make all command, it works and I end up with the proper files in asdk/images. But, I don’t kown what I’ve built!!!
What will be the next step to create a very simple project that just connect to a WiFi Network??
make all in project_hp(low power core) is usually followed by make all in project_lp(low power core) first due to some of the lib dependencies.
your target code should be placed under ambd_sdk\project\realtek_amebaD_va0_example\src\src_hp\main.c before compilation.
output image will be stored in ambd_sdk\project\realtek_amebaD_va0_example\GCC-RELEASE\project_hp\asdk\image folder. You will find 3 .bin files uploading to flash, 2 for bootloaders, and 1 is the actual image. Please download AN0400 to know more details about the standard sdk compilation process.
Hi again, after a very long reading and testing I finally was able to compile my first program. It’s just a very simple program to scan networks and connect to one. This is the code:
#include “ameba_soc.h” #include <wifi_conf.h>
int main( void)
{
int rc;
rtw_scan_result_t **salida;
I’ve placed the main.c in ambd_sdk\project\realtek_amebaD_va0_example\src\src_hp\main.c and run make all in ~/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp
I’ve used imagetool to download the code to my BW16 dev board. I have place at addr 0x08000000 km0_boot_all.bin (this file cames from ambd_sdk\project\realtek_amebaD_va0_example\GCC-RELEASE\ project_lp \asdk\image\km0_boot_all.bin because there is not such file in project_hp/images folder.
at addr 0x08004000 km4_boot_all.bin and at 0x08006000 km0_km4_image2.bin.
Download it without problems.
When I connect to my board this is the output that I get:
#calibration_ok:[2:19:11]
Hello World
Initializing WIFI …