-
Notifications
You must be signed in to change notification settings - Fork 7.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
5.2 beta1 undocumented change (IDFGH-11688) #12798
Comments
sorry, we didn't expect the user will use these macros. May I know how your code is using these macros, instead of calling the |
It's not something I wrote myself. Demo app link : https://github.com/wireless-tag-com/ZX3D95CE01S-TR-4848 |
Thanks @dannybackx That project is using some unsafe code, for example: https://github.com/wireless-tag-com/ZX3D95CE01S-TR-4848/blob/master/components/bus/8080_lcd_esp32s3.c#L354 Where that component is skipping the GDMA driver to allocate the channel, so in a concurrent scenario, a "free" channel searched by that component may be already occupied by another component, which utilizes the GDMA driver. I can add those missing macros back again to make the project build again, but again, that project needs refactoring, because it's unsafe and also easy to break when there's a big refactor in the upstream esp-idf. |
I didn't realize the code I was using was both broken (as you indicate) and using private include files. So let's close this issue, the workaround is obvious so no need for action from your side (my personal opinion). |
Note this is also in https://github.com/smartpanle/QMSD-ESP32-BSP . |
Answers checklist.
IDF version.
5.2 beta1
Operating System used.
Linux
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
What is the expected behavior?
recompile existing code without changes
What is the actual behavior?
Build failure, due to rename of SOC_GDMA_PAIRS_PER_GROUP to SOC_GDMA_PAIRS_PER_GROUP_MAX.
The macro on the next line as well, apparently, see below.
This change is not documented anywhere. The diff also indicates documentation was deleted, that seems like a strange thing to do.
Danny
diff /home/danny/src/github/esp32/esp-idf-v5.{1.2,2-beta1}/components/soc/esp32s3/include/soc/soc_caps.h
146,148c156,159
< #define SOC_GDMA_GROUPS (1) // Number of GDMA groups
< #define SOC_GDMA_PAIRS_PER_GROUP (5) // Number of GDMA pairs in each group
< #define SOC_GDMA_SUPPORT_PSRAM (1) // GDMA can access external PSRAM
Steps to reproduce.
see above
Build or installation Logs.
No response
More Information.
No response
The text was updated successfully, but these errors were encountered: