Search found 2 matches
- Tue May 29, 2018 1:21 pm
- Forum: General Discussion
- Topic: adc2_vref_to_gpio cause 3.6V on GPIO pin
- Replies: 0
- Views: 2304
adc2_vref_to_gpio cause 3.6V on GPIO pin
Hi all, I used the code status = adc2_vref_to_gpio(GPIO_NUM_27); if (status == ESP_OK){ printf("v_ref routed to GPIO\n"); }else{ printf("failed to route v_ref\n"); } to measure Vref on GPIO 25-27. I got 3.6V on multimeter. What's wrong with that? I checked couple esp32-bit chips. And multimeter is OK.
- Fri Mar 23, 2018 12:42 pm
- Forum: General Discussion
- Topic: MALLOC_CAP_32BIT and float
- Replies: 6
- Views: 6795
MALLOC_CAP_32BIT and float
Hello all,
Is float type capable for MALLOC_CAP_32BIT ?
I used simple the code :
It causes to LoadStoreError. With int it works fine...
Is float type capable for MALLOC_CAP_32BIT ?
I used simple the code :
Code: Select all
float *test=(float *) heap_caps_malloc(sizeof(float)*10,MALLOC_CAP_32BIT);
for(i=0;i<10;i++)test[i]=i;