Interest in developer preview?

User avatar
rudi ;-)
Posts: 1698
Joined: Fri Nov 13, 2015 3:25 pm

Re: Interest in developer preview?

Postby rudi ;-) » Thu Aug 18, 2016 8:19 pm

https://github.com/espressif/esp-idf/bl ... properties
can u please check the part "eclipse ( windows user )"


Windows users only, follow these two additional steps:

On the same Environment property page, edit the PATH environment variable and append ";C:msys32usrbin;C:msys32mingw32bin;C:msys32optxtensa-esp32-elfbin" to the end of the default value.
(If you installed msys32 to a different directory then you'll need to change these paths to match.)

Click on the "C/C++ Build" top-level properties page then uncheck "Use default build command" and enter this for the custom build command: bash ${SDK_PATH}/bin/eclipse_windows_make.sh.


EDIT:
think users wrote exact the lines ( ;C:msys32usrbin;C:msys32mingw32bin;C:msys32optxtensa-esp32-elfbin ) in environment path like they read :mrgreen: ( i am too in first try - then have seen the format mistake ) :mrgreen:

have maked a pull request on github.
there is a small format mistake with this line:

Code: Select all

";C:\msys32\usr\bin;C:\msys32\mingw32\bin;C:\msys32\opt\xtensa-esp32-elf\bin"
change the double " at begin and at end to the right format ``
like this:

Code: Select all

``;C:\msys32\usr\bin;C:\msys32\mingw32\bin;C:\msys32\opt\xtensa-esp32-elf\bin`` 
and we read the lines right:
pull_request1.png
pull_request1.png (33.03 KiB) Viewed 12836 times



best wishes
rudi ;-)
Last edited by rudi ;-) on Fri Aug 19, 2016 11:58 am, edited 3 times in total.
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Interest in developer preview?

Postby WiFive » Fri Aug 19, 2016 4:08 am

ESP_Sprite wrote:Okay, we released the SDK. As I said, this is just a developer preview and we don't want to create any false expectations here: please assume the code is work-in-progress and we'd appreciate it if it didn't get too much publicity yet. With that said, it gives a very good indication where we want to take the SDK.

Wit that said, the repo is at https://github.com/espressif/esp-idf , and a template project is in https://github.com/espressif/esp-idf-template . As usual, pelase point SDK_PATH to the path you downloaded esp-idf to. FYI, esp-idf stands for Espressif IoT Development Framework. We've decided not to use the SDK term anymore because esp-idf is different enough from the old esp32-rtos-sdk to warrant a new name.

As I said, we don't support anything in this version of the SDK yet. With that being said, if you do have any questions or remarks about things you think we missed, do not hesitate to ask a question here, and I'll see if I can answer it.
Looks like a nice foundation... kconfig, bootloader, MMU stuff. Anxious for features to start filling in..

User avatar
rudi ;-)
Posts: 1698
Joined: Fri Nov 13, 2015 3:25 pm

Re: Interest in developer preview?

Postby rudi ;-) » Fri Aug 19, 2016 11:29 am

have edit my post:

found little format mistake
https://github.com/espressif/esp-idf/pu ... b760b65d2e

best wishes
rudi ;-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

User avatar
rudi ;-)
Posts: 1698
Joined: Fri Nov 13, 2015 3:25 pm

Re: Interest in developer preview?

Postby rudi ;-) » Tue Aug 23, 2016 8:28 am

ESP_Sprite wrote:Okay, we released the SDK. ...
kmenu, config, secure boot, aes 256 ...
very solid foundation.

and now, read in the new fresh update just in time

@espressif team
it surpasses anything - Congratulations! - the "thing" is "the hammer"
you are a hard working team!

I am ashamed - because I've bitched so impatient.
:oops:

I will quietly go on foot soles now - and look forward to the release.
great best performance!

best wishes
rudi ;-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

User avatar
rudi ;-)
Posts: 1698
Joined: Fri Nov 13, 2015 3:25 pm

Re: Interest in developer preview?

