2017-06-26 02:46 AM
question 1:
i2c_result_t i2c_lld_write(uint8_t dev_addr, uint16_t reg_addr,uint8_t *data, uint8_t ndata_bytes)
{..................
/* Check for valid address */
if ((dev_addr < 8U) || (dev_addr > 119U)){
return I2C_ERROR_INVALID_ADDRESS; }................
}
Why is the slave address between 8-119? Is this slave address 7bit or 8bit?
question 2:
My project uses FreeRTOS, each time the code generated, the macro configUSE_TIMERS will automatically become 0. And the Makefile in the compiler parameters will automatically become -O2. Each modification is very troublesome, how can I do?
Solved! Go to Solution.
2017-06-26 07:31 AM
Hello ,
Question 1:
Why is the slave address between 8-119?Is this slave address 7bit or 8bit?
A seven bit wide address space theoretically allows 128 I2C addresses – however, some addresses are reserved for special purposes. Thus, only 112 addresses are available with the 7 bit address scheme
Question 2:
the Makefile is generated
1) -O2 is set in the platform component
2) for the timer , Go to SPC5 FreeRTOS Component RLA and check Use Software timers
==> Save and generate
Best regards
Erwan
________________ Attachments : 2017-06-26 16_29_21-workspace - SPC5Studio - SPC560Dxx_RLA FreeRTOS SERIAL Test Application for Disc.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HyaO&d=%2Fa%2F0X0000000b9p%2FcQTNlN6H2MIIhv4R2XkT0FZrTS8nW6Vzy2iacPUnNDQ&asPdf=false2017-06-26 07:31 AM
Hello ,
Question 1:
Why is the slave address between 8-119?Is this slave address 7bit or 8bit?
A seven bit wide address space theoretically allows 128 I2C addresses – however, some addresses are reserved for special purposes. Thus, only 112 addresses are available with the 7 bit address scheme
Question 2:
the Makefile is generated
1) -O2 is set in the platform component
2) for the timer , Go to SPC5 FreeRTOS Component RLA and check Use Software timers
==> Save and generate
Best regards
Erwan
________________ Attachments : 2017-06-26 16_29_21-workspace - SPC5Studio - SPC560Dxx_RLA FreeRTOS SERIAL Test Application for Disc.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HyaO&d=%2Fa%2F0X0000000b9p%2FcQTNlN6H2MIIhv4R2XkT0FZrTS8nW6Vzy2iacPUnNDQ&asPdf=false2017-06-26 07:45 PM
....Why i did not........
SPC5 Studio, version: 5.4
2017-06-27 02:05 AM
Hello Guo ,
You have not clicked on the good configuration settings.
Click on the outline view to change your panel (cf SPC5Studio Help)
Best regards
Erwan
2017-06-27 02:20 AM
ok ,I see.
but
this macro configTOTAL_HEAP_SIZE This array includes all the necessary queues, task stack memory,
I have a lot of tasks, must be a lot of memory, so I have to configTOTAL_HEAP_SIZE macro set is large, as long as no more than 64K on it. (SPC560B54L5, 64K SRAM)
2017-06-28 09:06 AM
Hello Guo ,
you can not configure greater than 8192
I recommend to you to customize configTOTAL_HEAP_SIZE
by creating a new constant.
i am creating a CR to increase the limit
Best regards
Erwan