Search found 271 matches

by urbanze
Wed Oct 04, 2017 12:43 pm
Forum: General Discussion
Topic: ULP global variables
Replies: 49
Views: 20243

Re: ULP global variables

Code in ulp .global x x: .long 0 .global entry entry: move r0, x ld r0, r0, x add r0, r0, 1 halt I comment before with another two tests, and anyone doenst worked Should be e.g.: .global x x: .long 0 .global entry entry: move r1, x // load address of x in r1 ld r0, r1, 0 // load data from x in r0 a...
by urbanze
Wed Oct 04, 2017 12:43 pm
Forum: General Discussion
Topic: ULP global variables
Replies: 49
Views: 20243

Re: ULP global variables

Code in ulp .global x x: .long 0 .global entry entry: move r0, x ld r0, r0, x add r0, r0, 1 halt I comment before with another two tests, and anyone doenst worked Should be e.g.: .global x x: .long 0 .global entry entry: move r1, x // load address of x in r1 ld r0, r1, 0 // load data from x in r0 a...
by urbanze
Wed Oct 04, 2017 12:39 pm
Forum: General Discussion
Topic: ULP global variables
Replies: 49
Views: 20243

Re: ULP global variables

Code in C have: variable: extern uint32_t ulp_x = 1; and load/run to ulp. How do verify whether "ulp_x" is changing its value or not? void ulp() { Serial.printf("\nULP_X: %d", ulp_x & UINT16_MAX); delay(100); ulp_load_binary(0, ulp_main_bin_start, (ulp_main_bin_end - ulp_main_bin_start) / sizeof(ui...
by urbanze
Wed Oct 04, 2017 6:21 am
Forum: General Discussion
Topic: ULP global variables
Replies: 49
Views: 20243

Re: ULP global variables

Why you cant view screen shots? I can view the screen shots but not the tiny font :) Copy and paste of code would work better for me in this case. Also a plan text is easier for anybody to copy back for testing instead of retyping. @ESP_igrr, thank you for help with this one! Code in C have: variab...
by urbanze
Wed Oct 04, 2017 6:16 am
Forum: General Discussion
Topic: ULP global variables
Replies: 49
Views: 20243

Re: ULP global variables

ESP_igrr wrote:ULP code seems to be missing a store after the increment.
.global x
x: .long 0

.global entry
entry:

move r0, x
ld r0, r0, 0
add r0, r0, 1
st r0, r0, 0
halt

//or this

move r0, x
move r2, 10
ld r0, r0, 0
st r2, r0, 0
halt


Anyone doenst work, how can I do this simples process?¿
by urbanze
Wed Oct 04, 2017 1:43 am
Forum: General Discussion
Topic: ULP global variables
Replies: 49
Views: 20243

Re: ULP global variables

Hi urbanze, I tried to change any global variable with ULP, but doesnt work. What I do wrong? I can't read anything on these screen shoots :shock: I will be guessing then :D Maybe you are missing the "ulp_" prefix? Ref. https://esp-idf.readthedocs.io/en/latest/api-guides/ulp.html#accessing-ulp-prog...
by urbanze
Tue Oct 03, 2017 7:38 pm
Forum: General Discussion
Topic: ULP global variables
Replies: 49
Views: 20243

ULP global variables

Hi guys! I tried to change any global variable with ULP, but doesnt work. What I do wrong?
(The code simply read the variable before, and after the ULP to check if the variable has changed.)

C code

Image


Assembly code
Image
by urbanze
Wed Sep 27, 2017 8:33 pm
Forum: ESP-IDF
Topic: ArcFour Decrypt?
Replies: 2
Views: 1676

Re: ArcFour Decrypt?

WiFive wrote:https://en.m.wikipedia.org/wiki/RC4#Description
decryption is performed the same way
I tested the simple one, got the encrypted phrase and threw it in the input, to see if it returned the original message in the output. He encrypted again D:
by urbanze
Wed Sep 27, 2017 3:42 pm
Forum: ESP-IDF
Topic: ArcFour Decrypt?
Replies: 2
Views: 1676

ArcFour Decrypt?

I working with RC4 (Arc4) from MbedTLS. I had sucessful to encrypt, but not to decrypt. I doesnt find function to decrypt. Where is it? How can I decrypt?

Image: code used to encrypt, and showing functions from mbed. (Where is decrypt function?)
Image
by urbanze
Mon Sep 25, 2017 1:18 pm
Forum: General Discussion
Topic: HWCrypto VS MbedTLS
Replies: 19
Views: 13914

Re: HWCrypto VS MbedTLS

That is a bit odd. If you use the CCOUNT register instead of micros() (and avoid any floating point division), do you get the same thing? I did the RSR () tests and the results were the same with 250 encryptions. Why? The files indicate the same operations, there is something wrong... :?: MbedTLS, ...

Go to advanced search