Postby rudi ;-) » Tue Aug 23, 2016 11:02 am

[no hurry]
not sure - search just in time a small mistake:

have changed now to the new esp-idf ( commits: 40 ..040.. )
esp-idf 040
with
esp-template 003
have noted the change of $(SDK_PATH) to $(IDF_PATH)
so:
- have changed the profile.d to the new $(IDF_PATH)


on a make in msys shell get :

Code: Select all

Makefile:10: /make/component.mk: No such file or directory
make: *** Keine Regel, um „/make/component.mk“ zu erstellen.  Schluss.
( have translate the second : ***no rule, to make „/make/component.mk“. End )
do you know where can be the mistake and what can the reason be for this?
compare just in time all changes, perhabs one old $(SDK_PATH) in one file?

edit: found 1 time in ( .gitlab-ci.yml ) $(SDK_PATH)
variables:
SDK_PATH: "$CI_PROJECT_DIR"
IDF_PATH: "$CI_PROJECT_DIR"
GIT_STRATEGY: clone

but think, this can not be the reason for the mistake.


best wishes
rudi ;-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

User avatar
rudi ;-)
Posts: 1698
Joined: Fri Nov 13, 2015 3:25 pm

Re: Interest in developer preview?

Postby rudi ;-) » Tue Aug 23, 2016 11:21 am

found it
change the line in template 003 Makefile ( main )

Code: Select all

-include $(SDK_PATH)/make/component.mk
+include $(IDF_PATH)/make/component.mk
..
Last edited by rudi ;-) on Tue Aug 23, 2016 11:34 am, edited 1 time in total.
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

User avatar
rudi ;-)
Posts: 1698
Joined: Fri Nov 13, 2015 3:25 pm

Re: Interest in developer preview?

Postby rudi ;-) » Tue Aug 23, 2016 11:23 am

..
have seen..
.." projectgus" was faster ;-)
https://github.com/espressif/esp-idf-te ... da38561bf5

will test it later again
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

User avatar
rudi ;-)
Posts: 1698
Joined: Fri Nov 13, 2015 3:25 pm

Re: Interest in developer preview?

Postby rudi ;-) » Tue Aug 23, 2016 11:36 am

yeap.
this was the small mistake.
have used the old template 003 and have changed only the project Makefile to the new IDF_PATH
now have changed in main the Makefile too,
all ok guys!

best wishes
rudi ;-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

User avatar
rudi ;-)
Posts: 1698
Joined: Fri Nov 13, 2015 3:25 pm

Re: Interest in developer preview?

Postby rudi ;-) » Sat Aug 27, 2016 11:04 am

[no hurry]

