Post Go back to editing

dynamic load busconfig

Category: Software
Product Number: AD2428
Software Version: sigmastudio4.6 A2B 19.3

Hello, I used sigmastudio to configure a topology file, compile the code and burn it to the Android system. If I want to change the topology, must I change the busconfig file in the code and recompile the code to burn it to the system? Is there a way that I can dynamically burn the topology of the BUSCONFIG configuration to the system without changing other parts?

Parents Reply Children
  • HI,
    We can use the typical example which we have provided in the release but some macros should change for the data file, go through the stack user guide and do the changes 

    accordingly. 
    Please let us know if is it working after the modification  is done.

    Please check the address of the peripherals during the I2C access.

  • Hi,

    Yes, I modified the code in the example, but now this error occurs. I configured the peripheral I2C address as 0x53 in sigamstudio, but the register information I read is 0x50. It seems that the configuration is not successful. I can't find these logs in the A2B code, so I don't know how to deal with them. Could you please help me see what the error is?

  • Jan 01 00:01:12.550 a2b_app.786438 slog* 1 a2b-app[a2bapp_qnx.c:56]: Enter a2b main 0
    Jan 01 00:01:12.550 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cW (0x68)12 04
    Jan 01 00:01:12.557 a2b_app.786438 slog 1 a2b-app[pal_log.c:328]: 5 a2bmaster_plugin.c:a2b_pluginExecute(1167) [WARN] A2B Master Plugin execute(10): Unhandled command
    Jan 01 00:01:12.557 a2b_app.786438 slog 1 a2b-app[pal_log.c:328]: 5 discovery.c:a2b_dscvryReset(5052) [DEBUG] A2B Master Plugin dscvryReset(): Starting DiscoveryMode0
    Jan 01 00:01:12.557 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cRW write (0x68)02
    Jan 01 00:01:12.557 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cRW read (0x68)ad 28
    Jan 01 00:01:12.557 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cW (0x68)12 84
    Jan 01 00:01:12.566 a2b_app.786438 slog 1 a2b-app[pal_log.c:328]: 14 msgrtr.c:a2b_msgRtrNotify(855) [DEBUG] a2b_msgRtrNotify(m: 0x0, cmd: 3, ud: 0x0)
    Jan 01 00:01:12.584 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cRW write (0x68)02
    Jan 01 00:01:12.584 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cRW read (0x68)ad 28 00
    Jan 01 00:01:12.584 a2b_app.786438 slog 1 a2b-app[pal_log.c:328]: 32 discovery.c:a2b_dscvryPreMasterInit(3190) [INFO] A2B Master Plugin Master Node: Silicon vid/pid/0
    Jan 01 00:01:12.584 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cW (0x68)1b 10 00 09
    Jan 01 00:01:12.584 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cW (0x68)1a 01
    Jan 01 00:01:12.585 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cW (0x68)0f 60
    Jan 01 00:01:12.585 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cW (0x68)12 81
    Jan 01 00:01:12.587 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cW (0x68)41 02
    Jan 01 00:01:12.587 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cW (0x68)09 01
    Jan 01 00:01:12.588 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cW (0x68)13 60
    Jan 01 00:01:12.598 a2b_app.786438 slog 1 a2b-app[pal_log.c:328]: 46 msgrtr.c:a2b_msgRtrNotify(855) [DEBUG] a2b_msgRtrNotify(m: 0x0, cmd: 3, ud: 0x0)
    Jan 01 00:01:12.598 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cW (0x68)09 21
    Jan 01 00:01:12.598 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cW (0x68)01 00
    Jan 01 00:01:12.600 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cRW write (0x69)02
    Jan 01 00:01:12.600 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cRW read (0x69)ad 25 02 01
    Jan 01 00:01:12.600 a2b_app.786438 slog 1 a2b-app[pal_log.c:328]: 48 discovery.c:a2b_dscvryNodeDiscovered(3695) [INFO] A2B Master Plugin nodeDiscovered(): Silicon no1
    Jan 01 00:01:12.600 a2b_app.786438 slog 1 a2b-app[pal_log.c:328]: 48 discovery.c:a2b_dscvryNodeDiscovered(3932) [INFO] A2B Master Plugin nodeDiscovered(): BDD node/v2
    Jan 01 00:01:12.600 a2b_app.786438 slog 1 a2b-app[pal_log.c:328]: 48 msgrtr.c:a2b_msgRtrNotify(855) [DEBUG] a2b_msgRtrNotify(m: 0x0, cmd: 7, ud: 0x0)
    Jan 01 00:01:12.600 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cW (0x69)09 01
    Jan 01 00:01:12.601 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cRW write (0x69)1b
    Jan 01 00:01:12.601 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cRW read (0x69)00 00
    Jan 01 00:01:12.601 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cW (0x69)1b 10 00
    Jan 01 00:01:12.602 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cW (0x68)13 5c
    Jan 01 00:01:12.611 a2b_app.786438 slog 1 a2b-app[pal_log.c:328]: 59 msgrtr.c:a2b_msgRtrNotify(855) [DEBUG] a2b_msgRtrNotify(m: 0x0, cmd: 3, ud: 0x0)
    Jan 01 00:01:12.611 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cW (0x68)01 00
    Jan 01 00:01:12.612 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cW (0x69)09 21
    Jan 01 00:01:12.612 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cW (0x68)01 01
    Jan 01 00:01:12.613 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cRW write (0x69)02
    Jan 01 00:01:12.613 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cRW read (0x69)ad 25 02 01
    Jan 01 00:01:12.613 a2b_app.786438 slog 1 a2b-app[pal_log.c:328]: 62 discovery.c:a2b_dscvryNodeDiscovered(3695) [INFO] A2B Master Plugin nodeDiscovered(): Silicon no1
    Jan 01 00:01:12.613 a2b_app.786438 slog 1 a2b-app[pal_log.c:328]: 62 discovery.c:a2b_dscvryNodeDiscovered(3932) [INFO] A2B Master Plugin nodeDiscovered(): BDD node/v2
    Jan 01 00:01:12.613 a2b_app.786438 slog 1 a2b-app[pal_log.c:328]: 62 msgrtr.c:a2b_msgRtrNotify(855) [DEBUG] a2b_msgRtrNotify(m: 0x0, cmd: 7, ud: 0x0)
    Jan 01 00:01:12.613 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cW (0x69)09 01
    Jan 01 00:01:12.614 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cRW write (0x69)1b
    Jan 01 00:01:12.614 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cRW read (0x69)00 00
    Jan 01 00:01:12.614 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cW (0x69)1b 10 00
    Jan 01 00:01:12.614 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cW (0x68)13 58
    Jan 01 00:01:12.624 a2b_app.786438 slog 1 a2b-app[pal_log.c:328]: 73 msgrtr.c:a2b_msgRtrNotify(855) [DEBUG] a2b_msgRtrNotify(m: 0x0, cmd: 3, ud: 0x0)
    Jan 01 00:01:12.624 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cW (0x68)01 01
    Jan 01 00:01:12.624 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cW (0x69)09 21
    Jan 01 00:01:12.625 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cW (0x68)01 02
    Jan 01 00:01:12.626 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cRW write (0x69)02
    Jan 01 00:01:12.626 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cRW read (0x69)ad 25 02 01
    Jan 01 00:01:12.626 a2b_app.786438 slog 1 a2b-app[pal_log.c:328]: 75 discovery.c:a2b_dscvryNodeDiscovered(3695) [INFO] A2B Master Plugin nodeDiscovered(): Silicon no1
    Jan 01 00:01:12.626 a2b_app.786438 slog 1 a2b-app[pal_log.c:328]: 75 discovery.c:a2b_dscvryNodeDiscovered(3932) [INFO] A2B Master Plugin nodeDiscovered(): BDD node/v2
    Jan 01 00:01:12.626 a2b_app.786438 slog 1 a2b-app[pal_log.c:328]: 75 msgrtr.c:a2b_msgRtrNotify(855) [DEBUG] a2b_msgRtrNotify(m: 0x0, cmd: 7, ud: 0x0)
    Jan 01 00:01:12.626 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cW (0x69)09 01
    Jan 01 00:01:12.629 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cRW write (0x69)1b
    Jan 01 00:01:12.629 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cRW read (0x69)00 00
    Jan 01 00:01:12.629 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cW (0x69)1b 10 00
    Jan 01 00:01:12.629 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cW (0x68)13 54
    Jan 01 00:01:12.636 a2b_app.786438 slog 1 a2b-app[pal_log.c:328]: 85 msgrtr.c:a2b_msgRtrNotify(855) [DEBUG] a2b_msgRtrNotify(m: 0x0, cmd: 3, ud: 0x0)
    Jan 01 00:01:12.636 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cW (0x68)01 02
    Jan 01 00:01:12.638 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cW (0x69)09 21
    Jan 01 00:01:12.639 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cW (0x68)01 03
    Jan 01 00:01:12.640 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cRW write (0x69)02
    Jan 01 00:01:12.640 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cRW read (0x69)ad 25 02 01
    Jan 01 00:01:12.640 a2b_app.786438 slog 1 a2b-app[pal_log.c:328]: 88 discovery.c:a2b_dscvryNodeDiscovered(3695) [INFO] A2B Master Plugin nodeDiscovered(): Silicon no1
    Jan 01 00:01:12.640 a2b_app.786438 slog 1 a2b-app[pal_log.c:328]: 88 discovery.c:a2b_dscvryNodeDiscovered(3932) [INFO] A2B Master Plugin nodeDiscovered(): BDD node/v2
    Jan 01 00:01:12.640 a2b_app.786438 slog 1 a2b-app[pal_log.c:328]: 88 msgrtr.c:a2b_msgRtrNotify(855) [DEBUG] a2b_msgRtrNotify(m: 0x0, cmd: 7, ud: 0x0)
    Jan 01 00:01:12.640 a2b_app.786438 slog 1 a2b-app[pal_log.c:328]: 88 discovery.c:a2b_dscvryPreSlaveInit(2932) [INFO] A2B Master Plugin PreSlaveInit(): No more BDD sls
    Jan 01 00:01:12.640 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cW (0x69)0b 80
    Jan 01 00:01:12.641 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cW (0x69)0c 02
    Jan 01 00:01:12.641 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cW (0x69)41 20
    Jan 01 00:01:12.641 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cW (0x69)42 30
    Jan 01 00:01:12.642 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cW (0x69)5a 81
    Jan 01 00:01:12.643 a2b_app.786438 slog 1 a2b-app[pal_i2c_qnx.c:141]: a2b i2cW (0x69)1b 00 00
    Jan 01 00:01:12.643 dumper.45070 slog* 0 run fault pid 786438 tid 1 signal 11 code 1 ip 0 bin/a2b-app
    Jan 01 00:01:12.644 dumper.45070 slog 0 pid 786438 core file created at /var/log/a2b-app.core