This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Converting twi sensor example from PCA100056 to PCA10056e results in error "'TWIM1_EASYDMA_MAXCNT_SIZE' undeclared (first use in this function)"

Hello,

I am trying to convert the twi_scanner into a PCA10056e project following the conversion doc from nordic. This was the downloaded example for the TWI scanner and worked before I began the conversions on the NRF52840dk. The problem I run into is after the conversions are done I get the error:

'TWIM1_EASYDMA_MAXCNT_SIZE' undeclared (first use in this function); did you mean 'TWIM0_EASYDMA_MAXCNT_SIZE'?

Here are photos of the steps I did:

1. Change target to NRF52811_xxAA

2. Change the None files from _startup_nrf52 & system_nrf52 to nrf52811 versions

3. Change the preprocessor macros

4. Change the linker macros

5. I noticed that the other PCA10056e examples had changed the ARM FB ABI TYPE to soft and the ARM FPU TYPE to VFP (this one is actually soft in the other examples but changes to VFP after I click on the value. Soft doesn't seem to be an option). 

6. I also changed the Heap and stack values even though I read here that they are set by default.

I checked and sdk_config has NRFX_TWIM1_ENABLED set to 0. In the nrfx_twim.c there is a check to see if is one and it evaluates as true even though it is not set.

Parents Reply Children
No Data
Related