http://esp32.com/viewtopic.php?f=5&t=188#p875
10.3.4 ( side 115 )
Initialize AES_ENDIAN_REG
can it be that AES_ENDIAN_REG is just in time not in the esp-idf ( commits 077 ) / esp32-wifi-lib ( commits 027 )
C:/sdk32devF/esp-devF/build/main\libmain.a(aesdevF.o):(.literal.app_main+0x28): undefined reference to `ets_set_endian'

btw: aes.h

Code: Select all

...
void ets_set_endian(   bool key_word_swap, bool key_byte_swap, \
                                    bool in_word_swap, bool in_byte_swap, \
                                    bool out_word_swap, bool out_byte_swap);
...
app code

Code: Select all

...
#include <stdint.h>
#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
// #include "esp32/include/rom/aes.h"
#include "rom/aes.h"


...
// global
...

bool  key_word_swap;
bool  key_byte_swap;
bool  in_word_swap; 
bool  in_byte_swap; 
bool  out_word_swap;
bool  out_byte_swap;

...

const uint8_t key[32] ="ola_not_public_viewed_here_;-)_!";
const uint8_t cryptText[16] = "esp32 aes done !";
uint8_t cryptOuttext[16] = "";
uint8_t i=0;
...


// do not help
/*
extern void ets_set_endian(bool key_word_swap, bool key_byte_swap, \
                                             bool in_word_swap, bool in_byte_swap,\
                                             bool out_word_swap, bool out_byte_swap);
*/
...


/******************************************************************************
 * FunctionName : app_main
 * Description  : 
 * Parameters   : 
 * Returns      : 
*******************************************************************************/
void app_main()
{

..
  
  // single operation test
  // init aes mode & key for encrypting
  ets_aes_setkey_enc( (uint8_t *) key, AES256);

..

key_word_swap = false ;
key_byte_swap  = false;
in_word_swap    = false; 
in_byte_swap     = false; 
out_word_swap  = false;
out_byte_swap   = false;

...

ets_set_endian( key_word_swap, key_byte_swap, \
                          in_word_swap, in_byte_swap, \
                          out_word_swap, out_byte_swap);

...

// init and enable aes
ets_aes_enable();

// encrypt now
ets_aes_crypt( (uint8_t *) cryptText, (uint8_t *)  cryptOuttext);

// disable aes
ets_aes_disable();

// print out the ciphertext 
printf (" our ciphertext in hex : ");

// as hex code format with 2dig for each character and space between
for ( i = 0; i < 16; i++ ) {
 printf ("%2x ", cryptOuttext[i]);
  
  //  ok 
  // if (i==15) printf("\n");

}

// but better cpu ticks saving in "for"
printf("\");



}

linker missing a lib?
does we need to include in 'app' makefile the lib or does this menuconfig ( now, later ) ?

thank you in advance

best wishes
rudi ;-)

aes.h

Code: Select all


#include <stdint.h>
#include <stdbool.h>

#ifdef __cplusplus
extern "C" {
#endif

enum AES_BITS {
    AES128,
    AES192,
    AES256
};

void ets_aes_enable(void);

void ets_aes_disable(void);

void ets_set_endian(bool key_word_swap, bool key_byte_swap,
                    bool in_word_swap, bool in_byte_swap,
                    bool out_word_swap, bool out_byte_swap);

bool ets_aes_setkey_enc(const uint8_t *key, enum AES_BITS bits);

bool ets_aes_setkey_dec(const uint8_t *key, enum AES_BITS bits);

void ets_aes_crypt(const uint8_t input[16], uint8_t output[16]);

#ifdef __cplusplus
}
#endif

#endif /* _ROM_AES_H_ */


-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

User avatar
rudi ;-)
Posts: 1698
Joined: Fri Nov 13, 2015 3:25 pm

Re: Interest in developer preview?

Postby rudi ;-) » Sat Aug 27, 2016 12:43 pm

found the small mistake in file : esp-idf components 'esp32/rom/include/aes.h

pull request is done for it
https://github.com/espressif/esp-idf/pull/3

we have in eagle.fpga32.rom.addr.v7.ld

PROVIDE ( ets_aes_crypt = 0x4005c9b8 );
PROVIDE ( ets_aes_disable = 0x4005c8f8 );
PROVIDE ( ets_aes_enable = 0x4005c8cc );

PROVIDE ( ets_aes_set_endian = 0x4005c928 );

PROVIDE ( ets_aes_setkey_dec = 0x4005c994 );
PROVIDE ( ets_aes_setkey_enc = 0x4005c97c );

to do:
change in esp-idf\components\esp32\include\rom\aes.h

the line

"ets_set_endian"

Code: Select all


void ets_set_endian(bool key_word_swap, bool key_byte_swap,\
                    bool in_word_swap, bool in_byte_swap,\
                    bool out_word_swap, bool out_byte_swap);


to

"ets_aes_set_endian"

Code: Select all


void ets_aes_set_endian(bool key_word_swap, bool key_byte_swap,\
                    bool in_word_swap, bool in_byte_swap,\
                    bool out_word_swap, bool out_byte_swap);

and we run compile & link
full app with decrypt comes asap in example code folder


for a flashing you must wait :)
i have no modul from ESP32 Release :)


best wishes
rudi ;-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

Who is online

Users browsing this forum: DrMickeyLauer and 119 guests