PSoC™ 6 Forum Discussions
text.format{('custom.tabs.no.results')}
Hello all!
I've been attempting to transfer samples from the SAR ADC to RAM via DMA. Most times the DMA doesn't appear to activate at all - I've connected external pins to the internal signals, and watched them on a logic analyzer. In rare/random instances DMA will appear to be triggering, but will only have copied a random value.
Setup:
- CYBLE-416045-EVAL board
- PSoC Creator 4.4
- PDL 3.1.6
- Windows 11
What's really odd is that DMA behavior is seemingly random, not exactly something I'd expect nor want in a microcontroller platform.
While in the end I want to collect and transfer multiple analog signals, multiple times before the MCU needs to process the data, for this prototyping I'm sticking with just grabbing the latest copy of a single digitized ADC channel - at least that's what I'm attempting. The DMA for feeding the DAC a waveform was working fine. Just the ADC to DMA is the problem...
UPDATE:
I figured out what the issue was, and will follow up on this message with the solution.
PSoC 6 Device: CY8C624ABZI-S2D44
Hello,
I've been trying to get the SAR ADC running on my MCU. The documentation for using the SAR HAL libraries was easy enough to follow, but I've been getting readings that don't make sense to me. For settings, I set up 2 channels on the SAR ADC (0 and 1) with a 16.67MHz clock on the ADC. The positive reference is Vdd (3.3V) and the negative reference is VSSA. From measuring the analog pin manually, I can see that the voltage for channel 0 hovers around 10mV and channel 1 is at 2.64V, but both channels return -3300mV after running Cy_SAR_CountsTo_mVolts().
Below I have pasted the setup code, which starts the ADC for the first time, and code that runs in a loop which delays 2s before taking another reading. I have also attached the serial output. The variables that I use to initialize and run the ADC were generated by ModusToolbox so they should be correct. I am also running FreeRTOS if that makes a difference.
Thanks for any help you can provide!
Startup Code:
Hi
Can we run Linux (e.g., Buildroot and OpenWrt or others) on PSoC63 or any other PSoC model ?
thanks
fatal: 'C:Usershaines_zhang.modusToolboxoffline/git/https___github.com_Infineon_device-db/device-db' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
INFO:Using the executable path for the tools directory.
ERROR:there was an error retreiving the asset 'https://github.com/Infineon/device-db' commit 'release-v4.0.2' - fatal: 'C:Usershaines_zhang.modusToolboxoffline/git/https___github.com_Infineon_device-db/device-db' does not appear to be a git repository
ERROR:fatal: Could not read from remote repository.
ERROR:Please make sure you have the correct access rights
ERROR:and the repository exists.
ERROR:Global asset download of device-db loading completed with error.
ERROR:The asyncStepComplete failed for LoadFlag DEVICE_DB.
3 error(s), 0 warning(s)
Show Less
Using the ADB-Basic-Example (https://github.com/Infineon/mtb-example-hal-adc-basic) in Modus Toolbox I am trying to add an OpAmp before the ADC Component as in the diagram bellow (from PSoC Creator):
Here is the code I added i main.c:
#define VPLUS_CHANNEL_0 (P10_0)
#define VREF_CHANNEL_0 (P10_1)
#define VOUT_OPAMP (P10_4)
int main(void)
{
[...]
cy_rslt_t result;
result = cyhal_opamp_init(&opamp_obj, VPLUS_CHANNEL_0, VREF_CHANNEL_0, VOUT_OPAMP);
if(result != CY_RSLT_SUCCESS)
{
printf("OPAMP configuration failed. Error: %ld\n", (long unsigned int)result);
CY_ASSERT(0);
}
[...]
}
When I debug the application I am getting OpAMP Configuration Failed message.
I am not sure what I did wrong here
Show Less
Hi,
I am using ModusToolbox Version 3.0.
after adding emfile 2.0.0 from library manager 2.0, changing makefile accordingly and got link errors as this.
C:\Users\victor_he\mtw\HAL_Watchdog_Timer/FS_Start.c:113: undefined reference to `FS_Init'
c:/infineon/tools/modustoolbox/tools_3.0/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\victor_he\mtw\HAL_Watchdog_Timer/FS_Start.c:117: undefined reference to `FS_FormatLLIfRequired'
c:/infineon/tools/modustoolbox/tools_3.0/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\victor_he\mtw\HAL_Watchdog_Timer/FS_Start.c:121: undefined reference to `FS_IsHLFormatted'
c:/infineon/tools/modustoolbox/tools_3.0/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\victor_he\mtw\HAL_Watchdog_Timer/FS_Start.c:125: undefined reference to `SEGGER_snprintf'
c:/infineon/tools/modustoolbox/tools_3.0/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\victor_he\mtw\HAL_Watchdog_Timer/FS_Start.c:127: undefined reference to `FS_GetVolumeFreeSpaceKB'
c:/infineon/tools/modustoolbox/tools_3.0/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\victor_he\mtw\HAL_Watchdog_Timer/FS_Start.c:129: undefined reference to `SEGGER_snprintf'
c:/infineon/tools/modustoolbox/tools_3.0/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\victor_he\mtw\HAL_Watchdog_Timer/FS_Start.c:135: undefined reference to `SEGGER_snprintf'
c:/infineon/tools/modustoolbox/tools_3.0/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\victor_he\mtw\HAL_Watchdog_Timer/FS_Start.c:136: undefined reference to `SEGGER_snprintf'
c:/infineon/tools/modustoolbox/tools_3.0/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\victor_he\mtw\HAL_Watchdog_Timer/FS_Start.c:138: undefined reference to `FS_FOpen'
c:/infineon/tools/modustoolbox/tools_3.0/gcc/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\victor_he\mtw\HAL_Watchdog_Timer/FS_Start.c:140: undefined reference to `FS_Write'
I checked the source code and can only found the function declaration but no function code. Could anyone tell me where is the code for FS_Write, FS_FOpen etc. Many thanks.
Show Less
I'm trying to export the modus project to use with uVision, using "make uvision5 TOOLCAHIN=ARM"
I get 4 files generated:
- <app-name>.cpdsc - for uvisioin <= 5.2
- <app-name>.cprj - for uvisioin <= 5.2
- <app-name>.gpdsc
- <app-name>.uvprojx -EMPTY
The last file cannot be opened by uvision5 5.38 that I'm using, since it's empty.
What can I do to make the project work in uVision5?
Show LessHi everybody!
Currently, I am implementing a program to consider the conditions to activate the engine as below!
However, my program does not study the condition of the humidity function nor the temperature function!. Does anyone know why or not. When I run the program even though the temperature and humidity are right, the motor still spins!
Thanks!
Show Less
Hello!
I'm doing a project in which I read the sensors and compare it with the value I set earlier to control the motor!
However, it doesn't work again. I create conditions like the image below. I initialized P10_6 in the main part
It doesn't work. I tried concatenating all the code in #2 together into a separate subroutine but it still doesn't work! Please someone help me! It's very important to me right now! It determined my graduation decision!
Thank you!
Show Less
Hello, long ago I longed for something like CY8CPROTO-062-4343W. At the time, Modus Toolbox (MTB) was being brought out and even if this proto-board was available, #PSoC 6 was not going to be supported by Creator. I see that Modus Toolbox is the intended development environment. Further, I have noted that UDB's are not supported by Modus Toolbox.
Can MTB and this proto-board (CY8CPROTO-062-4343W) support a BT-le/Wi Fi project with 7 (non-matrixed) buttons and 5 sliders?
Note: Possible magnetic sensing joystick (see Infineon's TLE493D-W2B6) and Rotary encoders may also be involved.
Thanks very much.
Tim Miner
Show Less