-
Hello to all and first thanks for this library!! Maybe someone can help me ? platform.ini
main.cpp
Here the stack trace Backtrace: 0x40377eb2:0x3fceb9a0 0x4037b6e5:0x3fceb9c0 0x40381605:0x3fceb9e0 0x4037b6db:0x3fceba60 0x42025fa8:0x3fceba80 0x42025c6a:0x3fcebc00 0x420022f4:0x3fcebc20 0x42029242:0x3fcebc50 #0 0x40377eb2:0x3fceb9a0 in panic_abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/panic.c:408 |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
I have a similar issue with the 8048S043C board. I created a new project with the supplied json board file. Followed the tutorial, edited the lc_conv.h and platformIo.ini as indicated. Have a simple main.cpp which crashes in the smartdisplay_int(). |
Beta Was this translation helpful? Give feedback.
-
This is my trace stuf: abort() was called at PC 0x4037b5db on core 1 Backtrace: 0x40377e12:0x3fceb9b0 0x4037b5e5:0x3fceb9d0 0x40381559:0x3fceb9f0 |
Beta Was this translation helpful? Give feedback.
-
Ik think I found the issue in my case the code was: #ifdef DISPLAY_SWAP_XY and DISPLAY_SWAP_XY is defined as build flag in the json file. It is set at false, but still it is a defined define. Thus either those defines must be deleted from the json file, or the code must be: |
Beta Was this translation helpful? Give feedback.
-
I put the line in as suggested, when I saved the platform.ini file it updated the library. My edits in the file 'lvl_panel_st7262_par.c' were gone and I got back the old wrong file. I cmd-clicked the line in the platform.ini file to open the repository in the browser and there was also the wrong file. See also the screenshot.
Thus somehow I do not get the updates you've made.

… On 25 Jun 2024, at 23:18, Rene ***@***.***> wrote:
Could you check if the issue is resolved with this change?
You can check this by using in the platformio in the lib_deps the develop branch:
lib_deps = https://github.com/rzeldent/esp32-smartdisplay#develop
Thanks!
—
Reply to this email directly, view it on GitHub <#164 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AA6PGADW57BPINKSV2Y2P4LZJHNEDAVCNFSM6AAAAABHCPLQDSVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TQNZWGAZDE>.
You are receiving this because you commented.
|
Beta Was this translation helpful? Give feedback.
-
I've also spotted an error I think in the 'framework-arduinoespressif32/cores/esp32/esp32-hal-ledc.c' file.
The code is:
void ledcWrite(uint8_t chan, uint32_t duty)
{
if(chan >= LEDC_CHANNELS){
return;
}
uint8_t group=(chan/8), channel=(chan%8);
//Fixing if all bits in resolution is set = LEDC FULL ON
uint32_t max_duty = (1 << channels_resolution[chan]) - 1;
if((duty == max_duty) && (max_duty != 1)){
duty = max_duty + 1;
}
ledc_set_duty(group, channel, duty);
ledc_update_duty(group, channel);
}
But I think the red coloured lines are wrong, it should be:
if((duty > max_duty) && (max_duty != 1)){
duty = max_duty;
}
Any idea were to put this update, I'm not an Github guru. I do not even know the official place the code comes from.
With the original code when the brightness is set at full brightness e.g. 255 with 8 bits resolution, then duty is equal to max_duty and then duty is set to 256 which gives en wire error and the serial output is spawn with error messages.
… On 25 Jun 2024, at 23:18, Rene ***@***.***> wrote:
Could you check if the issue is resolved with this change?
You can check this by using in the platformio in the lib_deps the develop branch:
lib_deps = https://github.com/rzeldent/esp32-smartdisplay#develop
Thanks!
—
Reply to this email directly, view it on GitHub <#164 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AA6PGADW57BPINKSV2Y2P4LZJHNEDAVCNFSM6AAAAABHCPLQDSVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TQNZWGAZDE>.
You are receiving this because you commented.
|
Beta Was this translation helpful? Give feedback.
Ik think I found the issue in my case the code was:
#ifdef DISPLAY_SWAP_XY
ESP_ERROR_CHECK(esp_lcd_panel_swap_xy(panel_handle, DISPLAY_SWAP_XY));
#endif
#if defined(DISPLAY_MIRROR_X) || defined(DISPLAY_MIRROR_Y)
ESP_ERROR_CHECK(esp_lcd_panel_mirror(panel_handle, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y));
#endif
#if defined(DISPLAY_GAP_X) || defined(DISPLAY_GAP_Y)
ESP_ERROR_CHECK(esp_lcd_panel_set_gap(panel_handle, DISPLAY_GAP_X, DISPLAY_GAP_Y));
#endif
and DISPLAY_SWAP_XY is defined as build flag in the json file. It is set at false, but still it is a defined define. Thus either those defines must be deleted from the json file, or the code must be:
#if(DISPLAY_SWAP_XY)
ESP_ERROR_CHECK(esp_lcd_…